How to launch a gmail client with a specific email - browser

I have a browser application that retrieves gmail items in inbox using IMAP. I have the 'seqno' and the Message-ID of the email, and can fetch the content. I've created and rendered HTML with that email as a link. What I would like to do is to launch another browser with that email displayed in gmail client.
I noticed that there is no correlation between Gmail's URLs and the Message-ID or 'seqno'. How do I translate my ID into a URL that would launch the right email?
thanks.

I'm not sure you can. However check Gmail's IMAP Extensions, specifically, see if X-GM-MSGID correlates at all with the URLs.

Related

Mails sent via smtp.gmail.com or Google Client API and DKIM

I'm currently experimenting with Google Email Markup sent via PHP. I'm letting users authenticate using Google_Service_Oauth2 and then send a mail from their mail account to themselves using Google_Service_Gmail and users_messages->send('me', $encodedMessage).
The markup itself checks out valid in the Email Markup Tester. And HotelReservation and FlightReservation types even show up fine in Inbox. But all other types don't show up as cards.
After poking around I found a few comments that this might be because of a missing DKIM signature in those mails. And yes, when I send the exact same HTML (I'm using Microdata markup.) using the Gmail Actions Tester, the mails have DKIM signatures and the cards appear as expected.
This is, although the Markup documentation clearly states:
All emails where the sender and the recipient are the same account ignore the registration requirements and can be used for self-testing.
And I didn't want to setup some mail proxy in Google Apps Engine just to get that DKIM signature.
So how can I send mails to myself using smtp.gmail.com or the Google Client API and get a DKIM signature added by GMail?

How to make user browser download gmail attachment directly from GMAIL?

How to make user browser download gmail attachment directly from GMAIL when accessing 3rd party web app which can get the attachment information using gmail api?
Here's the scenario:
1) There's web application with server side code that can fetch emails using GMail API.
2) If the message has attachment and the user clicks download attachment button I want the user browser to download the attachment directly from GMail without having the web app download it first to server and then send it to the user browser.
So basicly I'm asking how to create URL that points to gmail and makes the user browser get the attachment from there. Does this make any sense?
We can assume the user browser can/is authenticated to GMail.
Tried finding possible solutions but failed.
There is no way to make an URL to an attachment using the Gmail API. CORS is enabled however, so you could use the access_token on the front end to download the attachment right away, but exposing the access_token to the client comes with a set of security risks you will have to take into consideration.

how can i send a json+ld schema.org email to myself in gmail

gmail recently announced schema.org support for in-app and one-click actions. They note that one can immediately test out the schema by sending an email from oneself to oneself i.e. from x#gmail.com to x#gmail.com (1)
My question is how do i send an email with the json+ld schema.org markup - I can only send text and/or html and if i try to send using mailgun / sendgrid etc. than the email won't be from x#gmail.com
So, how do i test this??
(1) https://developers.google.com/gmail/schemas/registering-with-google
Many options, three that come into my mind right now are:
use the Apps Script Gmail service, as shown in our Apps Script quickstart guide
use App Engine as in the end-to-end example in the documentation
connect to Gmail via SMTP to send emails from there

Retrieving emails from gmail

I've been using Oauth for G-mail to get the emails, it's going perfectly until I faced a problem that after following the Goggle playground for Oauth
the last response contained the emails as I want except than that I want the Full content of the email, not only the summery ...
what I'm missing ...?
The example flow there is for using an unread messages feed with an aggregator/RSS-reader software. Google has decided to only include the summary and a URL to view the message on the Gmail website there.
If you want download the message contents you have to fetch them using IMAP. Google also supports IMAP using OAuth authentication.

Integrated SendGrid SMTP service, getting blank mail on Yahoo and Yopmail but receiving complete mail on Gmail, Hotmail and Rediff

I have integrated SendGrid service in one of the application with unsubscribe message enabled,but while sending emails we are getting complete emails (ie with the text we have put) only for Gmail, Hotmail and Rediff mail but for Yopmail and Yahoo, mails are going blank only with unsubscribe message coming on bottom.We have disabled the unsubscribe option also but then the mail is coming complete blank in Yopmail and Yahoo.
One more thing, header for mails which we are sending is text/HTML and NOT text/plain.
It's better etiquette to send multipart/mixed and send both a plaintext and html version of the message. Are you sure that your HTML message is properly formed? Maybe yopmail/yahoo are more strict with their html rendering than other services.
You could look at a tool like Litmus which can analyze an Email message and show you what it will look like rendered in several Email clients like Thunderbird, Outlook, as well as several web mail clients like Gmail, Hotmail and more.

Resources