Jump to content

no longer attach


coat_

Recommended Posts

how can I get this script to use body for message in stead of attach it?

 

	// Process the information
	$enquiry_type = $_POST['enquiry'];
	$subject = $subject_prepend;
	$name = stripslashes($_POST['name']);
	$email = stripslashes($_POST['email']);
	$phone = stripslashes($_POST['phone']);
	$company = stripslashes($_POST['company']);
	$contact = $_POST['contact'];
	if ($contact == "") {
		$contact = " ";
	}

	$content_text = "name:\r\n".$name."\r\n\r\n";
	$content_text .= "email:\r\n".$email."\r\n\r\n";
	$content_text .= "company:\r\n".$company."\r\n\r\n";
	$content_text .= "message:\r\n";
	$content_text .= stripslashes($_POST['content_text'])."\r\n\r\n";

	$message = $content_text;
	$sender = $name.' <'.$email.'>';

	$headers = "MIME-Version: 1.0\r\n";
	$headers .= "Content-type: text; charset=iso-8859-1\r\n";
	$headers .= "Content-Transfer-Encoding: 8bit\r\n";
	$headers .= "From: ".$sender."\r\n";

	$headers .= "Reply-To: ".$sender."\r\n";

Link to comment
https://forums.phpfreaks.com/topic/70298-no-longer-attach/
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.