Php email

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Php email

Post 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.
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: Php email

Post 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.
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: Php email

Post 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;'>
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: Php email

Post by ebgames56 »

Just also wondering why the email is being sent into junk folders.
Post Reply