Jump to content

Send mail to users from db...


bartalen

Recommended Posts

Select the user email address from the user db.
// Send email
$from    = "form whom"; //  sender info
$headers = "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers.= "From: $from\r\n";
$email = receiver email address;  				
//mail body				
$mail_body=" -- The info u want to send ---";

if (mail($email,"Subject ", $mail_body,$headers))
{	echo “ mail send”;	}
else
{	echo “mail failed";	}

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.