Jump to content

send mail using gmail account?!


hassank1

Recommended Posts

hey I was wondering if there's a method 2 send mail from my gmail account using php script

(php script will get my account id and password) so I think in this way when sending an email I'll be more sure that mail won't delivered to the spam folder...so is there any method tutorial or something else ?

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/86135-send-mail-using-gmail-account/
Share on other sites

You can send email using your gmail account using php, but you must use SMTP authentication (to give your account name/password) and the php mail() function does not support SMTP authentication.

 

To do this you must open a socket to the mail server and exchange SMTP commands. The two popular php mailer classes - phpmailer and swiftmailer do this for you - http://phpmailer.codeworxtech.com/ and http://www.swiftmailer.org/

i think you have got confused. You can set where the mail is from, which can be your gmail account. But as far as i know the mail is sent via your webserver.

 

Nope IMAP can do exactly this, its a bit tricky and very slow but needless to say it will work out.  THe IMAP Fetch_mail_box function user notes has a bunch of tips on gmail.

 

Nope IMAP can do exactly this, its a bit tricky and very slow but needless to say it will work out.  THe IMAP Fetch_mail_box function user notes has a bunch of tips on gmail.

 

what's IMAP exactly ? and when saying very slow .. do u mean isn't reliable 2 use it for big (or moderate) mailing list :S !?

IMAP (internet mail access protocol) is a system of allow a server communicate email messages to another that is universally compliant.  Outlook uses it, thunderbird and any other mailer client uses  it.  It can send mail I have never done in, but the primary in it is reading a mailbox.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.