Gears Posted June 25, 2007 Share Posted June 25, 2007 Which method of mail do you use PHP Mail() or SMTP? Does one have more benefits than the other? I'm using PHP Mail() right now but I'm considering switching to SMTP. When receiving any of the email templates (Customer Invoice, Order Confirmation, etc), the sender is info@example.com but when receiving support ticket emails, the sender is department_name@example.com If I change to SMTP with this still be the case? 0 Quote Link to comment Share on other sites More sharing options...
SpookedOut Posted June 25, 2007 Share Posted June 25, 2007 The support department's are assigned with emails which you specify; In this case you chose 'department_name@example.com' and for the email templates its 'info@example.com'. That's not going to change! It will stay the same whether you use PHP Mail() or SMTP Hope that helps.. 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted June 25, 2007 Author Share Posted June 25, 2007 Ok thanks. So what's the difference between PHP Mail() and SMTP? This is what I'm thinking: If I use PHP Mail(), the email message is sent by the server (the main server if I'm on a shared hosting account). If I use SMTP, the email is sent by the actual email account that I choose. Am I right? Can you elaborate? 0 Quote Link to comment Share on other sites More sharing options...
SpookedOut Posted June 25, 2007 Share Posted June 25, 2007 PHP Mail () is a PHP function. SMTP is an MAIL protocol. 0 Quote Link to comment Share on other sites More sharing options...
trine Posted June 25, 2007 Share Posted June 25, 2007 Ace to answer your question, the program will use the -f switch with php mail() to set the sender. So if everything is properly configured, your users should see the sender correctly. Some users have also posted some feedback about using the php mail() function .. namely that it causes them to be greylisted or thrown into a spam folder with some of the large free email providers. That again, is more of a server configuration and clean IP issue than not, and if that happens to you, try the SMTP. 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted July 18, 2007 Author Share Posted July 18, 2007 When viewing the emails that are sent to Gmail, it looks good. But when I receive the BBC'd system emails on my cellphone (via 5555555@tmomail.net), it shows the sender as nobody@example.com Does this mean the -f parameter is not setup correctly? The "System Emails From Email" is entered as info@example.com 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted July 18, 2007 Share Posted July 18, 2007 i highly recommend using SMTP. As a general rule, only use php mail if SMTP isnt available. I honestly do not like anything that emails that doesnt authenticate. 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted July 18, 2007 Author Share Posted July 18, 2007 Thanks MACscr The support department's are assigned with emails which you specify; In this case you chose 'department_name@example.com' and for the email templates its 'info@example.com'. That's not going to change! It will stay the same whether you use PHP Mail() or SMTP Hope that helps.. So does that mean emails from the support departments can only be sent by the php function? 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted July 18, 2007 Share Posted July 18, 2007 Thanks MACscr The support department's are assigned with emails which you specify; In this case you chose 'department_name@example.com' and for the email templates its 'info@example.com'. That's not going to change! It will stay the same whether you use PHP Mail() or SMTP Hope that helps.. So does that mean emails from the support departments can only be sent by the php function? he didnt say anything of the sorts 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted July 18, 2007 Author Share Posted July 18, 2007 Thanks MACscr The support department's are assigned with emails which you specify; In this case you chose 'department_name@example.com' and for the email templates its 'info@example.com'. That's not going to change! It will stay the same whether you use PHP Mail() or SMTP Hope that helps.. So does that mean emails from the support departments can only be sent by the php function? he didnt say anything of the sorts So then those email addresses like thesalesdpt@example.com use the smtp credentials of the info@example.com email account? 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted July 18, 2007 Share Posted July 18, 2007 AFAIK, yes. If you actually look into the details of the email, its actually coming from info@domain.com, and not thesalesdept@domain.com, even though i bet most email clients wont show that info by default. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.