What to do with PHP mail

Source: Internet
Author: User
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 ...
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.