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?
Related
What I am trying to do is, sending an email to one person but I want to add more email addresses in the TO field and don't want that users to get the email. Is it possible to somehow configure this?
Yes, this is completely possible. SMTP doesn't actually use the headers for anything; the envelope recipient list controls who actually receives a message (though many user-visible email programs will simply copy the To:, Cc:, and Bcc: headers into the envelope on submission).
Because you are not asking about any particular language, I won't post code which probably won't be useful to you anyway. In pseudocode, something like
s = smtp.connect(server)
s.ehlo()
s.from(envelope.sender)
for r in envelope.recipients:
s.rcpt(r)
s.data('''From: me#example.net
To: you#example.org
Subject: SMTP doesn't care
By the time SMTP transmits the actual message,
the recipient information has already been sent
separately.''')
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.
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?
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 have a client who needs some html mass emails sent. I've coded the email, but for some reason, probably a problem with their mail client, the test emails they've received have been marked with low importance.
I believe I could override this by adding an x-priority header to the email, however the mass mail service I'm forced to use (have no choice about this unfortunately) won't allow me to customize headers.
Is it possible to set the header within the actual body of the email? Are there html tags that allow for this?
No. Email HTML is just markup, and clients don't read the content for headers.
Which client are they using? Some clients (Hotmail, Gmail) analyse the content and assign their own rule, so there is no header you can change. This is done at the mailserver level, so if a user's client is, say, Thunderbird but their server is Gmail, it may still mark as low priority based on Gmail's rules.
If the client is Outlook and the mailserver is an in-house Postfix installation (for example), then you can set X Headers but by default, Outlook will strip them. For this reason, I suspect either the server or the client is setting the priority, it's not at the send level.
Look at the original source, and see whether or not it does contain the Priority header.