We help IT Professionals succeed at work.

Change Return path by  William Fowler mailer script

fosiul01
fosiul01 used Ask the Experts™
on
Hi,
our developer team is using the bellow mailer to sent email outside.
and they use Windows server as apache and from php.ini, we have defined "smtp " to another server
and return path for email is working fine.

http://www.codewalkers.com/c/a/Email-Code/PHP-Text-HTML-Email-with-Attachments-21/


but the same script , when they trying to run a linux base apache server ( centos, sendmail)

the script cant change the return path of the email .

can any one tell me .. why is that ??
or is there any extra option they need to use in this script

thanks

note : this quesiton is only for this mailer. I know there are other mailer (phpmailer), but i need solution for this mailer only.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
When I try to run that script in PHP 5.2.17, it doesn't work and I get...

Warning: Call-time pass-by-reference has been deprecated in C:\Inetpub\wwwroot\ee\PHPemail\class.Email.php on line 261

Open in new window


What version of PHP are you running?
Top Expert 2009

Author

Commented:
we running 5.3.8

its works fine .

I am not a developer , i am linux admin. but they using this script. may be they modified the script to work with 5.3.8
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
If they modified the script, then you need to post that version for us to help with it.
Top Expert 2009

Author

Commented:
hi thats not hte solution of my quesiton.

example, normally phpmailer does not change Return path , you will have to put  -f in sender which will change return path
what i wanted to know

if any one using "Fowler mailer script" i need to know , if it can change Return path ( from windows server, it can) but from linux server, it cant ..

its nothing to do with (underline email setting)
Top Expert 2009
Commented:
adding a -f fixed the issue
Top Expert 2009

Author

Commented:
soved by our developer