It is really easy to understand. Thank you very very much for your explanation.
@justinlasola2978 Жыл бұрын
How can you do this with multiple emails at the same time?
@jadervaldivia3457 Жыл бұрын
Hello David, I'm looking to extract emails from a specific Gmail Group rather than from my general inbox. Can you guide me on how to do this? thanks in advance
@migben Жыл бұрын
I'm trying do the same!
@shyjujoseph1674 Жыл бұрын
I too. Could u plz help me if you get this from somewhere.
@hoavosac9609 Жыл бұрын
How to get full display name by gmail in script app? many thank you
@jomythomas16062 жыл бұрын
Hi David How to check if an email has an attachment.? Thanks in advance
@DavidWeissProgramming2 жыл бұрын
Hi Jomy! Great question. This can be accomplished by using the getAttachments() method on a GmailMessage. For example, the below code will loop through each of your gmail threads and check to see whether any of the messages on that thread contain attachments: function checkForAttachments() { const threads = GmailApp.getInboxThreads(); for (const thread of threads) { const messages = thread.getMessages(); for (const message of messages) { const attachments = message.getAttachments() if (attachments.length > 0) { Logger.log(`Message ${message.getId()} has ${attachments.length} attachment(s)`); Logger.log(`First file's name: "${attachments[0].getName()}"`); } } } } Once you find an attachment, you can capture its data and any metadata, like the file name, from it. Check out these docs for what you can do with a GmailAttachment: developers.google.com/apps-script/reference/gmail/gmail-attachment#methods Let me know if you need any more clarification. Hopefully this helps :)
@shyjujoseph1674 Жыл бұрын
How to download data from a specific mailbox when I have multiple mailboxes associated with one account?
@yazanaghbar7903 Жыл бұрын
Please how can I get sent mails and make reply on specific email?
@mrkaydev2 жыл бұрын
Hey man!! Thanks for this ⚡
@rafaeldelima91 Жыл бұрын
Do you sell courses?
@arnellcarmichael6352 жыл бұрын
How do I reach you for a business-specific script that I would potentially like to be created?