cca / libraries_syllabus_notifications

send email reminders to upload syllabi from a CSV
Other
0 stars 0 forks source link

can we add schema.org actions to emails? #1

Closed phette23 closed 1 year ago

phette23 commented 8 years ago

https://developers.google.com/gmail/markup/?hl=en

These highlight actions right from the inbox, you don't even need to click into the email. Could link up the Syllabus contribution form via a login.do?page= link. A ViewAction seems to be the specific type of markup we'd want.

Our emails are plain text which makes me think we may not be able to add the markup.

phette23 commented 2 years ago

Well here's a demo that I think follows Python 3 recommendations for sending HTML email and Google's instructions for adding a ViewAction: https://gist.github.com/phette23/ebbfb5470ca11ffe1a50e07a58ccdb1a

...but it doesn't work. Gmail (or Mailgun?) strips out the JS it looks like, there's no action button in my inbox.

phette23 commented 1 year ago

It seems like there may be a bunch of unstated requirements for action links to appear in your email, as per this article's requirements section. I think this has proven to not be worth it given the time I already spent trying to figure it out so I'm giving up.