xcmir Posted June 30, 2008 Share Posted June 30, 2008 I have just started learning php and am trying to send emails via the send_mail function. However I have no idea how to configure SMTP settings in php.ini. I am using a home computer(windows XP) as my server and to my understanding, I must install a mail server to send emails via localhost. What mail server should I use and how do I configure it so I can send emails via php? Also, I read somewhere that emails sent via home server sometimes get marked as spam, how do I stop this happening. Final question: How do I go about learning PHP? Is there a good book to recommend or tutorial?? Help appretiated, thanks. Link to comment https://forums.phpfreaks.com/topic/112553-sending-emails-via-php/ Share on other sites More sharing options...
MasterACE14 Posted June 30, 2008 Share Posted June 30, 2008 checkout these tutorials http://www.tizag.com/phpT/ and http://www.phpfreaks.com/tutorials for alittle more advanced stuff. Regards ACE Link to comment https://forums.phpfreaks.com/topic/112553-sending-emails-via-php/#findComment-578021 Share on other sites More sharing options...
Guest Posted June 30, 2008 Share Posted June 30, 2008 Somthing else to check out is phpmailer doesnt require as much effort to use smtp in my opinion http://phpmailer.codeworxtech.com/ Just throwing that out there for you I dont know about the spam problem I think there are ways to check if your ip is blacklisted and I think the content of the email really matters but thats just my thoughts Link to comment https://forums.phpfreaks.com/topic/112553-sending-emails-via-php/#findComment-578023 Share on other sites More sharing options...
MasterACE14 Posted June 30, 2008 Share Posted June 30, 2008 there isn't really any way to 100% guarantee that your e-mails will not be declared 'spam' by different mailing services. Hotmail for example can be a pain in the neck declaring a hell of a lot as spam. Link to comment https://forums.phpfreaks.com/topic/112553-sending-emails-via-php/#findComment-578029 Share on other sites More sharing options...
xcmir Posted June 30, 2008 Author Share Posted June 30, 2008 Hi, thanks for the tutorials, but is there a way to do it with the send_mail as I really need it for a project I am working on Link to comment https://forums.phpfreaks.com/topic/112553-sending-emails-via-php/#findComment-578032 Share on other sites More sharing options...
kenrbnsn Posted June 30, 2008 Share Posted June 30, 2008 The mail() function will use whatever is the defined mail program for the server. If it is sendmail, then it will use that. Ken Link to comment https://forums.phpfreaks.com/topic/112553-sending-emails-via-php/#findComment-578036 Share on other sites More sharing options...
xcmir Posted June 30, 2008 Author Share Posted June 30, 2008 Hi, what would be a good mail server to use in windows? Link to comment https://forums.phpfreaks.com/topic/112553-sending-emails-via-php/#findComment-578040 Share on other sites More sharing options...
MasterACE14 Posted June 30, 2008 Share Posted June 30, 2008 google it Link to comment https://forums.phpfreaks.com/topic/112553-sending-emails-via-php/#findComment-578043 Share on other sites More sharing options...
xcmir Posted June 30, 2008 Author Share Posted June 30, 2008 Ok, I think I will use Imail server, is that a good choice? Link to comment https://forums.phpfreaks.com/topic/112553-sending-emails-via-php/#findComment-578052 Share on other sites More sharing options...
MasterACE14 Posted June 30, 2008 Share Posted June 30, 2008 try it and found out. trial and error is the way. Link to comment https://forums.phpfreaks.com/topic/112553-sending-emails-via-php/#findComment-578053 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.