Revision [1198]
Last edited on 2010-04-10 07:37:37 by KlenwellAdminAdditions:
This is the same code from the [[http://klenwell.googlecode.com/svn/branches/archive2008/PHP/kw_gmailer/test.gmailer.php test script]]. Username and Password below would be your gmail email address (e.g. klenwell@gmail.com) and password.
Deletions:
Revision [692]
Edited on 2007-07-16 00:25:29 by KlenwellAdminAdditions:
===Caution===
===Configure===
===Usage===
===Configure===
===Usage===
Deletions:
=====Configure=====
=====Usage=====
Revision [618]
Edited on 2007-06-27 19:06:50 by KlenwellAdminAdditions:
CategoryGreqo
Revision [617]
Edited on 2007-06-27 19:06:12 by KlenwellAdminAdditions:
=====Caution=====
Google policy does not allow "third party software that automatically logs in to your account". For more info, [[http://mail.google.com/support/bin/answer.py?answer=43692 click here]]
Google policy does not allow "third party software that automatically logs in to your account". For more info, [[http://mail.google.com/support/bin/answer.py?answer=43692 click here]]
Revision [495]
Edited on 2007-05-10 17:53:59 by KlenwellAdminAdditions:
""GmailMailer"" is an extension of [[http://phpmailer.sourceforge.net/ PHPMailer]] for use with [[https://mail.google.com/support/bin/answer.py?answer=13287&query=smtp&topic=&type=f&ctx=search Gmail accounts via smtp]]. Unlike the other solutions I've found to the problem of using ""PHPMailer"" with Gmail, ""GmailMailer"" -- by extending the ""PHPMailer"" class and overriding a couple function -- does not require any modification of the ""PHPMailer"" class itself.
Deletions:
Revision [494]
Edited on 2007-05-10 17:53:34 by KlenwellAdminAdditions:
""GmailMailer"" is an extension of [[http://phpmailer.sourceforge.net/ PHPMailer]] for use with [[https://mail.google.com/support/bin/answer.py?answer=13287&query=smtp&topic=&type=f&ctx=search Gmail accounts via SMTP]]. Unlike the other solutions I've found to the problem of using ""PHPMailer"" with Gmail, ""GmailMailer"" -- by extending the ""PHPMailer"" class and overriding a couple function -- does not require any modification of the ""PHPMailer"" class itself.
Deletions:
Revision [493]
Edited on 2007-05-10 17:45:26 by KlenwellAdminAdditions:
This is the same code from the [[http://klenwell.googlecode.com/svn/trunk/PHP/kw_gmailer/test.gmailer.php test script]]. Username and Password below would be your gmail email address (e.g. klenwell@gmail.com) and password.
Deletions:
Revision [492]
Edited on 2007-05-10 17:43:39 by KlenwellAdminAdditions:
This is the same code from the test script. Username and Password below would be your gmail email address (e.g. klenwell@gmail.com) and password.
Revision [491]
Edited on 2007-05-10 15:32:00 by KlenwellAdminAdditions:
[[http://code.google.com/p/klenwell/issues/list click here to report bugs]]
""GmailMailer"" is an extension of [[http://phpmailer.sourceforge.net/ PHPMailer]] for use with Gmail accounts. Unlike the other solutions I've found to the problem of using ""PHPMailer"" with Gmail, ""GmailMailer"" -- by extending the ""PHPMailer"" class and overriding a couple function -- does not require any modification of the ""PHPMailer"" class itself.
""GmailMailer"" is an extension of [[http://phpmailer.sourceforge.net/ PHPMailer]] for use with Gmail accounts. Unlike the other solutions I've found to the problem of using ""PHPMailer"" with Gmail, ""GmailMailer"" -- by extending the ""PHPMailer"" class and overriding a couple function -- does not require any modification of the ""PHPMailer"" class itself.
Deletions:
Revision [490]
Edited on 2007-05-10 15:11:57 by KlenwellAdminAdditions:
""GmailMailer"" is an extension of [[http://phpmailer.sourceforge.net/ PHPMailer]] for use with Gmail accounts. Unlike some other solutions I've found to the problem of using ""PHPMailer"" with Gmail, ""GmailMailer"" -- by extending the ""PHPMailer"" class and overriding a couple function -- does not require any modification of the ""PHPMailer"" class itself.
Deletions:
Revision [489]
Edited on 2007-05-10 15:05:42 by KlenwellAdminAdditions:
""GmailMailer"" is an extension of [[http://phpmailer.sourceforge.net/ PHPMailer] for use with Gmail accounts. Unlike some other solutions I've found to the problem of using ""PHPMailer"" with Gmail, ""GmailMailer"" -- by extending the ""PHPMailer"" class and overriding a couple function -- does not require any modification of the ""PHPMailer"" class itself.
Deletions:
Revision [488]
Edited on 2007-05-10 15:04:59 by KlenwellAdminAdditions:
===[[http://code.google.com/p/klenwell/downloads/list download here]]===
It can be downloaded together with a test script from the klenwell code site. The source is available from [[http://klenwell.googlecode.com/svn/trunk/PHP/kw_gmailer/ the repository]].
It can be downloaded together with a test script from the klenwell code site. The source is available from [[http://klenwell.googlecode.com/svn/trunk/PHP/kw_gmailer/ the repository]].
Deletions:
Revision [487]
Edited on 2007-05-10 14:42:39 by KlenwellAdminNo differences.
Revision [486]
Edited on 2007-05-10 14:42:08 by KlenwellAdminAdditions:
The simplest way to accomplish this is to drop ""GmailMailer"" in the same directory as ""PHPMailer"" and leave ""$__PHPMAILER['dirpath']"" blank. Otherwise, ""$__PHPMAILER['dirpath']"" should be pointed to the directory in which ""PHPMailer"" is found.
Deletions:
Revision [485]
Edited on 2007-05-10 14:41:25 by KlenwellAdminAdditions:
""GmailMailer"" does not come packaged with ""PHPMailer"". That can be [[http://phpmailer.sourceforge.net/ downloaded here]]. ""GmailMailer"" calls the file for the ""PHPMailer"" base class around line 65:
// *** IMPORTANT : set path to directory holding PHPMailer base class here
$__PHPMAILER['dirpath'] = '';
$__PHPMAILER['basename'] = 'class.phpmailer.php';
require_once($__PHPMAILER['dirpath'] . $__PHPMAILER['basename']);
The simplest way to accomplish this is to drop ""GmailMailer"" in the same directory as ""PHPMailer"" and leave $__PHPMAILER['dirpath'] blank. Otherwise, $__PHPMAILER['dirpath'] should be pointed to the directory in which ""PHPMailer"" is found.
// *** IMPORTANT : set path to directory holding PHPMailer base class here
$__PHPMAILER['dirpath'] = '';
$__PHPMAILER['basename'] = 'class.phpmailer.php';
require_once($__PHPMAILER['dirpath'] . $__PHPMAILER['basename']);
The simplest way to accomplish this is to drop ""GmailMailer"" in the same directory as ""PHPMailer"" and leave $__PHPMAILER['dirpath'] blank. Otherwise, $__PHPMAILER['dirpath'] should be pointed to the directory in which ""PHPMailer"" is found.
Revision [484]
Edited on 2007-05-10 14:35:38 by KlenwellAdminAdditions:
// settings
$_PATH['gmailer'] = 'gmailer.class.php';
// run
require_once($_PATH['gmailer']);
$Mailer = new GmailMailer($debug=1);
$Mailer->Username = '';
$Mailer->Password = '';
$Mailer->FromName = 'Your Name';
$Mailer->AddAddress('recipient@gmail.com', 'Recipient Name');
$Mailer->Subject = 'testing GmailMailer';
$Mailer->Body = "This is a test of GmailMailer, an extension of PHPMailer for use with Gmail accounts.";
if ( !$Mailer->send_email() )
{
trigger_error('drats! It failed', E_USER_WARNING);
}
else
{
$Mailer->print_d('Message successfully sent!');
$Mailer->print_d("
}
$_PATH['gmailer'] = 'gmailer.class.php';
// run
require_once($_PATH['gmailer']);
$Mailer = new GmailMailer($debug=1);
$Mailer->Username = '';
$Mailer->Password = '';
$Mailer->FromName = 'Your Name';
$Mailer->AddAddress('recipient@gmail.com', 'Recipient Name');
$Mailer->Subject = 'testing GmailMailer';
$Mailer->Body = "This is a test of GmailMailer, an extension of PHPMailer for use with Gmail accounts.";
if ( !$Mailer->send_email() )
{
trigger_error('drats! It failed', E_USER_WARNING);
}
else
{
$Mailer->print_d('Message successfully sent!');
$Mailer->print_d("
Subject:{$Mailer->Subject}\n{$Mailer->Body}");}
Revision [483]
Edited on 2007-05-10 14:34:07 by KlenwellAdminAdditions:
======Klenwell ""GmailMailer""======
""GmailMailer"" is an extension of ""PHPMailer"" for use with Gmail accounts. Unlike some other solutions I've found to the problem of using ""PHPMailer"" with Gmail, ""GmailMailer"" -- by extending the ""PHPMailer"" class and overriding a couple function -- does not require any modification of the ""PHPMailer"" class itself.
""GmailMailer"" is an extension of ""PHPMailer"" for use with Gmail accounts. Unlike some other solutions I've found to the problem of using ""PHPMailer"" with Gmail, ""GmailMailer"" -- by extending the ""PHPMailer"" class and overriding a couple function -- does not require any modification of the ""PHPMailer"" class itself.
Deletions:
GmailMailer is an extension of PHPMailer for use with Gmail accounts. Unlike some other solutions I've found to the problem of using PHPMailer with Gmail, GmailMailer -- by extending the PHPMailer class and overriding a couple function -- does not require any modification of the PHPMailer class itself.