I would like to show a profile picture in my users inbox when they receive an email sent from my website with PHP.
In this image the first email is from my website and the second one is what I want.
And here is my PHP mail function:
$emailTo=$_POST['emialNewPass'];
$emailSubject="Recovery";
$emailLoctuz="[email protected]";
$message="msg";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// En-têtes additionnels
$headers .= 'To: '.$emailTo."\r\n";
$headers .= 'From: Loctuz Security <'. $emailLoctuz . '>' ."\r\n";
if(@mail($emailTo,$emailSubject,$message, $headers))
{
?><script>window.location = "?sent";</script><?php
}
After research and testing I found:
Use Google+ to add profile pics to Gmail:
Use Gravatar to add profile pics to other inboxes:
I don't believe that there is a way to add an avatar image to a MIME email
As far as Gmail goes. If you add an image to your Gmail profile, it will automatically be shown when another Gmail user gets an email from you, looks you up in their address book, or chats with you.
Assuming its not gmail then its read from the users address book or contacts. Neither of which you have access to edit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With