I configured the mailer to sendmail but it didn’t work. Seems that the only option that works is SMTP.
The following change configures PHPMailer to use sendmail.
diff --git a/app/sprinkles/core/src/Mail/Mailer.php b/app/sprinkles/core/src/Mail/Mailer.php
index 5b346b46..0f9dc9e9 100755
--- a/app/sprinkles/core/src/Mail/Mailer.php
+++ b/app/sprinkles/core/src/Mail/Mailer.php
@@ -48,7 +48,9 @@ class Mailer
throw new \phpmailerException("'mailer' must be one of 'smtp', 'mail', 'qmail', or 'sendmail'.");
}
- if ($config['mailer'] == 'smtp') {
+ if ($config['mailer'] == 'sendmail') {
+ $this->phpMailer->isSendmail();
+ } else if ($config['mailer'] == 'smtp') {
$this->phpMailer->isSMTP(true);
$this->phpMailer->Host = $config['host'];
$this->phpMailer->Port = $config['port'];
`indent preformatted text by 4 spaces`