diff options
author | mcrane <mctch@yahoo.com> | 2009-07-01 01:53:23 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-07-01 01:57:57 -0600 |
commit | 2e9f38ff4afd66b48d9782960b2c6cfed0d4d06a (patch) | |
tree | 7e350b08961603199cc6ce112ae9aa5cb58f9a83 /config/freeswitch/freeswitch_mailto.tmp | |
parent | 0033e921a3ba48df680e38bff0ee23032ae8127f (diff) | |
download | pfsense-packages-2e9f38ff4afd66b48d9782960b2c6cfed0d4d06a.tar.gz pfsense-packages-2e9f38ff4afd66b48d9782960b2c6cfed0d4d06a.tar.bz2 pfsense-packages-2e9f38ff4afd66b48d9782960b2c6cfed0d4d06a.zip |
FreeSWITCH package smtp auth and tls previously worked but plain smtp needed a bug fix, adjust huntgroup and ivr, fix a bug on huntgroup that prevented it from working completely when there is more than one huntgroup.
Diffstat (limited to 'config/freeswitch/freeswitch_mailto.tmp')
-rw-r--r--[-rwxr-xr-x] | config/freeswitch/freeswitch_mailto.tmp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/config/freeswitch/freeswitch_mailto.tmp b/config/freeswitch/freeswitch_mailto.tmp index 71af859c..fa27ff68 100755..100644 --- a/config/freeswitch/freeswitch_mailto.tmp +++ b/config/freeswitch/freeswitch_mailto.tmp @@ -30,7 +30,7 @@ POSSIBILITY OF SUCH DAMAGE. */ -require_once("config.inc"); +require_once("/etc/inc/config.inc"); require_once("/usr/local/pkg/freeswitch.inc"); global $config; @@ -183,21 +183,24 @@ ob_start(); //send the email - include "class.phpmailer.php"; - include "class.smtp.php"; ; // optional, gets called from within class.phpmailer.php if not already loaded + include "/usr/local/www/packages/freeswitch/class.phpmailer.php"; + include "/usr/local/www/packages/freeswitch/class.smtp.php"; // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(); $mail->IsSMTP(); // set mailer to use SMTP + if ($tmp_smtpauth == "true") { $mail->SMTPAuth = $tmp_smtpauth; // turn on/off SMTP authentication + } $mail->Host = $tmp_smtphost; if (strlen($tmp_smtpsecure)>0) { $mail->SMTPSecure = $tmp_smtpsecure; } - if ($tmp_smtpauth) { + if ($tmp_smtpusername) { $mail->Username = $tmp_smtpusername; $mail->Password = $tmp_smtppassword; } + $mail->SMTPDebug = 2; $mail->From = $tmp_smtpfrom; |