bobcowher Posted January 14, 2013 Share Posted January 14, 2013 I'm looking for a way to authenticate to Gmail's mail server with PHP without using "Mail::factory" or needing to include "Mail.php". Is there a way to do this? Link to comment https://forums.phpfreaks.com/topic/273107-authenticate-to-gmail-in-php-without-including-mailphp/ Share on other sites More sharing options...
trq Posted January 14, 2013 Share Posted January 14, 2013 Mail::Factory and Mail.php are not a standard part of PHP. So, the answer is yes. Assuming the code within Mail.php and/or the code within the class produced by calling Mail::Factory is capable of doing so. Link to comment https://forums.phpfreaks.com/topic/273107-authenticate-to-gmail-in-php-without-including-mailphp/#findComment-1405438 Share on other sites More sharing options...
devWhiz Posted January 14, 2013 Share Posted January 14, 2013 Personally, I use IMAP to authenticate Gmail in my scripts.. $imapHost = '{imap.gmail.com:993/imap/ssl}INBOX'; $openStream = imap_open($imapHost, $gmailAddress, $gmailPassword); Link to comment https://forums.phpfreaks.com/topic/273107-authenticate-to-gmail-in-php-without-including-mailphp/#findComment-1405493 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.