How to use SC_SEND_MAIL with Gmail Account

HI !

Is it possible to use macro SC_SEND_MAIL if I use Gmail account
I try to config like this :

$mail_smtp_server = ‘smtp.gmail.com’;
$mail_smtp_user = ‘<myusername>’;
$mail_smtp_pass = ‘<mypassword>’;


$mail_port = ‘465’;
$mail_tp_connection = ‘S’;

But it did not work, I do not know that we can use gmail with sc_send_mail or not
or I mistake in configuration

Thank

psuwan

Your settings are correct. The question you have to ask is if you can reach smtp.gmail.com on port 465 from your machine. It may not work due to firewall settings. Just try a telnet session and see if you can even reach the smtp server.

Here is a website that might help you here, you can even download the example code.

http://phppot.com/php/send-email-in-php-using-gmail-smtp/

Dr. Tim

Hi,

Thank you for both of your answers.

panya