Questions tagged [email-headers]

E-mail headers are the headers at the beginning of an e-mail that define various properties (e.g. `From` or `Reply-To`) of the e-mail.

In an e-mail, the body (content text) is always preceded by header lines that identify particular routing information of the message, including the sender, recipient, date and subject. Some headers are mandatory, such as the FROM, TO and DATE headers. Others are optional, but very commonly used, such as SUBJECT and CC. Other headers include the sending time stamps and the receiving time stamps of all mail transfer agents that have received and sent the message. In other words, any time a message is transferred from one user to another (i.e. when it is sent or forwarded), the message is date/time stamped by a mail transfer agent (MTA) - a computer program or software agent that facilitates the transfer of email message from one computer to another. This date/time stamp, like FROM, TO, and SUBJECT, becomes one of the many headers that precede the body of an email.

Characteristics

A single email header has some important characteristics, including perhaps the most important part of an email - this is the KEY:VALUE pairs contained in the header. Looking at the above, you can tell some of the KEY:VALUE pairs used. Here is a breakdown of the most commonly used and viewed headers, and their values:

  • From: sender's name and email address (IP address here also, but hidden)
  • To: recipient's name and email address
  • Date: sent date/time of the email
  • Subject: whatever text the sender entered in the Subject heading before sending

Routing

Email headers also provide information on the route an email takes as it is transferred from one computer to another. As mentioned earlier, mail transfer agents (MTA) facilitate email transfers. When an email is sent from one computer to another it travels through a MTA. Each time an email is sent or forwarded by the MTA, it is stamped with a date, time and recipient. This is why some emails, if they have had several destinations, may have several RECEIVED headers: there have been multiple recipients since the origination of the email. In a way it is much like the same way the post office would route a letter: every time the letter passes through a post office on its route, or if it is forwarded on, it will receive a stamp. In this case the stamp is an email header.

List of Email Header Fields

IANI maintains a list of email headers here.

405 questions
0
votes
1 answer

How should I pass info through email headers in Rails 3

I'm working on a support app which would allow customers to mail to support@myapp.com and reply to this same email address. I have set up ticket+[id]@myapp.com to be visible within the support team whenever there's a new ticket created. I am using…
0
votes
0 answers

PHP mail function ignoring additional headers

I'm trying to send a mail using the php mail() function but for some reason I don't get, additional headers are ignored. This is my code: $errors = ''; $myemail = 'my@email.com'; $myemail_bcc = 'my_bbc@email.com'; …
bluantinoo
  • 1,829
  • 3
  • 19
  • 25
0
votes
0 answers

HTML Emails Displaying odd in some clients

I'm using PHP to generate a fancy HTML email to send to visitors, but for some reason certain visitors are saying the HTML isn't working for them (seeing RAW HTML rather than pretty email). I haven't narrowed it down to a certain client, but having…
x41x41x41
  • 113
  • 1
  • 1
  • 8
0
votes
1 answer

spring integration inbound email with custom header

I have a spring app that sends emails through and reads emails from a GMail inbox and handles any undelivered mail messages that have been sent through the account but then returned as the recipient address is not recognised. I have this all…
pmckeown
  • 3,419
  • 3
  • 31
  • 35
0
votes
2 answers

PHP send email to multiple recipients (headers not sending)

I have an index.html and a contacto.php. contacto.php is supposedly meant to send the user's info to multiple recipients but it's not sending. This is my index.html (ignore the javascript)
Veronica
  • 3
  • 3
0
votes
1 answer

Outlook 2007 Bitness

I need to get the bitness of Outlook, in 2010 it is stored in a ReqistryKey named Bitness under the path 64bit Windows: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Outlook\Bitness 32bit…
Knerd
  • 1,892
  • 3
  • 28
  • 55
0
votes
2 answers

Mail list address visible in receivers To: field

I'm trying to set up a custom mailing list for my site. When a user(user@bar.com) sends a mails to list@foo.com. The mail should automatically be sent to the subscribers. Making the actual sending isn't that hard. But when the emails get delivered…
Philip G
  • 4,098
  • 2
  • 22
  • 41
0
votes
0 answers

Communicating XML content via email / content type / charset?

Trying to submit XML data to an email address which is set to collect data for parsing and submission to a local CRM system. Can't seem to find any documentation on what the proper content-type and charset should be set as in the headers so that the…
FurryWombat
  • 816
  • 2
  • 12
  • 28
0
votes
3 answers

change full header for sending mail in php

I use this code to send mail in php : mail($to,$subject,$message,$headers); It works perfectly but if we check the mail's full header it's gonna show the server of the site which the mail has been sent with that. I want to know is there any…
user1814632
0
votes
1 answer

issue in sending email with custom headers

I'm having some issues in understanding how to send custom headers with the php mail() function. What's wrong with this code?
gaggina
  • 5,369
  • 10
  • 31
  • 31
0
votes
2 answers

How to pass hidden data in php email subject line?

As I want to handle email failure and in that case when you send mail to other and if it gets in failure because of invalid to-email or etc. reason. In that case I can't see my email body in failure but I can see only subject line. So for that I…
Nikunj Kabariya
  • 840
  • 5
  • 14
0
votes
1 answer

PHP email header for reverse DNS

Context: I've recently had my host set up reverse DNS (and PTR) to prevent my PHP generated emails from being interpreted as spam. My questions: Is there a specific PHP mail header that I should be using for the reverse DNS to take effect? Is…
Dominor Novus
  • 2,248
  • 5
  • 29
  • 35
0
votes
1 answer

Analysing email header from hotmail for message marked as spam

I have a simple PHP script which generates a single email to a user on my site. For some reason, most messages are getting sent to user's spam folders. I set up a hotmail account to test this, and I'm now trying to analyse the header to check why…
Nick
  • 4,304
  • 15
  • 69
  • 108
0
votes
2 answers

From parameter in email is showing Hosting providers email

I'm using codeigniter 2.X and my app is hosted on Justhost, App was working fine till few days back when justhost upgraded the server, After upgrade outgoing emails are showing wrong From email address. here is debug output after from the app…
Mukesh Yadav
  • 2,256
  • 2
  • 33
  • 51
0
votes
1 answer

RoR display email without redundant information

I use Mailman in my RoR projekt I want to receive mails and display the body ..... but ther is a format error i get the mail and want to save it as text message = message.body.encoded that works!!! But the output is not only the body of the mail…
1 2 3
26
27