I am trying to send some emails, through hotmail (outlook.live) smtp server. I am building an app that is somewhat an email client and I need to send some custom headers to provide some functionality.
The thing is that, while other email servers (only tried with Gmail and aol) accept custom headers or other rfc described headers (custom like, X-test and rfc described "Comments" or "Keywords") hotmail does not, the email sent does not contain those headers while the ones received from Gmail or aol contain the custom header.
Does hotmail require something extra or in a different format? Or they just remove them?
Related
Does anyone know if you can hide or modify some of the header fields from the sent email via the Gmail web interface?
such as:
X-Gmail-Original-Message-ID: xxxxxxxxxxxx#mail.gmail.com
Message-ID: xxxxxxxxxxxxx#mail.gmail.com
My idea would be to completely fake (hide the fact) that the said email was sent from the Gmail web interface. The goal of that would be simple - use Gmail even if the company you work for, does not allow it.
Perhaps there is a Gmail extension for that?
AFAIK, you can only change the from email when sending email from Gmail. Take a look at Send emails from a different address or alias.
Also, there are techniques to really find out where an email came from; forging email headers and/or spoofing emails is something that spammers do and will get your IP address blacklisted by your ISP.
You can also check How can I find out where an email really came from?. The headers can also be put in SpamCop and let them do the trace work with an option of sending a SPAM notice to the responsible sysadmin.
In my Mailchimp account I successfully verified my domain and I also authenticated it with valid DKIM and SPF records (the domain is only an example):
When sending campaings I set the From address to be info#mywebsite.com.
But headers of received email (Gmail) show:
from: info#mywebsite.com
reply-to: info#mywebsite.com
mailed-by: mail70.atl91.mcsv.net
signed by: mywebsite.com
Is it possible to show mywebsite.com also for the mailed by header?
mail70.atl91.mcsv.net is maybe the hostname of mailchimp this is why it goes in the header of the email and gmail automatically identifies that this email is coming form this from domain and there is no way to chnage that.
In simpler words this is not possible to remove mail70.atl91.mcsv.net.
If you wish to remove it you will have to steup your own mail server which is normally not very difficult
It seems like most popular email clients don't include the X-Mailer header. Is there any good method to determine if an email was sent by a popular client, such as Gmail, Outlook or Apple Mail?
As mentioned in the comments, the User-Agent header can be used to determine the client MUA.
If this header isn't present in any of the emails being tested, this answer suggests that you could also check other fields like the message-id since some email clients will generate a message-id of their own.
Some more information about different useful headers can be found here.
I wanted to know if there's any email clients (e.g. Outlook, etc.) which strip out custom email headers e.g. X-Tallyfy-Y-Z : value
The reason is that I'm adding headers to email so that plugins for Gmail and Outlook can take a certain action if those headers are seen on an email.
In my case, http://tallyfy.com aims to link a "how to" re-usable checklist to an email - so that you can send an email and link a checklist showing how to get something done, right within your email client - with no attachments.
You can access full MIME headers in Outlook by reading the PR_TRANSPORT_MESSAGE_HEADERS property (DASL name http://schemas.microsoft.com/mapi/proptag/0x007D001F) using MailItem.PropertyAccessor.GetProperty.
What exactly makes you think Outlook strips out your headers?
Does the mail API (regardless of the programming language) allow to send mails on behalf of any arbitrary email address?
to understand what I mean, go here http://eyhosting.com/client_data/greatermedical/recform.php?item=comsu3397.html
And enter in the *your email: any arbitrary mail such as stevejobs#apple.com ... and in the *email 1: box enter your email .. Then watch your mail inbox.
Yes an email address specifies those to, from, attachments, etc fields in the header.
There is no universal mail API. But yes, it is possible (and even easy) to send mail and spoof the sender's address, for legitimate and less-than-legitimate reasons.
SMTP is the email protocol. See RFC 821, RFC 822, RFC 2821, and RFC 2822. While depending on the version of the protocol, the syntax changes slightly, the receiving server always trusts the from address that the sending client specifies. While there are other protocols which do perform sender identification and header overwriting, such as Exchange, these are in the minority.