Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion node/email-contact-form/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default async ({ req, res, log, error }) => {
try {
sendEmail({
to: process.env.SUBMIT_EMAIL,
from: /** @type {string} */ (form['email']),
from: /** @type {string} */ (process.env.SMTP_USERNAME),
subject: `New form submission: ${req.headers['referer']}`,
text: templateFormMessage(form),
});
Expand Down
2 changes: 1 addition & 1 deletion php/email-contact-form/src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
try {
send_email([
'to' => $_ENV['SUBMIT_EMAIL'],
'from' => $form['email'],
'from' => $_ENV['SMTP_USERNAME'],
'subject' => 'New form submission: ' . $context->req->headers['referer'],
'text' => template_form_message($form),
]);
Expand Down
2 changes: 1 addition & 1 deletion python/email_contact_form/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def main(context):
try:
send_email(
{
"from": os.getenv("SUBMIT_EMAIL"),
"from": os.getenv("SMTP_USERNAME"),
"to": os.getenv("SUBMIT_EMAIL"),
"subject": "New Contact Form Submission",
"text": template_form_message(form),
Expand Down