stuckwithcode Posted March 17, 2010 Share Posted March 17, 2010 Hello When sending an email using php mail do i need to type in a username and password of my host somewhere, or is this not needed. Quote Link to comment Share on other sites More sharing options...
scvinodkumar Posted March 17, 2010 Share Posted March 17, 2010 If you using SMTP mail, then u have specify the username and password, otherwise no need at all.... Quote Link to comment Share on other sites More sharing options...
trq Posted March 17, 2010 Share Posted March 17, 2010 If you using SMTP mail, then u have specify the username and password, otherwise no need at all.... All mail is sent via smtp. To answer the question. PHP's mail function does not support authentication. This usually means you need to use a local smtp server to send mail. However, there do exist third party libraries around that will allow you to pass authentication data to an smtp server, thus enabling you to use an account on a remote machine. Quote Link to comment Share on other sites More sharing options...
hackalive Posted March 17, 2010 Share Posted March 17, 2010 How could I set PHP SMTP settings outside the .ini file? Quote Link to comment Share on other sites More sharing options...
trq Posted March 17, 2010 Share Posted March 17, 2010 ini_set. Quote Link to comment Share on other sites More sharing options...
stuckwithcode Posted March 17, 2010 Author Share Posted March 17, 2010 if I am using 1&1 as my web host can i just use php mail, how do i know if i need to use smtp authentication. I've been looking at this for a while and am still stuck. I am on 1&1 and want to send email through php is it easy? Thanks Quote Link to comment Share on other sites More sharing options...
trq Posted March 17, 2010 Share Posted March 17, 2010 Most hosts provide a mail facility. Read through a faq or something, Ive never used 1&1. 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.