coder500 Posted September 12, 2008 Share Posted September 12, 2008 I have installed wampserver. Can anyone advise me what I can do to send mails. Phpmailer is also there. I have a website and it has a mailserver. Can I send mails using that mail server or shall I have to install SMTP server locally... Any help... Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted September 12, 2008 Share Posted September 12, 2008 You can use an external SMTP server just fine. Just change the relevant settings in php.ini. Quote Link to comment Share on other sites More sharing options...
coder500 Posted September 12, 2008 Author Share Posted September 12, 2008 Could u please tell me what I have to change in php.ini Where I will enter username and password for the mail server? Thanks Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 13, 2008 Share Posted September 13, 2008 To use an external mail server, you will need to use something like the phpmailer class, which supports SMTP authentication, because the php mail() function does not. Quote Link to comment Share on other sites More sharing options...
coder500 Posted September 13, 2008 Author Share Posted September 13, 2008 I installed phpmailer. In class.phpmailer.php there is option to enter smtp username and smtp password. I entered them. Also I changed the SMTP line in php.ini file to smtp.worth2read.org(mailserver) of my remote server. But I could not make it to work. Shall I have to change anything else... Thanks Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 13, 2008 Share Posted September 13, 2008 Only the php mail() function uses the SMTP setting in php.ini. To use your SMTP server with phpmailer, you need to set the phpmailer host parameter - $mail->Host = "smtp.example.com"; // SMTP server 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.