Home PHP How to change the Return-path email address using the PHPMailer class?
 
 
 

How to change the Return-path email address using the PHPMailer class?

PDF Print E-mail

Question: How to change the Return-path email address using the PHPMailer class?

 

Answer:

Fill the $Sender property with the email address you wish to have as the Return-path 

eg.

$mail->Sender="test@testmail.com";

This property can be found on Line 97 in the class.phpmailer.php file

 
  /** 
   * Sets the Sender email (Return-Path) of the message.  If not empty, 
   * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode. 
   * @var string 
   */ 
  public $Sender            = '';

 

+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!