Unsubscribe link not shown in gmail - gmail

Am sending a mail to gmail.com with a header.
MimeMessage.addHeader("List-Unsubscribe","<http://www.example.com>");
Eventhough the header is present in original content of the mail, unsubscribe link is not shown in mail. Kindly advice.

As my understanding from Google Support Link you need to have prepare some conditions like your try and Amazon Recommendation but finally google decided for show unsubscribed link in top of your emails.
Also, based on Official Gmail Blog:
This only works for some senders right now. We're actively encouraging
senders to support auto-unsubscribe — we think 100% should. We won't
provide the unsubscribe option on messages from spammers: we can't
trust that they'll actually unsubscribe you, and they might even send
you more spam. So you'll only see the unsubscribe option for senders
that we're pretty sure are not spammers and will actually honor your
unsubscribe request. We're being pretty conservative about which
senders to trust in the beginning; over time, we hope to offer the
ability to unsubscribe from more email.

How did you expect it to be shown? Where did you look for it?
Gmail, like most mail readers, doesn't show raw headers. It shows the header information it thinks is relevant. If you want to see the raw headers, there should be a "view source" or "show headers" operation to see them. If you view the message source, and this header is not present, then some mail server has removed it.

Related

How does Gmail native unsubscribe link work?

When using the 'unsubscribe' in Gmail, what happens behind the scenes?
I would like to identify any users who have clicked the native unsubscribe link vs the one in the email footer.
Haven't been able to find any breakdown on what the unsubscribe technically means.
This article doesn't go enough detail to understand what, how and where information from Gmail is passed.
https://support.google.com/mail/answer/8151?hl=en&co=GENIE.Platform%3DDesktop#:~:text=getting%20these%20emails.-,On%20your%20computer%2C%20go%20to%20Gmail.,click%20Unsubscribe%20or%20Change%20preferences.

Email phishing detection issue on GoDaddy / mailgun can it be connected with DMARC?

Some email clients consider our emails as a phishing (in Office 365). The only thing that was missing based on the https://mxtoolbox.com/SuperTool.aspx?action=mx was DMARC entry missing.
I've added TXT DNS record like this (TTL 1hr):
v=DMARC1;p=none;pct=100;rua=mailto:postmaster#mydomain.com
Can it resolve the issue? Is there any specific action required to make it work with Mailgun / GoDaddy?
Thanks in advance for any help/info.
Since you have p=none, it won't resolve the issue, you need to inform the mail server to reject the email. Basically, you're just in monitoring mode with p=none.
What that being said, it sounds like you're saying Office 365 is regarding your emails as a phishing attempt. I think you might be hitting their spam filter based on certain keywords. Send an email to yourself and look at the PCL in the email headers in the outlook account and see what it says.
If you don't know how to see view the headers and just want to make it easy, you can use an inbox tester that will show you the headers.
You can also open a ticket with Microsoft and ask them why the PCL is high on your emails. They might be able to assist.
Link to: Microsoft Sender Support
Another good thing to do is to go through this Email Checker Guide, it touches on every aspect of sending email. You might have a mis-configuration someplace that's causing the issue.

Cannot keep messages in the same conversation due to missing MESSAGE-ID header at Gmail

