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

1

8

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 [email protected] to [email protected] (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 [email protected]

So, how do i test this??

(1) https://developers.google.com/gmail/schemas/registering-with-google

Landslide answered 16/5, 2013 at 0:6 Comment(2)
github.com/googleknowledge/GmailActions and gmail-actions.appspot.com may also be useful for those just trying to test out there. I had tested using the gmailapi but it didn't work but the ones mentioned in the previous one worked for me.Hinton
did you manage to make it works? please if so let me know! #45963310Fulford
L
4

Many options, three that come into my mind right now are:

  1. use the Apps Script Gmail service, as shown in our Apps Script quickstart guide
  2. use App Engine as in the end-to-end example in the documentation
  3. connect to Gmail via SMTP to send emails from there
Ledesma answered 16/5, 2013 at 4:24 Comment(8)
The docs say *@gmail.com to *@gmail.com should work now. Can those just be via SMTP with auth? I wasn't able to get it to work using the metadata description via SMTP or by using SPF domain that is used with MandrillApp, but I wasn't able to get the result either.Beanfeast
*@gmail.com to *@gmail.com should work if you are sending them via Gmail, who will sign them for you. What entities/action are you trying to implement? Can you add your markup or the source of the email that you are sending to the question?Ledesma
Apps Script using MailApp.SendEmail with htmlBody having the sample script does not seem to work. I receive the email but unable to see the actions. Will try the App Engine example next.Landslide
I have a working Apps Script sample that uses MailApp.SendEmail, I plan to add it to the docs today or tomorrow.Ledesma
FYI, as reported in the reference guide (developers.google.com/gmail/schemas/reference/review-action), the ReviewAction is not available yetLedesma
@ClaudioCherubino I understand that the ReviewAction is not available yet, I'm looking for a working Apps Script sample. Would be great if you could post it.Landslide
The Apps Script tutorial is now available at developers.google.com/gmail/schemas/apps-script-tutorialLedesma
the action button works as charm but the reservation for example not... can you help me? #45963310Fulford

© 2022 - 2024 — McMap. All rights reserved.