-
Notifications
You must be signed in to change notification settings - Fork 908
Email subject and sender name option #404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,7 +59,8 @@ function doPost(e) { | |
| if (sendEmailTo) { | ||
| MailApp.sendEmail({ | ||
| to: String(sendEmailTo), | ||
| subject: "Contact form submitted", | ||
| name: String(e.parameters.formGoogleEmailSender) || "Contact Form", | ||
| subject: String(e.parameters.formGoogleEmailSubject) || "Contact form submitted", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe these If the parameters are null or undefined, (like if someone just updates the backend script here or doesn't give these parameters), then you would end up with It may be worth setting the name / subject above and consider using |
||
| // replyTo: String(mailData.email), // This is optional and reliant on your form actually collecting a field named `email` | ||
| htmlBody: formatMailBody(mailData, dataOrder) | ||
| }); | ||
|
|
||