Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="http://www.askapache.com/php/phpfreaks-eric-rosebrocks-phpmailer-tutorial.html#Adding_Reply-To" rel="nofollow noreferrer">From a google search and first result</a></p> <blockquote> <p>Adding a Reply-To Address ^</p> <p>By default the Reply-To address will be the FROM address unless you specify otherwise. That is simply E-Mail client intelligence. However, you can have the E-Mail come from one E-Mail address and any replies go to a different one. Here's how:</p> <p><code>$mailer-&gt;AddReplyTo('billing@yourdomain.com', 'Billing Department');</code></p> <p>NOTE: You can have multiple Reply-To addresses, just duplicate the line in the previous code example and change the E-Mail address on each line.</p> </blockquote> <p>You will need to add this line before your from address. P<a href="https://stackoverflow.com/questions/10396264/phpmailer-reply-using-only-reply-to-address">lease check out this for the solution to the same problem.</a></p> <p>Following these examples, your code should look like</p> <pre><code>$this-&gt;phpmailer-&gt;IsSMTP(); $this-&gt;phpmailer-&gt;Host = $server; $this-&gt;phpmailer-&gt;Port = $port; $this-&gt;phpmailer-&gt;AddReplyTo($replyEmail,$fromName); //this is email2@example.com $this-&gt;phpmailer-&gt;SetFrom($fromEmail, $fromName); //this is email1@example.com $this-&gt;phpmailer-&gt;Subject = $subject; $this-&gt;phpmailer-&gt;AltBody = $msgTXT; // non-html text $this-&gt;phpmailer-&gt;MsgHTML($msgHTML); // html body-text $this-&gt;phpmailer-&gt;AddAddress($email); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload