From 9d3e4869124fb9e9b533e747dbbaa99734c4e1c9 Mon Sep 17 00:00:00 2001 From: Synchro Date: Fri, 12 Apr 2013 19:26:04 +0200 Subject: [PATCH] Add support for VERP feature we already have! Fixes #43 --- class.phpmailer.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/class.phpmailer.php b/class.phpmailer.php index 667f1878..fa1e377c 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -313,7 +313,14 @@ class PHPMailer { */ public $SingleTo = false; - /** + /** + * Should we generate VERP addresses when sending via SMTP? + * @link http://en.wikipedia.org/wiki/Variable_envelope_return_path + * @var bool + */ + public $do_verp = false; + + /** * If SingleTo is true, this provides the array to hold the email addresses * @var bool */ @@ -1059,6 +1066,7 @@ class PHPMailer { $this->smtp->Timeout = $this->Timeout; $this->smtp->do_debug = $this->SMTPDebug; + $this->smtp->do_verp = $this->do_verp; $hosts = explode(';', $this->Host); $index = 0; $connection = $this->smtp->Connected();