diff --git a/CHANGELOG.md b/CHANGELOG.md index 4675ba7..95c4ee7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,7 +31,8 @@ Several breaking changes were made between 0.9 and 0.10, but changes should be s * When the hostname feature is disabled or hostname cannot be fetched, `127.0.0.1` is used instead of `localhost` as EHLO parameter (for better RFC compliance and mail server compatibility) * The `new` method of `ClientId` is deprecated * Rename `serde-impls` feature to `serde` - +* The `SendmailTransport` now uses the `sendmail` command in current `PATH` by default instead of + `/usr/bin/sendmail`. #### Bug Fixes diff --git a/src/transport/sendmail/mod.rs b/src/transport/sendmail/mod.rs index d2ce559..1c35b35 100644 --- a/src/transport/sendmail/mod.rs +++ b/src/transport/sendmail/mod.rs @@ -92,7 +92,7 @@ use std::{ mod error; -const DEFAULT_SENDMAIL: &str = "/usr/sbin/sendmail"; +const DEFAULT_SENDMAIL: &str = "sendmail"; /// Sends emails using the `sendmail` command #[derive(Debug, Clone)] @@ -113,7 +113,10 @@ pub struct AsyncSendmailTransport { } impl SendmailTransport { - /// Creates a new transport with the default `/usr/sbin/sendmail` command + /// Creates a new transport with the `sendmail` command + /// + /// Note: This uses the `sendmail` command in the current `PATH`. To use another command, + /// use [SendmailTransport::new_with_command]. pub fn new() -> SendmailTransport { SendmailTransport { command: DEFAULT_SENDMAIL.into(), @@ -147,7 +150,10 @@ impl AsyncSendmailTransport where E: Executor, { - /// Creates a new transport with the default `/usr/sbin/sendmail` command + /// Creates a new transport with the `sendmail` command + /// + /// Note: This uses the `sendmail` command in the current `PATH`. To use another command, + /// use [AsyncSendmailTransport::new_with_command]. pub fn new() -> Self { Self { inner: SendmailTransport::new(),