Send mail to PHP mail
I haven't learned PHP today. Download a Web Template with a script that sends a message
PHP Code
\ n "; $headers. =" Reply-to: $name < $mailFrom >\n "; $message = $message _text;mail ($mailTo, $subject, $message, $ headers);? >
Is this simple enough to send an email? Don't set SMTP POP3 or something like that? Who is the sender?
------Solution--------------------
Your computer is just an account.
------Solution--------------------
discuss
Your computer is just an account.
------Solution--------------------
There is a configuration option for [Mail function] in php.ini.
; For Win32 only.
; Http://php.net/sendmail-from
; sendmail_from = [email protected]
; For Unix only. Supply arguments as well (default: "Sendmail-t-i").
; Http://php.net/sendmail-path
; Sendmail_path =
Http://www.w3school.com.cn/php/php_ref_mail.asp
------Solution--------------------
It is not possible to send e-mails with this script.
Manual: Bool Mail (String $to, String $subject, String $message [, String $additional _headers [, String $additional _paramet ERS]])
The mail server must be configured. You just didn't see it.
Where the letter came from is related to the mail server.
As far as from this, I can write casually.
This is where many spam messages are located.
Many from are deceptive.
You can try it yourself Oh ~ ~ ~
------Solution--------------------
Of course, you configure the outgoing server. If it is the Linux/unix operating system itself, with the sender function.
------Solution--------------------
Windows system, to configure the SMTP service.
------Solution--------------------
Explore
I haven't learned PHP today. Download a Web Template with a script that sends a message
PHP Code
This was the script for sending email.
Change the e-mail address below to your own email address.
$mailTo = [email protected] ';
$name = HTMLSP ...