summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/anope.example.conf2
-rw-r--r--src/mail.cpp2
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)