PHP mail set from image - php

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.

Related

PHPMailer profile image

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.

Email into spam at amazon server

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

Sender's Logo in Gmail via PHP

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

Update an email id using PHP

Is there a way in PHP to update an email id in a mail server if we have the access details of the mail server. The requirement is as follows.
I am developing a community website which need a provision to upload photos to their photo gallery by sending an email. We planned to create email id for each user so that they could send emails with photo attachments to that id. A cron job will search for emails inside those id's and if it finds a mail with attachment, uploads the file to the server and subject of the email will be considered as the photo caption.
But it has a security loophole such that anyone who knows the email id can send an email and add photo to others account. We are planning to have a security code in their id which can be modified by user if required.
eg. name.XXXX#domain.com where XXXX is a four digit secret code. THe user can change that code whenever required. i.e. the email id can be name.1234#domain.com or name.3452#domain.com according to the user's wish to maintain privacy. So is there a way to edit the email id using PHP functions.
Creating email accounts and/or aliases would certainly be possible with PHP, but it would depend so much on your server setup.
Another route to consider would be to not have any real email boxes, but to instead have all email delivered to a catch-all account and have your cron script search through that one mailbox and compare all recipient addresses against a database, then you don't have to worry about actually creating real email users on the server.
Additionally, in terms of improving security, you could have each user authenticate which sender email addresses are allowed to send emails with photo attachments. It's still not bullet-proof, because sender addresses can be spoofed, but it's an extra step in the right direction.

Any way to direct 'returned' emails for various errors?

We manage a website which gives agents the ability to enroll members across the country. At times, the member or agent will enter a bad email address during the enrollment process and important PDF'd information cannot be delivered to the member.
Similarly, an agent may try and recruit a sub-agent and have the same issue.
Is there anyway to automatically redirect returned emails (Delivery Status Notification (Failure)) to the responsible party instead of to our primary email?
i.e. Agent 1 recruits Agent 2. An email is attempted to send from recruit#domain.com but the address for Agent 2 is invalid. The system automatically recognizes the message type, formats and sends Agent 1 a note saying the email he/she entered was bad.
Note: I am using Google Apps Standard for all of our mail delivery currently while our platform is built on php and mysql.
make a special email for example "recruit-system#domain.com" and send every mail from this account. after sending a recruiting mali via that account, make shure that you save the destination e-mail adress in your database connected with the according agent who sent that mail so that you can determine who sent that email afterwards. make shure this account is only being used by your app. then make a cronjob for a php script that connects via smtp to that account and let it check out if there is any mail that returned. If there is any email look from where that mail came and look it up in your database and send the notification to the according agent. that's how i would do it.

Categories