coat_ Posted September 23, 2007 Share Posted September 23, 2007 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"; Quote Link to comment https://forums.phpfreaks.com/topic/70298-no-longer-attach/ Share on other sites More sharing options...
remlabm Posted September 23, 2007 Share Posted September 23, 2007 check out swift mailer... lets you add attachments and body embeds alot easier. http://www.swiftmailer.org/ Quote Link to comment https://forums.phpfreaks.com/topic/70298-no-longer-attach/#findComment-353222 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.