All pastes #274658 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-12-10 21:28 UTC
rendered paste body
	$message .= $_POST['message'];
	
	 // Plain text body (for mail clients that cannot read HTML)
	
	//$message = str_replace(array("\r\n", "\n", "\r"), '', $message);
	//$message = preg_replace("/\\r/", "", $message);
	$message = str_replace("\\r"," ",$message);
	
	require("./_php/phpmailer/class.phpmailer.php");
	
	$mail = new PHPMailer();
	
	$mail->From     = $_POST['email'];
	$mail->FromName = $_POST['name'];
	
	$mail->Mailer   = "sendmail";
	$mail->Body = $message;
	$mail->Subject = $_POST['subject'];
	$mail->AddAddress($c['email'], $c['emainamel']);

	//$mail->AddStringAttachment($row["photo"], "YourPhoto.jpg");
	
	if(!$mail->Send())