assemkh Posted December 29, 2009 Share Posted December 29, 2009 I have a web site on free hosting that doesn't support SMTP - (it supports PHP). I have a contact form, and I want to use Gmail's SMTP server to send the emails. I searched for way to do that but it didn't work with me and I've found it complicated. I need some one who knows well in PHP to give me the complete code so I can put these settings in it: SMTP Server: smtp.gmail.com Port: 25 Username: myusername Password: mypassword Please help me. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/186594-how-to-send-mail-via-authenticated-smtp-server-using-php/ Share on other sites More sharing options...
cags Posted December 29, 2009 Share Posted December 29, 2009 The standard mail function in PHP does not support authentication, you will have to use a custom mailer class (such as PHPMailer or PEAR:Mail). Quote Link to comment https://forums.phpfreaks.com/topic/186594-how-to-send-mail-via-authenticated-smtp-server-using-php/#findComment-985478 Share on other sites More sharing options...
PFMaBiSmAd Posted December 29, 2009 Share Posted December 29, 2009 smtp.gmail.com uses port: 465 Quote Link to comment https://forums.phpfreaks.com/topic/186594-how-to-send-mail-via-authenticated-smtp-server-using-php/#findComment-985479 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.