Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Close #363 Add parameter for sendmail path
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Dec 12, 2013
1 parent 94dccee commit 05f1d71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -36,6 +36,7 @@ protected function sendMailImpl($recipients, $subject, $body, $from = null)
// NOW IF THERE ARE RECIPIENTS FOR ANY REASON, GO
$mail = new PHPMailerLite(true);
$mail->Mailer = $this->getFilteredOption("MAILER");
$mail->Sendmail = $this->getFilteredOption("SENDMAIL_PATH");
$from = $this->resolveFrom($from);
if (!is_array($from) || empty($from["adress"])) {
throw new Exception("Cannot send email without a FROM address. Please check your core.mailer configuration.");
Expand Down
1 change: 1 addition & 0 deletions core/src/plugins/mailer.phpmailer-lite/manifest.xml
Expand Up @@ -3,6 +3,7 @@
xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
<server_settings>
<param name="MAILER" type="select" choices="sendmail|sendmail,mail|mail" label="CONF_MESSAGE[Mailer]" description="CONF_MESSAGE[Php mailer to use (see phpmail-lite documentation).'.]" mandatory="true" default="sendmail"/>
<param name="SENDMAIL_PATH" type="string" label="CONF_MESSAGE[Sendmail Path]" description="CONF_MESSAGE[Path to sendmail if not the default one]" mandatory="true" default="/usr/sbin/sendmail"/>
</server_settings>
<class_definition filename="plugins/mailer.phpmailer-lite/class.PhpMailLiteMailer.php" classname="PhpMailLiteMailer"/>
</ajxp_plugin>

0 comments on commit 05f1d71

Please sign in to comment.