library gae-cakephp-email
A Mail Transport Class written for CakePHP + Google App Engine Setups.
inits/gae-cakephp-email
A Mail Transport Class written for CakePHP + Google App Engine Setups.
- Wednesday, July 1, 2015
- by dftaiwo
- Repository
- 2 Watchers
- 2 Stars
- 3 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
gae-cakephp-email
A Mail Transport Class written for [CakePHP] (http://cakephp.org/) + [Google App Engine] (https://developers.google.com/appengine/docs/php) Setups., (*1)
One of the challenges when deploying CakePHP on Google App Engine for PHP
is the fact that you cannot send out mails using the normal [CakeEmail] (http://book.cakephp.org/2.0/en/core-utility-libraries/email.html) class., (*2)
So I wrote this class to wrap around the Google App Engine [Message] (https://cloud.google.com/appengine/docs/php/mail/) class so it seamlessly works., (*3)
Installation + Configuration
-
[Download the latest code] (https://github.com/dftaiwo/gae-cakephp-email/archive/master.zip) or clone this repo, (*4)
-
Copy the Network folder from the zip to /app/Lib/, (*5)
-
Lastly, update /app/Config/email.php to have at least the following, (*6)
<?php
class EmailConfig {
public $default = array(
'transport' => 'GAE',
);
}
And use the following when creating an instance of the [CakeEmail] (http://book.cakephp.org/2.0/en/core-utility-libraries/email.html) class in your code:, (*7)
<?php
$emailObj = new CakeEmail('default');
Finish!, (*8)
dev-master
9999999-dev
A Mail Transport Class written for CakePHP + Google App Engine Setups.
Sources
Download
GPL 3.0
by
Femi Taiwo