tags:

views:

16

answers:

1

Quick question.

I have a gmail account

ie/ [email protected]

i have associated my website email to it

ie/

[email protected]

Is it possible to use PHPMailer to send email via gmail (for reliability, less likely to get flagged as spam etc..) but have "[email protected]" as my sent email???

I'm using the code found here:

http://blog.levhita.net/2008/03/13/send-email-using-gmail-and-phpmailer/

So far i've been getting an error:

SMTP Error: Could not authenticate.

Thanks.

A: 

The example there does not seem to be using SSL which is required.

$host = "ssl://smtp.gmail.com";

Make sure you have OpenSSL extension turned on from php.ini.

Sarfraz