From 2e9f38ff4afd66b48d9782960b2c6cfed0d4d06a Mon Sep 17 00:00:00 2001 From: mcrane Date: Wed, 1 Jul 2009 01:53:23 -0600 Subject: 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. --- config/freeswitch/fax_to_email.tmp | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'config/freeswitch/fax_to_email.tmp') diff --git a/config/freeswitch/fax_to_email.tmp b/config/freeswitch/fax_to_email.tmp index fec291fb..fcd6af06 100644 --- a/config/freeswitch/fax_to_email.tmp +++ b/config/freeswitch/fax_to_email.tmp @@ -1,7 +1,7 @@ IsSMTP(); // set mailer to use SMTP - $mail->SMTPAuth = $tmp_smtpauth; // turn on/off SMTP authentication + 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; - echo "tmp_smtpfrom: $tmp_smtpfrom\n"; - echo "tmp_smtpfromname: $tmp_smtpfromname\n"; - echo "tmp_subject: $tmp_subject\n"; + echo "tmp_smtpfrom: $tmp_smtpfrom\n"; + echo "tmp_smtpfromname: $tmp_smtpfromname\n"; + echo "tmp_subject: $tmp_subject\n"; $mail->From = $tmp_smtpfrom; $mail->FromName = $tmp_smtpfromname; @@ -169,8 +173,8 @@ ini_set('memory_limit', '96M'); } -//$content = ob_get_contents(); //get the output from the buffer -//ob_end_clean(); //clean the buffer +$content = ob_get_contents(); //get the output from the buffer +ob_end_clean(); //clean the buffer fwrite($fp, $content); fclose($fp); -- cgit v1.2.3