PHPMAILER SMTP via Adobe MUSE error

hi,
I am new here and my English is very bad!

My problem is that I have created an Adobe Muse Webpage (www.thalerhof.bz). The form in this page must send the mails with smtp authentication.

I used the phpmailer: PHPMailerAutoload.php.
In the file form_process.php i have made some changes, but this changes doesn’t works:

Function email_form_submission($form) {
if(!defined(‘PHP_EOL’))
define(‘PHP_EOL’, ‘\r\n’);

$form_email = ((array_key_exists('Email', $_REQUEST) && !empty($_REQUEST['Email'])) ? cleanup_email($_REQUEST['Email']) : '');

$to = $form['email']['to'];
$subject = $form['subject'];
$message = get_email_body($subject, $form['heading'], $form['fields'], $form['resources']);
//$headers = get_email_headers($to, $form_email);	// disable when SMTPAuth active

require 'thalerhof.bz/scripts/PHPMailer/PHPMailerAutoload.php';  
$mail = new PHPMailer();
$mail->isSMTP();
$mail->Host = 'smtp.udag.de';
$mail->Port = 587;
$mail->SMTPAuth = true;
$mail->Username = 'thalerhofbz-0001';
$mail->Password = 'xxx';
$mail->SMTPSecure = 'tls';

$mail->From = 'info@thalerhof.bz';
$mail->FromName = 'info@thalerhof.bz';
$mail->addAddress($to);
$mail->isHTML(true);

$mail->Subject = $subject;
$mail->Body = $message;

$sent = $mail->send();
//$sent = @mail($to, $subject, $message, $headers); // disable when SMTPAuth active

if(!$sent)
	die(get_form_error_response($form['resources']['failed_to_send_email']));

$success_data = array(
	'redirect' => $form['success_redirect']
);

echo get_form_response(true, $success_data);

}

someone any ideas?

thx

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.