Would it be possible to save a draft in gmail using Matlab?

2 次查看(过去 30 天)
I am trying to use Matlab to save an email as a draft in Gmail. I am familiar with how Matlab can send an email through SMTP. However, it turns out you cannot use this protocol (smpt) to modify or create emails in the draft folder. I was wondering if there is any way to save a draft in Gmail by Matlab.
It seems Gmail API can be a solution: https://blog.mailtrap.io/send-emails-with-gmail-api/
Is there any matlab code out there for using Gmail API?
Thanks

回答(1 个)

Nipun Katyal
Nipun Katyal 2020-8-26
You can send a mail from Matlab and attach files to it as mentioned in the given link, although the functionality you are looking for can be utilised from the outlook app on windows using a COM server as shown in this example

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by