Skip to content
Snippets Groups Projects
Commit 871a44f1 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

Do not hardcode From mail address

parent 901cfc50
No related branches found
No related tags found
No related merge requests found
......@@ -22,14 +22,6 @@
password => die("Changeme!"),
},
mail => {
# If you want to disable outgoing mail for development purposes,
# uncomment the following line. Mails will instead be logged as
# Mojolicious "info" messages, causing their content to be printed on
# stdout.
## disabled => 1,
},
# See the Mojo::Server::Hypnotoad manual for details on the following
# settings.
hypnotoad => {
......@@ -41,6 +33,18 @@
spare => 2,
},
mail => {
# If you want to disable outgoing mail for development purposes,
# uncomment the following line. Mails will instead be logged as
# Mojolicious "info" messages, causing their content to be printed on
# stdout.
## disabled => 1,
# Otherwise, specify the sender ("From" field) for mail sent by travelynx
# here. E.g. 'Travelynx <mail@example.org>'
from => die("Changeme!"),
},
# Secrets used for cookie signing and verification. Must contain at least
# one random string. If you specify several strings, the first one will
# be used for signing new cookies, and the remaining ones will still be
......
......@@ -21,7 +21,7 @@ sub custom {
my $reg_mail = Email::Simple->create(
header => [
To => $to,
From => 'Travelynx <travelynx@finalrewind.org>',
From => $self->{config}{from},
Subject => $subject,
'Content-Type' => 'text/plain; charset=UTF-8',
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment