Is it possible to suppress the "signed-by" and "mailed-by" headers that sendgrid adds to white-labelled mail? (Paid account.)
Is it possible to selectively suppress them on some mail and not other mail?
No. It is not possible to selectively suppress the mailed-by and signed-by headers unless and until SendGrid provides such functionality which I don't think they will. There is currently no way to even suppress those headers for all your emails, as far as I can determine. It appears that SendGrid ALWAYS includes those headers and does not provide a way to turn them off.
Are you referring to the Headers, or the "on behalf of" type headers that show up in some mail reader views?
The "on behalf of" type headers are added by the Mail Reader, but if you Whitelabel in SendGrid, that will not be triggered.
If you're talking about the deeper headers, what's the use-case? Those aren't displayed to the end user that I've ever seen.
Related
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?
I'm trying to get a mailto link that would open a new outlook email window with a modified from field (i.e. to use a secondary account as it were). Is that possible?
No. Certainly not in most of the popular mail clients.
I assume you are wanting to do this just to save time in your own mail client. I would certainly be annoyed with a website that tried to change my from or reply-to address, so I'd expect my mail client to ignore it.
MAILTO is designed to facilitate a sender contacting an address that has been listed on a website. So there are very few things that the sender would expect to have dictated by the website. Even the standard options can be pretty annoying if handled badly by the website owner.
Your options are pretty much limited to
subject
body
cc
bcc
Even if a client were to support From (and I am not aware of any that do), there is no obvious way for them to handle edge-case scenarios such as a from address that has not been configured in the mail client.
What do you need this for? Perhaps you can use a script to send mails and dynamically set the From header. For example, PHP has a mail() function which would allow you to set a custom From address (and modify other headers).
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.
I want to add a mailto link on our web page. I want to add a urgent priority to this mail.
mailto links just doesn't support this feature , sorry.
however, you could use a specific subject and filter it in your inbox
Send a email
You can get your priority, but probably not that way.
Most mail clients honor subject= and body= in the query string of a mailto: link. Some mail clients treat multiple body= attributes as different lines; others only use the last body. Getting to your point, though: I don't think most clients will let you set priority, and it only takes one client that won't do it to make your system unreliable.
The easiest approach is to use mail filters to set priority on inbound mail. The filters should set the priority based on the subject lines, which you can reliably control.
If your mail system's filters can't set priority, try sorting to different mail folders.
You can't do this with a mailto: link, but you could create a server-side contact form that sends the e-mail out with the proper headers.
I guess if such a feature exist it's browser-specific.
from w3's website:
User agents may support MAILTO URL
extensions that are not yet Internet
standards (e.g., appending subject
information to a URL with the syntax
"?Subject=my%20subject" where any
space characters are replaced by
"%20"). Some user agents also support
"?Cc=email-address".
It can't be done.