Send mime mail class -- instance _ PHP Tutorial

Source: Internet
Author: User
Send mime mail class-instance. If not included: $ mailnewhtml_mime_mail (); $ htmlHTML content; $ mail-add_html ($ html, $ text); $ mail-build_message (); $ mail-send (recipient, Email, sender, Email. if it is not included, Mark: $ mail = new html_mime_mail (); $ html = "HTML content"; $ mail-> add_html ($ html, $ text); $ mail-> build_message (); $ mail-> send (recipient, Email, Sender, Email, subject, external Header ); -------------------------------------------------------------------------------- if the url contains "url =" www.cuti.com. my/AD/"; // There is no http at the beginning of the zookeeper address: // There is a diagonal link at the end of the header $ path ="/MAIL/AD /"; // the end of the zookeeper router interface is oblique. $ filename1 = a.jpg; $ backgrnd1 = fread ($ fp = fopen ($ path. $ filename1, r), filesize ($ path. $ filename1); fclose ($ fp );... so on... $ filename6 = f.gif; $ backgrnd6 = fread ($ fp = fopen ($ path. $ filename6, r), filesize ($ path. $ filename6); fclose ($ fp); $ mail-> add_html_image ($ backgrnd1, $ filename1, image/jpeg, http ://. $ url. $ filename1 );... so on... $ mail-> add_html_image ($ backgrnd6, $ filename6, image/gif, http ://. $ url. $ filename6); $ mail = new html_mime_mail (); $ html = "HTML content inclusion"; $ mail-> add_html ($ html, $ text ); $ mail-> build_message (); $ mail-> send (recipient, Email, Sender, Email, subject, external Header );

Response $ mail = new html_mime_mail (); $ html = HTML content; $ mail-> add_html ($ html, $ text); $ mail-> build_message (); $ mail-> send (recipient, recipient Email, Sender, sender Email, tag...

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.