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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



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

PHP is a scripting language widely used for developing web applications. It provides many functions for handling email sending. This article will introduce you to how to use the email sending function in PHP and provide specific code examples. 1. Preparation Before using PHP to send emails, you first need to ensure that your server has been configured to send emails. Generally speaking, you need an SMTP server to send emails. You can use the SMTP server provided by your email provider, such as Gmail's SMTP

Feedback is an official Apple application. It is an application software launched by Apple for users to report bugs and other issues. It mainly collects bugs that appear in the beta version from users. Users use this application to feedback to Apple the bugs that exist in this version of the system. question.

Requirements: To send emails, use the jdk native API - java.mail to implement the email function. The following code can send emails, taking qq mailbox as an example packagecom.example.demo.emailInfo; importjavax.mail.Message; importjavax.mail.MessagingException; importjavax.mail.Session;importjavax.mail.Transport;importjavax.mail.internet.Inte

1. Introduction Sending emails should be one of the essential functions of the website, such as registration verification, forgotten password or sending marketing information to users. In the early days, we would use JavaMail related APIs to write relevant codes for sending emails. Later, spring withdrew from JavaMailSender, which simplified the process of sending emails. Later, springboot encapsulated this and now spring-boot-starter- mail. 2. Simple use 1. Add the spring-boot-starter-mail package to the pom package to configure the pom package to reference org.springframework.bootspring-

PHP cannot get the name because when the name and id values of the form element are different, the browser cannot recognize it. The solution: 1. Check whether some form elements and frame elements use name; 2. Check only Elements that can be assigned ID but not name; 3. For multi-select box checkbox, you can use "join(',', $__POST['name'])" to form data.

What is the use of name in Vue3? 1. Name needs to be defined when making recursive components. 2. The component can be cached with keep-aliveincludeexclude. 3. When Vue reports an error or is debugging, you can see the name of the component. Vue3 defines name1. It is automatically generated as long as the setup syntax sugar mode single file component is turned on in the script. The corresponding name option will be automatically generated based on the file name. For example, Tree.vue, then its name will be automatically generated by Tree. This has a drawback. If you want to modify the name, you need to modify the component name. If there is a place to import the component, you need to modify it together. 2. Open a script to define name

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
