Jump to content

HTML in E-mail script help needed


Q695

Recommended Posts

Why is't the file working properly?

 

//e-mail script

else

{

$aid=1; //$_GET['ad_id'];

$key=2; //$_SESSION['key'];

$to="**@**";

$subject="Confirm your post on Assertive Classifieds";

 

//message body

$message="

<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">

<html>

<head>

  <title>Confirm your post on Assertive Classifieds</title>

</head>

 

<a href=\"***\">Please click here to activate your ad.</a>

</body>

</html>

";

 

//e-mail from

$from="invalid@***";

$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

 

if ((strstr($to, "@") && (strstr($from, "@") && ($subject) && ($message))))

{

mail($to, $subject, $message, $headers);

echo "Mail sent";

} else {

echo "Mail was unable to be sent at this time due to an e-mail issue.";

}

}

Link to comment
https://forums.phpfreaks.com/topic/130650-html-in-e-mail-script-help-needed/
Share on other sites

  • 2 weeks later...

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.