Php email
Moderator: General Moderators
Php email
I have a issue with emails being sent out. It sends out the email and is all going through. But having issues with gmail and hotmail. For example in hotmail i get Green text, and with gmail i get the html file spread out wide but no green text.
- flying_circus
- Forum Regular
- Posts: 732
- Joined: Wed Mar 05, 2008 10:23 pm
- Location: Sunriver, OR
Re: Php email
You are the king of insufficient information!
If you are looking for moral support, then I will happily tell you, that's a bummer.
If you are looking for help to solve the problem, you're going to have to post up some code. Help us, help you.
If you are looking for moral support, then I will happily tell you, that's a bummer.
If you are looking for help to solve the problem, you're going to have to post up some code. Help us, help you.
Re: Php email
Code: Select all
$query = "SELECT * FROM emailList";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
$to = $row['email'];
$subject = 'Szeryk Newsletter - Vol: \r\n' . $vol;
$headers = "From: noreply@szeryk.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = "<html>
<title>Scott Szeryk</title>
<body style='margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0; font-family: Arial, Verdana, sans-serif;'>Re: Php email
Just also wondering why the email is being sent into junk folders.