TobesC Posted December 18, 2008 Share Posted December 18, 2008 Hey everyone - I've been looking all over for this, but how do I configure PHP to send mail through gmail? ive got the SMTP set to smtp.gmail.com, smtp_port=25, sendmail_from=my email address. any other help? thanks Link to comment https://forums.phpfreaks.com/topic/137574-php-mail/ Share on other sites More sharing options...
rhodesa Posted December 18, 2008 Share Posted December 18, 2008 i don't think PHP allows you to configure it at a php.ini level. just use this code, it allows you to send emails and specify an smtp server with a username/password: http://phpmailer.codeworxtech.com/ Link to comment https://forums.phpfreaks.com/topic/137574-php-mail/#findComment-719065 Share on other sites More sharing options...
premiso Posted December 18, 2008 Share Posted December 18, 2008 Look into PEAR::Mail or phpMailer. I believe both allow SMTP. Link to comment https://forums.phpfreaks.com/topic/137574-php-mail/#findComment-719068 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.