From 482e18ee0553c1f6348f688276d7dbec11a34735 Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Wed, 23 Jun 2021 12:44:18 +0200 Subject: [PATCH] Gmail notes --- examples/gmail.phps | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/gmail.phps b/examples/gmail.phps index 94e4cb46..fe6e09a9 100644 --- a/examples/gmail.phps +++ b/examples/gmail.phps @@ -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