I found two PHP mail sending examples on the internet. they are very good. I posted them for reference for beginners. I don't know if any of them have been posted.

Source: Internet
Author: User
AdvancedExampleHerewewillshowthefullcapabilitiesofthePHPmailfunction. PHPCode: Wesendanemailtotwopeoplethistime, byputtingtwoemailaddressesintherecipientfieldandse

Advanced Example Here we will show the full capabilities of the PHP mail function. PHP Code: "; $ Recipient =" Kris Arndt Npl@nucleus.com "; $ subject =" Testing the mail function "; $ message =" Hello! This is the body of the message. "; $ extra =" From: kris@phpworld.comReply-To: karn@nucleus.com "; mail ($ recipient, $ subject, $ message, $ extra); echo" Sending mail... "; echo" ";?> We send an email to two people this time, by putting two email addresses in the recipient field and separating them with commas. the fourth parameter holds extra headers for the email. we specify who the email was from and who the recipient shocould reply. when entering multiple headers, separate them with the line feed and new line combination ().

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.