Last active
October 25, 2019 11:03
-
-
Save kadavre/6965796 to your computer and use it in GitHub Desktop.
Send mail with cakephp using gmail.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public $gmail = array( | |
'host' => 'ssl://smtp.gmail.com', | |
'port' => 465, | |
'username' => 'votreidentifiant@gmail.com', | |
'password' => 'motdepasse', | |
'transport' => 'Smtp', | |
'timeout' => 30 | |
); | |
$email = new CakeEmail('gmail'); | |
$email->from('votreidentifiant@gmail.com') | |
->to('contact@grafikart.fr') | |
->subject('Merci !') | |
->send("Hello Grafikart"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i have not smtp credential, is it mendetory (www.examsdetails.com) smtp credentials in cakephp version 3