Jump to content

mail problem


jeeva

Recommended Posts

hi frnds,

 

i have coded for sending mail to user for my application. Its working fine..

here my code

$to="to address";
$subject="test";
$message="this is test message";
$from="test";
$server="server ip";
//ini set for mail
	ini_set("SMTP",$server);
	ini_set("sendmail_from",$from);

//set the html header
	$headers  = 'MIME-Version: 1.0' . "\r\n";
	$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
	$mail=mail($to,$subject,$message,$headers);

 

 

My problem is if  i  using two name (like $from="test test") in from address it doesn't work.i dont know y?

 

can u tell me wts wrong with my code?

Link to comment
https://forums.phpfreaks.com/topic/42638-mail-problem/
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.