Gmail notes

This commit is contained in:
Marcus Bointon 2021-06-23 12:44:18 +02:00
parent e0975c2c86
commit 482e18ee05
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 4 additions and 0 deletions

View File

@ -51,9 +51,13 @@ $mail->Username = 'username@gmail.com';
$mail->Password = 'yourpassword';
//Set who the message is to be sent from
//Note that with gmail you can only use your account address (same as `Username`)
//or predefined aliases that you have configured within your account.
//Do not use user-submitted addresses in here
$mail->setFrom('from@example.com', 'First Last');
//Set an alternative reply-to address
//This is a good place to put user-submitted addresses
$mail->addReplyTo('replyto@example.com', 'First Last');
//Set who the message is to be sent to