Jump to content

mail() sending images, question mark in iPhone mail. works in regular mail


shortysbest

Recommended Posts

I have a notification system that notifies users of new comments, inside the email I have images, some of the logo, some of different people, everything shows up fine on my computer (yahoo email), however in the iPhones email application no images show up, there are just the blue squares with the question marks in them. I'm not sure what I'm missing.

 

 

$from = "Kithell <notifications@kithell.com>";
$headers = "From:" . $from ."\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";


$subject = name($from_id, 'fl').$action;

$message = '<html><body>
<style>@charset "utf-8";
/* CSS Document */


.e-container {
background-color: #FFF;position: relative;width: 90%;min-height:1px;margin-right: auto;margin-left: auto;
}
.e-container .e-m-header {
padding: 2px;
background-image: url(http://www.kithell.com/assets/tall-grey-header.png);
background-repeat: repeat-x;
border: 1px solid #CCC;
background-position: bottom;
display: block;
text-align: center;
}
.e-container p {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: normal;
color: #666;
vertical-align: text-top;
display: inline-block;
}
.e-container .e-usr-photo {
display: inline-block;
margin: 10px;
float: left;
background-color: #F4F4F4;
}
.e-container p a {
font-weight: bold;
color: #3F60A3;
text-decoration: underline;
padding: 0px;
float: left;
margin-top: 0px;
margin-right: 5px;
margin-bottom: 0px;
margin-left: 0px;
}
.e-container .e-quotes {
font-size: 20px;
font-weight: bold;
color: #999;
font-family: Tahoma, Geneva, sans-serif;
display: block;
padding: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 75px;
margin-top:10px;

}
.e-container .e-message {
font-size: 13px;
color: #333;
padding: 0px;
margin-top: 0px;
margin-right: 10px;
margin-bottom: 0px;
margin-left: 10px;
clear: none;
display: inline;
}</style>
<div class="e-container"><div class="e-m-header"><img src="http://www.kithell.com/assets/kithell-logo.png" /></div><img class="e-usr-photo" src="http://www.kithell.com/'.photo($from_id, 55).'" /><br /><p><a target="_blank" href="http://www.kithell.com/#/profile&id='.$from_id.'">'.name($from_id, "fl").' </a> '.$action.'<div class="e-quotes">"<p class="e-message">'.nl2br(htmlentities(stripslashes($message))).'</p>"</div></p></div></body></html>';

mail($to,$subject,$message,$headers);

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.