In Gmail every user has a profile image, that will send with the mail. Is there a possibility that PHPMailer can do that instead of http://i.stack.imgur.com/mep7m.png?
The profile image shown by Gmail is not controllable by the script. When you send an email through PHPMailer, Gmail will check if that receiving email address has a Google profile, if it does, it will show the image of the Google profile and if not it will show a placeholder image there.
Related
I have an application and I have hosted that at amazon server. I have a form by which our customer will contact to admin. As customer will fill this form and submit then email will be send to admin but all emails marked as spam if I will use a self designed template. If I will use simple text what ever typed by user then its working fine and coming in to inbox. My template have simple logo and HTML/CSS code.Is there any way to solve this?
Try this:
you can use smtp mail system.
and image of your template have to encoded as inline image.
if you use phpmailer class then use this MsgHTML($html_msg); function and your image source must be same server (that means where in mail script).
then this function automatically convert into inline image
And fillup more requirement:
*from address must be real (from addr not reply_to) reply_to may be fake.
*Subject have something
More Info
Is there any way I can control the contact image when sending an email via PHP even if i'm not on the recipients contacts?
Profile pictures is a functionality proposed by emails client. In you case, Gmail, the user #Sports might have created a Google account with his own email address and then set up a profile picture.
More about creating an account without gmail
When I send an email to somebody, there is this avatar of me (in this case from my Google+ account)
How can I extend my PHP mail() function to add an avatar in the emails?
These avatars are a feature provided by the used mail client, e.g.:
GMail will show the user's Google+ profile avatar if available
Apple Mail will show the user's avatar shown in your address book
etc.
So the avatar is not part of the mail itself.
Two workaround suggestions:
Use a GMail sender address assigned to your Google+ profile.
Add a VCard as attachement, see Formatting VCard in PHP and http://www.xmpp.org/extensions/xep-0153.html#publish - so the recipient gets a VCard to import into his address book.
I'm constructing HTML emails in PHP with Zend_Mail and I'd like to embed/attach/whatever some images in such a way that Gmail will automatically display them without prompting the user. How can I do this?
Google's Bulk Sender Guidelines say that Gmail will automatically show images for senders who have authenticated their domain:
To ensure that Gmail can identify you:
Use a consistent IP address to send bulk mail.
Keep valid reverse DNS records for the IP address(es) from which you send mail, pointing to your domain.
Use the same address in the 'From:' header on every bulk mail you send.
We also recommend publishing an SPF record, and signing with DKIM or
DomainKeys.
By authenticating, inline images you send will be shown automatically. Recipients will not need to click the "Display images
below" link.
Google offers a page to learn more about email authentication.
You can't without the user approving your imagery. It's an anti-spam/ anti-tracking technique that has to be off by default to work.
You can make Gmail display images (embedded into content) with authenticating emails sent.
You just make sure you have a correct SPF record, and 1024 bit DKIM signed the message.
Then gmail shows embedded images within content.
As of my knowledge, This is not possible. Gmaill will hide the images initially. If the Use enables (by clicking "Always display images from XXXXXX website"), then it will be available from next time onwards
You can always show images if you use Base 64. That way images are embedded as code in the code and aren't coming from anyone else's server, so there is no tracking risk. Just google how to embed an image as Base 64 and that will solve your issue completely.
I need to develop a system where a user can sign into our site and have their own unique uploading email address (how to create email ids on a shared hosting with php automatically?). They can then use that address to send their pictures from their mobile phone and have it uploaded to the site. The website Flickr.com has this functionality, below are the instructions that they give their users:
Go to http://www.flickr.com/account/uploadbyemail/ on your desktop and sign into Flickr. You will receive a unique Flickr email uploading address.
Create a new email message on your phone and attach the photo you want to upload. Use the photo title in the subject line and photo description in the body.
Send the email to your Flickr email uploading address. Your photo will be posted to your to your Flickr account, with title and description displayed.
Any ideas on how to do this? Please help!
Many thanks in advance.
Edit:
I have tried using the imap functions to parse emails. I have a gmail account and tried the following code:
$authhost="{pop.gmail.com:995/pop3/ssl/novalidate-cert}";
$user="email#gmail.com";
$pass="password";
$mbox=imap_open( $authhost, $user, $pass );
$check = imap_check($mbox);
print 'Total messages: '.$check->Nmsgs;
But the problem is this code returns a number which is less that actual number of messages in my inbox. How to solve this? Any idea?
Either pipe the email to a script rather then a mailbox/dir on your server, or search mailboxes & parse mails with the imap plugin.