email-headers

Formatting VCard in PHP

最后都变了- 提交于 2019-11-29 05:21:28
I'm trying to generate a VCard via PHP, and them email it out to the user. I wrote an initial script with hard-coded data, but the end-result will fill in the VCard from MySQL. When viewing the VCard side-by-side with a legitimate VCard (downloaded and tested from another site) they look pretty much identical, but when I try and import my generated VCard it shows up with no data. Actually, if I open it on my phone, it doesn't even recognize that it is a vcard, and instead just sends me to a broken Google Doc. I've borrowed some code from wikipedia for formatting the vcard, and everything seems

How to cause sent emails to appear threaded in GMail recipient's view with Message-ID, In-Reply-To and References

我的梦境 提交于 2019-11-29 02:02:56
I've read some great online resources like http://www.jwz.org/doc/threading.html , and it seems that any email is send with a Message-ID header, then any replies to it include In-Reply-To naming that ID and Refences which can name a list of parent message id's, and email clients use this information to construct threads when viewing a list of emails in threaded view. My question is: Can a series of emails be sent to a recipient with faked headers, to make them appear in a thread without the recipient replying to them? If so, why does my attempt below not work? We have a system that sends out

Detecting Outlook autoreply/out-of-office emails

房东的猫 提交于 2019-11-28 18:45:27
Been googling for this and haven't found anything ... Does anybody know if there is a way, given an Outlook email item, to detect whether it was sent by the "Out Of Office Assistant"? Is there any property that Outlook sets on the object, or any header information, that identifies an email as such? I was hoping not to have to parse the subject line for "Out Of Office", etc. It would be great if there were some standard, so autoreplies from other email services (like Gmail) could also be detected, but for me Outlook is the highest priority. There is a header field ( http://www.iana.org

python imaplib to get gmail inbox subjects titles and sender name

谁说胖子不能爱 提交于 2019-11-28 16:34:31
I'm using pythons imaplib to connect to my gmail account. I want to retrieve the top 15 messages (unread or read, it doesn't matter) and display just the subjects and sender name (or address) but don't know how to display the contents of the inbox. Here is my code so far (successful connection) import imaplib mail = imaplib.IMAP4_SSL('imap.gmail.com') mail.login('mygmail@gmail.com', 'somecrazypassword') mail.list() mail.select('inbox') #need to add some stuff in here mail.logout() I believe this should be simple enough, I'm just not familiar enough with the commands for the imaplib library.

Sending Email with PHP and ensuring it doesn't get blocked

人盡茶涼 提交于 2019-11-28 12:45:14
I want to send an HTML email with PHP. I was wondering what headers should be used in the email to ensure it doesn't get blocked or end up in SPAM folders. The email contents will contain CSS and HTML. The reply-to field will be different than the sender's ( will this affect anything? ) EDIT: I don't know why my question was voted down. Anyway, I'm not looking to email SPAM or mailing lists. The reason why I want the reply-to field to be different than the sender is because I'm creating a web app where a user manages jobs from various clients. Whenever a job is updated or created, the app will

Formatting VCard in PHP

删除回忆录丶 提交于 2019-11-27 22:48:32
问题 I'm trying to generate a VCard via PHP, and them email it out to the user. I wrote an initial script with hard-coded data, but the end-result will fill in the VCard from MySQL. When viewing the VCard side-by-side with a legitimate VCard (downloaded and tested from another site) they look pretty much identical, but when I try and import my generated VCard it shows up with no data. Actually, if I open it on my phone, it doesn't even recognize that it is a vcard, and instead just sends me to a

Change the sender name php mail instead of sitename@hostname.com

会有一股神秘感。 提交于 2019-11-27 20:33:49
I am trying to send email from my php : $to = 'it@7sisters.in'; $email_from = "info@7sisters.in"; $full_name = 'Suraj Hazarika'; $from_mail = $full_name.'<'.$email_from.'>'; $subject = "testing sender name"; $message = ""; $message .= ' <p><strong>This is only a test . Please do not reply.</strong><br /> '; $from = $from_mail; $headers = "" . "Reply-To:" . $from . "\r\n" . "X-Mailer: PHP/" . phpversion(); $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; mail($to,$subject,$message,$headers); I am following the tutorial PHP E-mail Form

Given an email as raw text, how can I send it using PHP?

本小妞迷上赌 提交于 2019-11-27 15:20:01
I've got a PHP script that my mail server is piping emails to via STDIN. Is there a straightforward/non-convoluted way to take a raw email string and send/forward/relay it to a specific email address? I hesitate to use PHP's mail() or Pear::Mail because, as far as I can tell, I can't just pass along the raw email. I'd have to parse the headers, thereby running the risk of stripping or altering the original email's contents. What would be the recommended way to do this with minimal "molesting" of the original email contents? Note: If there isn't a built-in approach, are there any existing

Detecting Outlook autoreply/out-of-office emails

冷暖自知 提交于 2019-11-27 11:47:30
问题 Been googling for this and haven't found anything ... Does anybody know if there is a way, given an Outlook email item, to detect whether it was sent by the "Out Of Office Assistant"? Is there any property that Outlook sets on the object, or any header information, that identifies an email as such? I was hoping not to have to parse the subject line for "Out Of Office", etc. It would be great if there were some standard, so autoreplies from other email services (like Gmail) could also be

Should I use the Reply-To header when sending emails as a service to others?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 10:03:09
Suppose we have an application that acts as a middleman, allowing Company A to send reports to their customers. Company A --> Company B (me)--> Company A's customers After getting the report we send email notifications to the recipients, but they necessarily originate from our company notifications email address e.g. joe.bloggs@a.com --> notifications@b.com --> peter@c.com Now, customers tend to reply to those email notifications, wanting them to go back to whoever sent the report at Company A. Instead, they end up back at our address, notifications@b.com. A simple solution may be to change