Sets the text-only body of the message. This body can be read by mail clients that do not have HTML email capability such as mutt. Sets the Body of the message. This can be either an HTML or text body. Sets the Encoding of the message. Options for this are "8bit", "7bit", "binary", "base64", and "quoted-printable".
|Published (Last):||4 April 2010|
|PDF File Size:||12.51 Mb|
|ePub File Size:||14.91 Mb|
|Price:||Free* [*Free Regsitration Required]|
Sets the text-only body of the message. This body can be read by mail clients that do not have HTML email capability such as mutt. Sets the Body of the message. This can be either an HTML or text body. Sets the Encoding of the message. Options for this are "8bit", "7bit", "binary", "base64", and "quoted-printable". Sets the SMTP hosts. All hosts must be separated by a semicolon. You can also specify a different port for each host by using this format: [hostname:port] e.
Method to send mail: "mail", "sendmail", or "smtp". Path to PHPMailer plugins. Sets the Sender email Return-Path of the message. Sets SMTP authentication. Utilizes the Username and Password variables. Prevents the SMTP connection from being closed after each mail sending. If this is set to true then to close the connection requires an explicit call to SmtpClose. Sets the SMTP server timeout in seconds. This function will not work with the win32 version. Sets word wrapping on the body of the message to a given number of characters.
Adds a "Bcc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer. Adds a "Cc" address. Adds an embedded attachment.
This can include images, sounds, and just about any other document. This method can be used to attach ascii or binary data, such as a BLOB record from a database. Returns void. Clears all previously set filesystem, string, and binary attachments. Creates message and assigns Mailer. If the message is not sent successfully then it returns false.
Use the ErrorInfo variable to view description of the error. Sets the language for all class error messages. Returns false if it cannot load the language file. The default language type is English. Packages Select a package Package: PHPMailer.
Developer Network License The Joomla! PHPMailer Description. Description Descendents Variables details Methods details. Matzelle author: Brent R. Provides a common interface to send e-mail from the Joomla! Description Descendants Variables details Methods details. AddAddress line AddAttachment line AddBCC line AddCC line AddCustomHeader line AddEmbeddedImage line AddReplyTo line AddStringAttachment line ClearAddresses line ClearAllRecipients line ClearAttachments line ClearBCCs line ClearCCs line ClearCustomHeaders line ClearReplyTos line IsError line IsHTML line IsMail line IsQmail line IsSendmail line IsSMTP line Send line SetLanguage line SmtpClose line Accessibility Statement.
Subscribe to RSS
Please refer to the readme file. PHP has a built-in mail function. So why use PHPMailer? Isn't it slower? Not really, because before you can send a message you have to construct one correctly, and this is extremely complicated because there are so many technical considerations. This tutorial explains how to implement the class in your script or website and how to build an e-mail application. Almost every code example you will find online using mail including the PHP documentation for the mail function has problems that can be avoided by using a library.
Background: mail will sometimes corrupt messages with headers headers longer than 65 chars, see Options: "8bit", "7bit", "binary", "base64", and "quoted-printable". This will usually be turned into a Return-Path header by the receiver, and is the address that bounces will be sent to. The email address that a reading confirmation should be sent to, also known as read receipt. If empty, a unique id will be generated. You can set your own, but it must be in the format " id domain ", as defined in RFC section 3.