PEAR is framework and distribution system for reusable PHP components. so your code would look something like:įor a full code example please see our PHPMailer setup guide. The following addresses had permanent fatal errors. To prevent mail loops, bounce messages never have a RETURN PATH or ENVELOPE FROM address set.Īs an example for the message body, if you sent a message to an invalid email address it would contain something like: The original message was received at Thu, 10:00:00 GMT from Subject: Returned mail: see transcript for details ![]() The following image demonstrates a simple SMTP transaction highlighting when the different addresses are declared.īounce messages always use a standard format so that you can easily identify them: Return-Path: It is important to note that both the ENVELOPE FROM and the HEADER FROM address have to be authorized on your account for sending. ![]() It is not possible with email programs such as Outlook or Mac Mail. If you have a central email server or custom application it is possible to modify the ENVELOPE FROM address so that you can redirect bounce messages to an alternative address for processing. This is optional but if specified it is the address the recipients reply will go to.This address is stored in the headers of your emails as 'Reply-To:'.This address is stored in the email headers as 'From:' and is what the recipient will see as the from address.You cannot manually specify this address, it will be over-written with the ' ENVELOPE FROM' address during delivery.This address is stored in the email headers as 'Return-Path:' and will always be set based on the ' ENVELOPE FROM' address.Bounce emails will always be sent back to this address.This is the from email address declared as the 'MAIL FROM' when your email application initially connects.If a message cannot be delivered we send a message back to you explaining why - this is called a delivery status notification (DSN) or non-delivery report (NDR), for short they are called 'bounce' emails.Įmail messages have a number of elements that you need to be aware of when considering how to handle bounces: To change the destination of bounce emails you need to modify the 'envelope' from address. ![]() ![]() How do I redirect DSN / NDR / Bounce emails to another email address?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |