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 wrote:That's already done.. but mail() is local and not from one server to other server.
Smtp email - from and bounce
Moderator: General Moderators
Re: Smtp email - from and bounce
Re: Smtp email - from and bounce
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
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
Re: Smtp email - from and bounce
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 wrote:but mail() is local and not from one server to other server.
Re: Smtp email - from and bounce
We try mail(** -f) on server 1 and return-path is set fine.. but this is local sendApollo wrote: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 wrote:but mail() is local and not from one server to other server.
We cannot use mail(** -f) to send from server 1 to server 2 so cannot test this
Thanks
Re: Smtp email - from and bounce
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
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?webstyler wrote:uhm.. -f with mail() function return correct value
so think must go also with smtp send way .. :/