I need To change the message of the autoresponder.

2 replies · opened Apr 6, 2016

Bborjapintor88Apr 6, 2016

I am using sendemail-autoresponder.php and need to add a text to say Thanks for the message bla bla bla... i already have this:

if( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
if( $_POST['template-contactform-name'] != '' AND $_POST['template-contactform-email'] != '' AND $_POST['template-contactform-message'] != '' ) {

	$name = $_POST['template-contactform-name'];
	$email = $_POST['template-contactform-email'];
	$phone = $_POST['template-contactform-phone'];
	$service = $_POST['template-contactform-service'];
	$subject = $_POST['template-contactform-subject'];
	$message = $_POST['template-contactform-message'];

	$subject = isset($subject) ? $subject : 'Nuevo mensaje desde la pagina web';

	$botcheck = $_POST['template-contactform-botcheck'];

	$toemail = 'dominio@reclamatuvuelo.com';
    $toemail = 'borjapinh@gmail.com';// Your Email Address
	$toname = 'ReclamatuVuelo.com'; // Your Name

	if( $botcheck == '' ) {

		$mail->SetFrom( $email , $name );
		$mail->AddReplyTo( $email , $name );
		$mail->AddAddress( $toemail , $toname );
		$mail->Subject = $subject;

		$autoresponder->SetFrom( $toemail , $toname );
		$autoresponder->AddReplyTo( $toemail , $toname );
		$autoresponder->AddAddress( $email , $name );
		$autoresponder->Subject = 'Hemos Recibido tu email';
       

		$ar_body = "Gracias por ponerte en contacto. Nos pondremos en contacto contigo en las próximas 24 horas. Thank you for contacting us. We will reply within 24 hours.<br><br>Un saludo,<br>ReclamaTuVuelo.com";

		$name = isset($name) ? "Nombre: $name<br><br>" : '';
		$email = isset($email) ? "Email: $email<br><br>" : '';
		$phone = isset($phone) ? "Teléfono: $phone<br><br>" : '';
		$service = isset($service) ? "Servicio: $service<br><br>" : '';
		$message = isset($message) ? "Mensaje: $message<br><br>" : '';

		$referrer = $_SERVER['HTTP_REFERER'] ? '<br><br><br>Este mensaje fue enviado desde: ' . $_SERVER['HTTP_REFERER'] : '';

		$body = "$name $email $phone $service $message $referrer";

		$ar_body = "Gracias por ponerte en contacto con nosotros. Nos pondremos en contacto contigo en las próximas 24 horas.<br><br>Un saludo,<br>ReclamaTuVuelo.com ESTO ES EN EL ACUSE ???";

But is not showing the text in the autoresponder email.

Thanks

SSemicolon WebSTAFFApr 7, 2016

Hello,

Thank You so much for reporting this to us! This happens to be a Careless Mistake from us and we sincerely apologize about the same. Please find the following code in the include/sendemail-autoresponder.php File:

$autoresponder->MsgHTML( $body );

and replace it with:

$autoresponder->MsgHTML( $ar_body );

This will definitely fix your issue. Let us know if we can help you with anything else or if you find any further issues.

Bborjapintor88Apr 7, 2016

Thanks. It works perfect.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard