[SOLVED] setReturnPath not working in Swift-3.0.1-php4
Posted: Fri Mar 02, 2007 1:02 pm
Thanks for this great script. Everything is working fine for me so far but now I have run into a problem.
When I try to use the function setReturnPath as below in Swift 3.0.1 with PHP 4.4.1 in a script that works fine otherwise I get:
Fatal error: Call to undefined function: setreturnpath()
Is the code below from version 2? How can I use setReturnPath in version 3? I see the function exists in Message.php but if I am supposed to do something else to use this in version 3 I can not figure out what.
Thanks,
Kirk
When I try to use the function setReturnPath as below in Swift 3.0.1 with PHP 4.4.1 in a script that works fine otherwise I get:
Fatal error: Call to undefined function: setreturnpath()
Is the code below from version 2? How can I use setReturnPath in version 3? I see the function exists in Message.php but if I am supposed to do something else to use this in version 3 I can not figure out what.
Thanks,
Kirk
d11wtq wrote:The address in the From: header is the one you give to send(). The bounce-back address (Return-Path, and "MAIL FROM" envelope) is the one passed to $swift->setReturnPath($address), or otherwise, the same as the From: address.
I was going to post a link to the relevant page in the documentation, but now I see why this question crops up so regularly... I forgot to document it![]()
Code: Select all
$swift = new Swift( ... ); $from = "your@address.com"; $bounce_detect = "bounces@address.com"; $swift->setReturnPath($bounce_detect); // $swift->send($from, $to, $subject, $message);