From 1b631e96bd885ad0e4e2b71de8eca3b96b073d02 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 31 Mar 2024 15:17:03 +0100 Subject: Add a default value for sendmailpath. --- data/anope.example.conf | 2 +- 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("sendmailpath")) + , sendmail_path(Config->GetBlock("mail")->Get("sendmailpath", "/usr/sbin/sendmail -it")) , send_from(sf) , mail_to(mailto) , addr(a) -- cgit