Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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 ).

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

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 no-reply@yourdomain.tld, 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.

share|improve this answer
    
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. –  byronyasgur Feb 4 '12 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. –  Lèse majesté Feb 4 '12 at 1:41
    
I think this answers my problem - will try it out next week, thanks. –  byronyasgur Feb 4 '12 at 1:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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