At some messages in Gmail, the MESSAGE-ID header is missing and I need to use it as IN-REPLY-TO header when replying so I can keep the replies at the same conversation.
When those emails with missing MESSAGE-ID header are replied from the Gmail's WEB UI, the replies stay with the conversation and the reply in fact acquires a IN-REPLY-TO header something looks like <-4185615914882731559#unknownmsgid> I could not discover how is this generated.
I've been trying to find a solution to this problem quite a while, ended up trying a few desktop email clients, Airmail and Sparrow to see how they behave. If I ever reply a particular email which is missing the MESSAGE-ID header using those email clients, the sent reply also acquires the same IN-REPLY-TO header <-4185615914882731559#unknownmsgid> and the reply indeed stays at the same conversation as expected.
So, I would like to ask how they achieve this, do they somehow generate the IN-REPLY-TO header <-4185615914882731559#unknownmsgid>? Is there a rule or a workaround?
This is a classic problem, every mail reader has it. The classic solution is:
copy the References field from the message you reply to, if any.
make up an In-Reply-To field, perhaps with a made-up message-id, perhaps with the sender's address and the message's date.
Keep the subject, and append "re: ".
You may also copy the Thread-Index field, if there is one.
Gmail's and most other threading algorithms will then connect the dots.
Thread-Index is a Microsoft thing, noone else uses it, as far as I know. The format of the hex blob is not specified, but copying that will help probably help Exchange, if the original message comes from Exchange.
If you just want to send an email and make sure it threads with another email in that user's inbox (and not any other gmail users that may receive the reply) then I believe you can use the Gmail API's messages.send() method and set the message.threadId to match the thread you want it to thread with.
I don't think that e-mails delivered to your gmail account have no message id. My evidence is that I just tried sending one to myself via telnet without a message id, and gmail's mx server added this
Message-Id: <54412844.63bbb40a.0772.ffffcbdcSMTPIN_ADDED_MISSING#mx.google.com>
It may be that copying a message into gmail's imap store can result in a missing message id. Eg see https://productforums.google.com/forum/#!topic/gmail/w5kgRivwbIg (though that is very old, it shows that synchronising mail to a gmail IMAP account can have this result).
The basic rule of e-mail is that if an e-mail doesn't have a message id for whatever reason, one is created for it, which is what has happened here. Hence, when you reply, the made-up message id is used in the in-reply-to header.

Email sent from lotus notes which includes sent form not working in gmail

While sending email from lotus notes to Gmail using Lotus Script, buttons are not visible in Gmail.
As Anders says, Any standard or custom Action Buttons (at the top) will not be available in Gmail. You would need to code your own Gmail interface to reproduce.
If you are talking about buttons in the actual rich text of the mail, these will definitely not get translated when the mail leaves and you should get a message saying...
"The following items cannot be sent or saved in MIME (internet mail) format."
That would be a clear sign that you are going to need to take another look at your assumptions.
If you are planning a migration, you do need to check your assumptions (and your vendor's promises) carefully, there is a lot of infrastructure and functionality that is taken for granted in the Notes/Domino stack and just not available, or significantly different, in others.
Stored forms are a feature that is unqiue to Notes. They contain Notes design elements, formulas and scripts that execute Notes functions that are provided by the Notes API DLLs that are only available in the Notes client. GMail doesn't know anything about them. Outlook doesn't know anything about them.
But if you want to send them to someone who has a GMail address but who also has the Notes client, then there is a way to do it manually using the "Send this email to other Notes mail user(s) through the Internet" feature, which appears in the Advance tab of the Delivery Options dialog that you can bring up when sending a message. There is no simple API for automating the mechanism that is used, but it can be done. It requires creating a new empty database file with a special name (encap.ond), saving your document into that database, and then attaching the the file to a new message, which will be the one that you actually send. I don't recall if any special headers are required for this, so if you want to pursue it you will have to do some investigation by using the manual process and checking out the full headers of the message on the receiving side.

Any experience in writing greasemonkey script for gmail?

I've had this idea for a year or so and I find it hard to believe that I am the only one to have ever of thought of this. This feature is not available in any web-based or email client that I know of. I would love to see this for Gmail. I posted a topic on the Gmail help forums but never received any meaningful replies.
A lot of people forward on emails to groups of other people, usually of the fun or joke variety. I don't want to be that guy that forwards on the email to my "fun" group of addresses only to send it right back to the person that just sent it to me or to someone that may have already received it previously in the thread of messages. I find myself hitting the "forward" button, adding a group to the recipients list, then having to go through the list and remove people that received the email just like me.
So, why not have a "Forward without Duplicates" button that parses through the message body and remove any address found from the recipients list. This way, anyone that has already been included in the email thread does not receive the message again. I don't forward on emails anymore b/c of the annoyance of having to add a group of addresses and then slowly and painfully go through and remove each one that does not need to be on it.
I have tried using firebug to isolate what needs to be parsed through, but it is tough. Does anyone have any direction they could point me in? The Better Gmail extension for Firefox includes some scripts that have been written, but I have no idea where to even start to be honest. Is there a way to look through these scripts to use as learning examples?

Resources