Page 1 of 1

Php email

Posted: Fri Oct 07, 2011 12:59 pm
by ebgames56
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.

Re: Php email

Posted: Fri Oct 07, 2011 1:03 pm
by flying_circus
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.

Re: Php email

Posted: Fri Oct 07, 2011 1:06 pm
by ebgames56

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

Posted: Fri Oct 07, 2011 1:12 pm
by ebgames56
Just also wondering why the email is being sent into junk folders.