Phpmailer example of sending Yahoo Mail

Source: Internet
Author: User
This article describes the use of Phpmailer to send Yahoo Mail examples, have the need for friends, refer to the next bar.

Examples of e-mail phpmailer:

 
      ISSMTP ();//mail server $mail->host = "smtp.mail.yahoo.com.cn"; $mail->smtpdebug  = 0;//Use smpt authentication $mail-> Smtpauth   = true;//smtp Authenticated user name $mail->username   = "******** @yahoo. cn";//smtp verified Secret $mail->password   = "y*********";//Set encoding format $mail->charset  = "utf-8";//Set subject $mail->subject    = "Test";//$mail->altbody    = "To view the message, please use an HTML compatible email viewer!"; /Set Sender $mail->setfrom (' ******* @yahoo. cn ', ' test ');//send mail in HTML format $mail->msghtml ($body);//Recipient's message name $mail-> AddAddress ("********* @yahoo. com", "test");//Send mail if (! $mail->send ()) {  echo "Mailer Error:". $mail->errorinfo;} else {  echo "Message sent!";}? >

Need to introduce Phpmailer class file, download address: Phpmailer Mail Send class V5.1 download address.

  • 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.