I have a Magento installation, and for certain recipients the transactional emails appear to be coming FROM something like [ftpUsername]@[servername.hostingcompany.com] on behalf of SENDER instead of just FROM SENDER. I hope that makes sense. How can I fix this ?

I know this has something to do with SMTP authentication or PHP mail but I cant find any such settings in magento and I don't know whether it's an issue with the magento settings, the server or the end users email clients. I also have a problem in that the mails send fine to all my own email accounts so I cant actually replicate myself it ( yet ).

1 Answer 1


I assume this is because the on-behalf-of header is being set by Magento. I've never had this problem before, but it seems like it'd only make sense for Magento to do this if it were a "share with a friend" email. It should not be doing this for transactional emails.

If Magento isn't setting the header, then it might be set by the SMTP server you're using, in which case you'd need to contact your web host about that. If the sender is just [email protected], then I don't see why it should use the on-behalf-of header. But apparently some web hosts attach this header automatically if you connect to the SMTP server on a standard port and only send the email properly if connected via port 2525.

  • Thanks. Can you happen to tell me whether Magento uses PHP mail or SMTP authentication, and if SMTP where the server details go ? All I could find was a spot saying 'Windows only' but my server is Linux. Commented Feb 4, 2012 at 1:23
  • @byronyasgur: By default, no. And most tutorials you'll find tell you to modify the core files (don't ever do this; there is almost always a better way, as is the case here), but you can use this free Magento extension to configure Magento to use SMTP authentication. Commented Feb 4, 2012 at 1:41
  • I think this answers my problem - will try it out next week, thanks. Commented Feb 4, 2012 at 1:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.