php.ini SMTP settings for gmail

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
westsyde
-


Joined: 17 Feb 2005
Posts: 7

PostPosted: Thu Feb 09, 2006 11:36 pm    Post subject: php.ini SMTP settings for gmail Reply with quote

Can anyone enlighten me regarding this, as I have tried a number email accounts to sendmail via the php.ini however i can not get gmail to function. Does anyone know why gmail won't function as other accounts such as yahoo that use port 25. Is there anything else i need to alter for the secure port 465 used by gmail. I have used the following settings in my php.ini

[mail function]
; For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 465

; For Win32 only.
sendmail_from = westsyde.homeip.net@gmail.com

Thanks


Last edited by westsyde on Fri Feb 10, 2006 12:40 am; edited 2 times in total
Back to top View user's profile Send private message Visit poster's website
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Thu Feb 09, 2006 11:46 pm    Post subject: Reply with quote

GMail SMTP requires a username and password, and a secure connection.

I don't think these settings are supported in php.ini - you will need a separate mailer program to pass parameters to from your PHP script...
_________________

"Invent an idiot proof webserver and they'll invent a better idiot..."
Back to top View user's profile Send private message
westsyde
-


Joined: 17 Feb 2005
Posts: 7

PostPosted: Fri Feb 10, 2006 12:09 am    Post subject: phpmailer Reply with quote

I guess you are refering to phpmailer or similar.

I will give that a go and see if i can resolve this.


Thanks Anonymoose
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group