hassank1 Posted January 15, 2008 Share Posted January 15, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/86135-send-mail-using-gmail-account/ Share on other sites More sharing options...
revraz Posted January 15, 2008 Share Posted January 15, 2008 You can try to use IMAP Quote Link to comment https://forums.phpfreaks.com/topic/86135-send-mail-using-gmail-account/#findComment-439872 Share on other sites More sharing options...
adam291086 Posted January 15, 2008 Share Posted January 15, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/86135-send-mail-using-gmail-account/#findComment-439877 Share on other sites More sharing options...
PFMaBiSmAd Posted January 15, 2008 Share Posted January 15, 2008 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/ Quote Link to comment https://forums.phpfreaks.com/topic/86135-send-mail-using-gmail-account/#findComment-439886 Share on other sites More sharing options...
cooldude832 Posted January 15, 2008 Share Posted January 15, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/86135-send-mail-using-gmail-account/#findComment-439887 Share on other sites More sharing options...
adam291086 Posted January 15, 2008 Share Posted January 15, 2008 looks like i was the one that was confused. HA Ha i'm going off to learn now. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/86135-send-mail-using-gmail-account/#findComment-439889 Share on other sites More sharing options...
hassank1 Posted January 15, 2008 Author Share Posted January 15, 2008 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 !? Quote Link to comment https://forums.phpfreaks.com/topic/86135-send-mail-using-gmail-account/#findComment-439895 Share on other sites More sharing options...
hassank1 Posted January 15, 2008 Author Share Posted January 15, 2008 I was checking google and I found that IMAP is related to viewing message not to sending them !?!! Quote Link to comment https://forums.phpfreaks.com/topic/86135-send-mail-using-gmail-account/#findComment-439911 Share on other sites More sharing options...
PFMaBiSmAd Posted January 15, 2008 Share Posted January 15, 2008 My post above contains the answer. Quote Link to comment https://forums.phpfreaks.com/topic/86135-send-mail-using-gmail-account/#findComment-439919 Share on other sites More sharing options...
cooldude832 Posted January 15, 2008 Share Posted January 15, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/86135-send-mail-using-gmail-account/#findComment-439924 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.