Smtp email - from and bounce

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: Smtp email - from and bounce

Post by Eric! »

webstyler wrote:That's already done.. but mail() is local and not from one server to other server.
I don't understand what you are trying to do. Where is your smpt server, how are you connecting to it and what smpt server program is it and is it running on Apache?
webstyler
Forum Commoner
Posts: 85
Joined: Sat Feb 14, 2004 2:16 am

Re: Smtp email - from and bounce

Post by webstyler »

we send email from server 1 using server 2 as SMTP

so, on server 1 there is simple php code that connect on port 25 of server 2 and put on SMTP data

all work fine but return-path is removed

we set return-path as header because must be different to FROM value .. but on email header return-path have same value of FROM and our header return-path seems removed
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: Smtp email - from and bounce

Post by Apollo »

webstyler wrote:but mail() is local and not from one server to other server.
Ehm, so.. Have you or have you not been able to send mail to a random address with a custom Return-path using mail() ?
webstyler
Forum Commoner
Posts: 85
Joined: Sat Feb 14, 2004 2:16 am

Re: Smtp email - from and bounce

Post by webstyler »

Apollo wrote:
webstyler wrote:but mail() is local and not from one server to other server.
Ehm, so.. Have you or have you not been able to send mail to a random address with a custom Return-path using mail() ?
We try mail(** -f) on server 1 and return-path is set fine.. but this is local send

We cannot use mail(** -f) to send from server 1 to server 2 so cannot test this

Thanks
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: Smtp email - from and bounce

Post by Apollo »

Ah ok, I understood it worked fine with mail (using -f) because you wrote:
Apollo wrote:Strange, perhaps the SMTP server you're using does not allow custom Return-path addresses?

Have you tried connecting to a different SMTP server (from ISP, hosting provider, etc)? If that works, contact whoever is maintaining your current SMTP server, and tell them to fix this :)
webstyler wrote:uhm.. -f with mail() function return correct value

so think must go also with smtp send way .. :/
But if in fact that doesn't work either (at least not for outgoing email) then yes, there really seems something messed up with the SMTP server you are using. Perhaps it's maintained by your ISP or hosting provider, and you can contact them about this?
Post Reply