search
HomeBackend DevelopmentPHP Tutorial php mail()解决方法

php mail()

$name = $_POST['name'];
$emial = $_POST['email'];
$feedback = $_POST['feedback'];

$toaddress = '292200196@qq.com';
$subject = 'Feedback from web site';
$mailcontent = "Customer name: $name\n
Customer email: $emial\n
Customer comments:\n$feedback\n";
$fromaddress = 'From: 695565914@qq.com';

mail($toaddress, $subject, $mailcontent, $fromaddress);

?>

php.ini
[mail function]
 For Win32 only.
SMTP = smtp.qq.com
smtp_port = 25

 For Win32 only.
sendmail_from = 695565914@qq.com

错误提示:
Warning: mail() [function.mail]: SMTP server response: 503 Error: need EHLO and AUTH first ! in D:\wamp\apache\htdocs\test\processfeedback.php on line 14

求解释

------解决方案--------------------
https://code.google.com/a/apache-extras.org/p/phpmailer/downloads/list

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
feedback是什么软件feedback是什么软件Jan 04, 2021 pm 03:56 PM

feedback是一个苹果官方应用,是苹果推出的一款用于用户反馈bug等问题的应用软件,主要是苹果向用户收集测试版出现的Bug,用户通过这个应用向苹果反馈该版本系统所擦存在的问题。

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决Jun 13, 2016 am 10:23 AM

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code<form name="myform"

PHP Mail 用法指南:简单易懂的邮件发送教程PHP Mail 用法指南:简单易懂的邮件发送教程Mar 28, 2024 pm 12:12 PM

PHP是一种广泛应用于开发Web应用程序的脚本语言,它提供了许多用来处理邮件发送的功能。本文将向大家介绍PHP中如何使用邮件发送功能,同时提供具体的代码示例。一、准备工作在使用PHP发送邮件前,首先需要确保你的服务器已经配置好了发送邮件的环境。一般来说,你需要一个SMTP服务器来发送邮件。你可以使用你的邮箱提供商提供的SMTP服务器,比如Gmail的SMTP

怎么使用Java自带的mail API实现邮件发送功能怎么使用Java自带的mail API实现邮件发送功能May 11, 2023 pm 12:49 PM

需求:邮件发送使用jdk源生API&mdash;&mdash;java.mail实现发邮件功能以下代码即可发送邮件,以qq邮箱为例packagecom.example.demo.emailInfo;importjavax.mail.Message;importjavax.mail.MessagingException;importjavax.mail.Session;importjavax.mail.Transport;importjavax.mail.internet.Inte

New Steam review helpfulness system puts informative reviews first, ASCII art and memes secondNew Steam review helpfulness system puts informative reviews first, ASCII art and memes secondAug 15, 2024 am 09:37 AM

Steam's user reviews have something of a reputation for being particularly unhelpful to those actually looking for reliable feedback about a game. Often, a game's Steam store page is filled with vapid copypasta, unoriginal jokes, or users review bomb

详解CentOS中邮件命令mail的使用方法详解CentOS中邮件命令mail的使用方法Jan 05, 2024 pm 10:57 PM

1.mail基本语法h|headers显示当前的邮件列表l|list显示当前支持的命令列表?|help显示多个查看邮件列表的命令参数用法d删除当前邮件,指针并下移。d1-100删除第1到100封邮件t|type|more|p|pagenum阅读某一封邮件n|next|{什么都不填}阅读当前指针所在的下一封邮件内容;阅读时,按空格键就是翻页,按回车键就是下移一行n|next|{什么都不填}num阅读某一封邮件f|fromnum查看邮件头top显示当前指针所在的邮件的邮件头file|folder显示

Vue3中setup怎么添加nameVue3中setup怎么添加nameMay 13, 2023 am 09:40 AM

Vue3中name有什么用呢?1.在递归组件的时候需要定义name2.配合keep-aliveincludeexclude可以缓存组件3.在Vue有报错或者调试的时候可以看到组件的nameVue3定义name1.自动生成只要在script开启setup语法糖模式单文件组件会自动根据文件名生成对应的name选项例如Tree.vue那他的name就是Tree自动生成,这样做有一个弊端如果想修改name需要修改组件名称如果有地方import该组件需要一并修改。2.在开启一个script用来定义name

SpringBoot Mail邮件任务怎么配置SpringBoot Mail邮件任务怎么配置May 12, 2023 pm 10:37 PM

一、引言发送邮件应该是网站的必备功能之一,什么注册验证,忘记密码或者是给用户发送营销信息。最早期的时候我们会使用JavaMail相关api来写发送邮件的相关代码,后来spring退出了JavaMailSender更加简化了邮件发送的过程,在之后springboot对此进行了封装就有了现在的spring-boot-starter-mail。二、简单使用1、pom包配置pom包里面添加spring-boot-starter-mail包引用org.springframework.bootspring-

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft