diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-31 15:17:03 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-31 15:17:03 +0100 |
commit | 1b631e96bd885ad0e4e2b71de8eca3b96b073d02 (patch) | |
tree | 544b4cf0164717f23d1e9cf413e2a8fcb815e2fd | |
parent | 3b4a4da52d0253da10394aaea17d18fab116114e (diff) |
Add a default value for sendmailpath.
-rw-r--r-- | data/anope.example.conf | 2 | ||||
-rw-r--r-- | src/mail.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/data/anope.example.conf b/data/anope.example.conf index acabf8c14..dfa144b04 100644 --- a/data/anope.example.conf +++ b/data/anope.example.conf @@ -950,7 +950,7 @@ mail * If you are running on Windows you should use a Windows sendmail port * like https://www.glob.com.au/sendmail/ for sending emails. */ - sendmailpath = "/usr/sbin/sendmail -it" + #sendmailpath = "/usr/sbin/sendmail -it" /* * This is the email address from which all the emails are to be sent from. diff --git a/src/mail.cpp b/src/mail.cpp index 762c889a5..36b871437 100644 --- a/src/mail.cpp +++ b/src/mail.cpp @@ -15,7 +15,7 @@ Mail::Message::Message(const Anope::string &sf, const Anope::string &mailto, const Anope::string &a, const Anope::string &s, const Anope::string &m) : Thread() - , sendmail_path(Config->GetBlock("mail")->Get<const Anope::string>("sendmailpath")) + , sendmail_path(Config->GetBlock("mail")->Get<const Anope::string>("sendmailpath", "/usr/sbin/sendmail -it")) , send_from(sf) , mail_to(mailto) , addr(a) |