Jump to content

[SOLVED] <br/> not working in mail


rondog

Recommended Posts

I cant figure it out...Ive used this similar script many times and when I check my gmail account, I have all these

<br/>

tags in the message..is it the headers?

<?php

$name = $_POST['names'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message'];

$headers = "From: Racewerks.com<br/>";
$headers .= "Content-Type: text/html; charset=ISO-8859-1 ";
$headers .= "MIME-Version: 1.0 ";
$mikesmessage = "Name: $name<br/>";
$mikesmessage .= "Email: $email<br/>";
$mikesmessage .= "Phone: $phone<br/>";
$mikesmessage .= "Message:<br/>$message";
$mike = mail("[email protected]","Message Via Racewerks.com",$mikesmessage,$headers);
$user = mail($email,"[Racewerks] Thank you!","$name,<br/>Thank you for contacting Racewerks. We will contact you shortly.<br/><br/><br/>Racewerks Inc.<br/>330 Woodland Drive<br/>Vista, CA 92083<br/>Phone: 760-822-2428<br/>Fax: 760-454-2360<br/>www.racewerks.com<br/>[email protected]",$headers);
if($mike && $user) {
echo "&msgText=success";
} else {
echo "&msgText=error";
}
?>

Link to comment
https://forums.phpfreaks.com/topic/87795-solved-not-working-in-mail/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.