email-headers

How do I determine if an email is Base64 encoded?

I am having difficulty determining if the body of a text email message is base64 encoded. if it is then use this line of code; making use of jython 2.2.1 dirty=base64.decodestring(dirty) else continue as normal. This is the code I have atm. What line of code will allow me to extract this from the email: "Content-Transfer-Encoding...

What is the preferred email header for list email?

My application sends emails in response to different events to different mailing lists. What headers should I include (X-Priority, X-Precedence)? I am mainly concerned not to trigger automatic out of office replies and not to get stuck in spam filters inadvertently. ...

Detecting Outlook autoreply/out-of-office emails

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 th...

Create custom mail header field

Hi, I'm making a program which sends invoices to registered users as PDF attachment. Each invoice is identified by a GUID. In some circumstances I want to be able to find programmatically the GUID from mail without reading PDF file. Can I use mail header field to include invoice GUID, or it is a bad practice and mail header fields are ...

Add a custom variable to an email header already within a gmail inbox

Hi guys - this may seem odd but I was wondering if it was possible to add custom header details to emails already in an inbox. Like lets say I wish to add in the Header of the email something like - myvariable = myvalue and then be able to query it somehow. I'm looking at code from Iloha mail and most of the details like subject and from...

php mail function cannot send to [email protected] ??i

I'm having trouble when sending emails thorough the mail() function. I have a script that works perfectly fine for an email address like [email protected] but when the first part of the email is something with a dot like [email protected] it doesn't work and returns this error : Warning: mail() [function.mail ]: SMTP server respon...

custom email header

hi i want to add a enquiry id number to my emails so that when a user replies i i can automatically attach the email to an enquiry. I am going to put a message with please do not remove this enquiry number when replying but it would be good if i can put a custom header with the enquiry number so the user doesnt see it. Is this possibl...

Add header for System.Net.Mail.Attachement class

I need to send email with attachement using standart .Net classes. Attachement should be auto-generated string. I use for this method Attachment.CreateAttachmentFromString(), but when I recieve this message attachcment part doesn't contain a header 'content-disposition' and on some Smtp clients (Mail.app for example) it is part of messag...

How to read email headers?

Can someone please point me to where I can find a complete reference to email headers (Date, From, To, Sender, etc.), if there is one? ...

[Django] What's the easiest/cleanest way to get the MessageID of a sent email?

I want to save the MessageID of a sent email, so I can later use it in a References: header to facilitate threading. I see in root/django/trunk/django/core/mail.py (line ~55) where the MessageID is created. I'm trying to think of the best way to collect this value, other than just copy/pasting into a new backend module and returning it...

How to identify Outlook's "Out of office" autoreply?

I'm working on a mail server that receives messages from users. I want to be able to filter Outlook's "Out of office" autoreply messages. It seems that there's no special header in those messages, so it seems that the only option is to identify them by the subject line (they start with "Out of office AutoReply"). But identifying using t...

E-Mail Header: MIME-Version: 1.0 - When should this be used?

This could be rightfully construed as a beginner's question. Consider the following e-mail header: MIME-Version: 1.0 My Questions: When should use stamp an e-mail with this header? When should you omit this e-mail header? EDIT: Is it true that whenever you specify a 'Content Type' header, no matter what that content type happe...

Optimizing mail() for company firewalls

i there. I'm creating a newsletter for my company - the receivers will most likely be other companys employees using their company email adress. The problem is, when I send mails using mail(), it most will often be catched by the firewall marking it as spam, at it was sent by a webserver. How can I optimize my function, so the amount ...

Email-Headers: Sender vs. x-sender

If you want to "Send Email On Behalf Of" someone else, should you use the 'Sender' heading or the 'x-sender' heading? Outlook 2007 seems to only pay attention to the 'Sender' heading, if it's present. On the other hand, there are those who believe that the 'Sender' heading has been deprecated in favor of the 'x-sender' headin...

How do I include the submitters email in a PHP form?

I am using a simple HTML form for an event registration and I would like to send a PHP confirmation email to the registrant with the same information that is going to the administrator. Here are the details: $emailFromName = $_POST['name']; $emailFrom = $_POST['email']; $emailFromPhone = $_POST['phone']; I would like to use the value...

Possibility of detecting language of email body by Email headers

Hi, Adding on one more query extending from here Detecting language of email body: Since I want to determine the language of the email that I receive on my system, so that I can reply to the sender in same language. So in the email headers there is one header of the kind: 'Content-Type: text/plain; charset=ISO-8859-1' How good it ca...

send email using php

how to set bounce back in email ...

Suppress headers when sending an SMS to a cell phone provider's email to SMS gateway

I am sending an SMS transit text message to a mobile phone carrier's SMS gateway. I am doing this by sending the message to the carrier's assigned email address such as [email protected]. The problem is that a short message turns into multiple text messages because of the email headers as shown here: FRM:[email protected] SUBJ:Th...