No video

Google Sheets - Send Emails Using Apps Script JavaScript MailApp Tutorial - Part 12

  Рет қаралды 246,019

Learn Google Sheets & Excel Spreadsheets

Learn Google Sheets & Excel Spreadsheets

Күн бұрын

In this tutorial you will learn how to send email using Google Drive or Google Sheets utilizing Apps Script MailApp class. We will program an email script function and then add a send email button and assign uor function for the user to be able to send emails programmatically.
Google Sheets
www.google.com...
Website:
www.chicagocom...

Пікірлер: 247
@madanms17
@madanms17 3 жыл бұрын
Hi, Thanks a lot. I watch your channel for all my problems in google sheets. Because I think this is the best channel related to google sheets.
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
Thank You!
@dycast646
@dycast646 3 жыл бұрын
Thank you so much! Just a reminder, you might replace "MailApp" to "GmailApp" in order to send the email without errors.
@chezlineriley6913
@chezlineriley6913 6 ай бұрын
Simply speechless! I've never done Java Script before but I really wanted to understand what you were doing so I kept scrolling back to hang on your every word! 🤣 Then I was able to update my script until I finally got it and was able to tailor it to my needs. Thank you so much. New subbie! 👏👏
@tomdevisser649
@tomdevisser649 3 жыл бұрын
That button functionality is really cool. Nice when writing scripts for people who don't know how to run them!
@ankitadutta619
@ankitadutta619 2 жыл бұрын
I have no words to thank you. The way you provide solution to my problems everytime is mind-blowing. Whenever I face any problem in spreadsheet I have no other options other than you. Thank you once again. 👍
@cheewurz
@cheewurz 4 жыл бұрын
I have been over & over the the Code and can't figure it out. I have even put it aside for a time & come back to it with a Fresh Perspective and I can't get beyond the Syntax Error. Got Me! All your other Lessons I have gotten to Work. This is the only one that has Stopped me...hummmm
@csprgsio
@csprgsio 6 жыл бұрын
You just helped me a ton! Best apps script /js tutorial I've ever watched! I'll watch your tutorials forever if ya keep making them! Keep it up!!!!
@Irfan9191111
@Irfan9191111 4 жыл бұрын
Great tutorial, super...!!! how can we add attachments?
@huynguyen7048
@huynguyen7048 5 жыл бұрын
Thank you for your clear explanation. Best instructor ever. Looking forward to watching more script tutorial video from you
@darshanapandya9241
@darshanapandya9241 4 жыл бұрын
Thank you very much nice vdo
@sseemm
@sseemm 23 күн бұрын
Thank you
@gonzaloalbert3538
@gonzaloalbert3538 3 жыл бұрын
This tutorial is just awesome. Works perfectly and it's so well explained you actually understand and learn what you are doing. Great Job. Thanx a lot. Suscribed to your channel right away.
@ivanurbina2422
@ivanurbina2422 Жыл бұрын
That was an awesome tutorial! Learn a couple of tricks here. Thank you.
@apocalypticbean
@apocalypticbean 2 жыл бұрын
you're a legend
@sal2054
@sal2054 Жыл бұрын
Great way of teaching! You sound bit like Khan Academy's Sal!
@aklidahmed1344
@aklidahmed1344 Жыл бұрын
Best 💯
@DerekMorgan1
@DerekMorgan1 6 жыл бұрын
Thanks these tutorials are very good. I like that you make mistakes and then show us how you fix them during the videos 👍
@emmaoben4436
@emmaoben4436 Ай бұрын
Thanks for this, could I use this guide to mail merge into a table format into documents?
@Freeswing
@Freeswing Жыл бұрын
Awesome stuff, great tutorial again. Thanks thanks thanks.
@radovanbierens1946
@radovanbierens1946 4 жыл бұрын
Thanks for your tutorial. Thanks to you I was able to make my very first script :-)
@iloveutubealotandmor
@iloveutubealotandmor 5 жыл бұрын
Wonderful video and simple way of explanation that makes you understand the concepts easily.
@labocuphealthlabourreahab
@labocuphealthlabourreahab Жыл бұрын
Thanks a lot for your lesson 😊❤🎉
@juicy621
@juicy621 5 жыл бұрын
For new GSuite accounts, replace MailApp.sendEmail() with GmailApp.sendEmail() until an update from Google. This is some weird configuration by Google that's causing all the mails sent from new GSuite accounts using MailApp to be bounced back (except for the mail sent to yourself, which usually ends up in spam).
@jonathanbryant1191
@jonathanbryant1191 5 жыл бұрын
Thanks for this!! Couldn't figure out why it wouldn't run.
@opeyfamous
@opeyfamous 5 жыл бұрын
Do you have a minute to help me out with this?
@adamthedev
@adamthedev 4 жыл бұрын
Hey man, do you know if this is still working? I've tried both MailApp and GmailApp and neither work. I can send emails to my own domain... I'm thinking maybe it's some config settings?
@elizabethmoscoso6719
@elizabethmoscoso6719 3 жыл бұрын
@@adamthedev Hey, were you able to solve your issue? I am trying and with a regular gmail account, it works but not under my gsuite account. Thanks!
@Mr.Kazanova
@Mr.Kazanova 2 жыл бұрын
I had the same problem and replaced MailApp -> GmailApp and it works fine. However you have to run the function so you can reauthorized the permissions.
@mme_3670
@mme_3670 3 жыл бұрын
Best Video...
@michaelhofmann2925
@michaelhofmann2925 3 жыл бұрын
great tutorial, thanks! Will be more than usefull for my research of internship!
@patrickstewart3883
@patrickstewart3883 5 жыл бұрын
HI, I just wanted to say Thanks for the excellent videos. I am enjoying them immensely and building a pretty serious script.
@julian.kollataj
@julian.kollataj 4 жыл бұрын
Thank you for making this! :D very helpful!
@sudhandiramanisundaram4909
@sudhandiramanisundaram4909 2 жыл бұрын
Thank you for the video. Its help me a lot
@gaelbourdeau8071
@gaelbourdeau8071 3 жыл бұрын
I made it. Thank you very much for your videos!
@cheewurz
@cheewurz 4 жыл бұрын
Sir...I found the Problem. I Commented Out Line 30 and everything seems to Work Properly!
@VineethMenonk
@VineethMenonk 3 жыл бұрын
Wonderful SIR...Thanks A TON
@elgreg2011
@elgreg2011 2 жыл бұрын
Thanks very very much. but I need to watch it again., ha ha ha👌👌👍👍
@NeerajKumar-nz2xi
@NeerajKumar-nz2xi Жыл бұрын
Dear kindly also make a video for invoice automation
@lafamillecarrington
@lafamillecarrington 6 жыл бұрын
Thanks for these really useful tutorials. Is it possible for you to add the text of the script that you have written after each tutorial?
@kashbapodara
@kashbapodara 6 жыл бұрын
Hello, Thank you so much for all the script related videos. It did help me. I would like to request you to prepare a video for using script to lock automatically the range after entering data. Also to loop this process over few sheets in the same spreadsheet. Your quick response would be highly appreciated.
@Shameerchagani
@Shameerchagani 4 жыл бұрын
This has helped me a ton; But what i want is to include attachments in the Emails; Any help on that?
@shaundolk4873
@shaundolk4873 3 жыл бұрын
Agreed, adding attachments would be a game changer!!
@sam_safari
@sam_safari Ай бұрын
@@shaundolk4873 its possible as well
@fabriciosouza408
@fabriciosouza408 4 жыл бұрын
Man, thank you a lot ! I'm really learning with your videos.
@ExcelGoogleSheets
@ExcelGoogleSheets 4 жыл бұрын
Glad to hear that!
@programador1972
@programador1972 6 жыл бұрын
congratulations, the best of the best. Looking a lot on the internet and I find this channel wonder , I'm going to learn a lot.
@markoldfield966
@markoldfield966 2 жыл бұрын
Good explanation but you will need to have it at 1.5-1.75 speed, else you could write what he says by hand.
@suhelmujawar938
@suhelmujawar938 5 жыл бұрын
Thank you so much! ......Can we do it with the help of date? ...It means we can send automatic email on a specific date.
@kevinjude22
@kevinjude22 Жыл бұрын
THANK YOU
@jhonirosales1257
@jhonirosales1257 6 жыл бұрын
Congratulations on the video. But I thought this script was unnecessarily complex. Could have focused on template for sending in HTML format including shipping if images. How about doing a next video? CONGRATULATIONS
@MartinTobonV
@MartinTobonV 8 ай бұрын
Amazing content! Would this still be possible at scale if I want to add my emails to an email I would like to forward? For example, I want to send my customers a custom reminder on top of an alert they have already received.
@walterpaiva719
@walterpaiva719 6 жыл бұрын
Thanks for the video !!! Please do more about apps script ;]
@lhayanavieira7723
@lhayanavieira7723 Жыл бұрын
thank you so much
@adityasvasisht4743
@adityasvasisht4743 4 жыл бұрын
Hi, can you make a video on sending the google spreadsheet as an attachment in the mail in different formats such as pdf, xlsx, and CSV? Also if you could send it sheet by sheet using g-app scripts? Thanks Love your work BTW. Keep it coming! :)
@rishirishi4970
@rishirishi4970 2 жыл бұрын
Thanks
@Acuce7ibd468j
@Acuce7ibd468j 4 жыл бұрын
u r amazing
@leonardotenaglia3502
@leonardotenaglia3502 4 жыл бұрын
Thanks , it working , i really appreciate your time!!
@erikaknollenberg4558
@erikaknollenberg4558 Жыл бұрын
This was perfect. Any ideas for how to send to multiple recipients. I have figured out how to actually send to multiple emails by having each of them listed in the currentEmail but not how to have a different salutation for the respective email address.
@alorahkr
@alorahkr 3 жыл бұрын
this was so helpful thank u so much
@remiteksolutions6328
@remiteksolutions6328 8 күн бұрын
Hi I am looking for sending emails with attachment pdf preferably. Please help on that
@aridev009
@aridev009 6 жыл бұрын
Wonderfully explained.
@sitihanirahbintirahmat3911
@sitihanirahbintirahmat3911 5 жыл бұрын
Thank you for the video. Its help me a lot. But the email will only sending out when I run the script. Else it won't send the email. It will be nice if you can help me out to send it automatically to the last sender of the form submission. Means, for the last row of email address. Would you help me?
@Tacka4Fun
@Tacka4Fun 6 жыл бұрын
hmm, i wonder how to make this to work automatically without a button. For exampe mails would be sent if date is xxx or mails would be sent if certain text in certain cells would change.
@LeonardoAugustoThomas
@LeonardoAugustoThomas 3 жыл бұрын
Amazing!
@omnarayan7066
@omnarayan7066 2 жыл бұрын
Very nice thank you Sir 😊
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
:)
@innocentnamdialinta7440
@innocentnamdialinta7440 2 жыл бұрын
Thanks a lot. This tutorial was really helpful!! may I ask a question: How can I automate a scheduled time to send out the emails?
@royellison940
@royellison940 Жыл бұрын
Thank's for this video it works great for my needs, is there a way to add more than 1 cell for the template? I don't yet want to go down the HTML road but would like to just add 2 more cells to the template
@NeerajDKumar-el6jy
@NeerajDKumar-el6jy 5 жыл бұрын
Hay, Thanks a ton for such a simplified tutorial. It makes value a lot. Is there a way we can send mail as HTML instead of text ? Thanks a lot once again for your all the tutorials (Y)
@jaleahmad3248
@jaleahmad3248 3 жыл бұрын
kzbin.info/www/bejne/fmi6d56qa69nqNU
@lutfiandre4371
@lutfiandre4371 3 жыл бұрын
Hello, thanks for the knowledge. it helps a lot. I would appreciate if you could help me to solve the replace function which is not working. it's written: templatetext.replace is not a function thanks in advance
@dhimassetyapamungkas9160
@dhimassetyapamungkas9160 Жыл бұрын
me too but. replace(); only work in string. getValue(); return string otherwise getValues(); return array. may be you take that "s"
@rkhyami
@rkhyami Жыл бұрын
This is incredibly helpful and amazing. May I ask what wold the script look like if I want to send email not to all but to the list based ona value of a cell. I would like to send a bulk mail if the date value in a column is less than three months from today. I would much appreacite it if you can kindly share the code. will make my day!
@denicolas260
@denicolas260 6 жыл бұрын
Gracias por compartir sus conocimientos soy su fiel seguidor jajaja lo felicito
@kailashtulsyan4529
@kailashtulsyan4529 5 жыл бұрын
Thanks for helping me
@cheewurz
@cheewurz 4 жыл бұрын
Just wanted to say your Invoice Video was Superb! But...there is a couple three things it should do and does not ;) Up to the Challenge?
@sesayharuna2935
@sesayharuna2935 5 жыл бұрын
its helpful. thanks so much.
@marcelcharest7662
@marcelcharest7662 5 жыл бұрын
thank you so much - from montreal
@himanshudayma5854
@himanshudayma5854 Жыл бұрын
Can you please help with attachment of xlsx or csv
@strangeDog
@strangeDog Жыл бұрын
超厲害👍👍
@PlanlosAmWerk
@PlanlosAmWerk 2 жыл бұрын
Hi, thanks for this very easy to follow video! Have done this in excel, but new to google sheets. Do you know if I can somehow set it up so the script runs for example every Sunday night automatically instead pressing the button?
@nadlanation
@nadlanation 2 жыл бұрын
Thanks the great video. I have a question. If i need to send an attachment (from a google drive url) that is also in one of the columns in the sheet. how can i do it? thanks
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
// Send an email with two attachments: a file from Google Drive (as a PDF) and an HTML file. const file = DriveApp.getFileById('1234567890abcdefghijklmnopqrstuvwxyz') const file2 = DriveApp.getFileById('1234567890abcdefghijklmnopqrstuvwxyz') MailApp.sendEmail('mike@example.com', 'Attachment example', 'Two files are attached.', { name: 'Automatic Emailer Script', attachments: [file.getAs(MimeType.PDF), file2.getAs(MimeType.PDF)] })
@boyvalentinositorus3689
@boyvalentinositorus3689 3 жыл бұрын
Hi, your tutorial works fine. 1 question please: how if i want to send email to a person ONLY in line 2 or line 3 ? or even ONLY data from line 10 ?
@jobseekers2418
@jobseekers2418 2 жыл бұрын
how it will work only for newly added emails not for the entire list
@arpitdoshi
@arpitdoshi 2 жыл бұрын
can you please make a video on sending invoice in Draft(Not pdf) from google sheet (with all borders and plain merged cells format)
@yadday5153
@yadday5153 4 жыл бұрын
Thank you a ton!
@ondrejgrundfest7125
@ondrejgrundfest7125 4 жыл бұрын
Thank you very much!!!
@ExcelGoogleSheets
@ExcelGoogleSheets 4 жыл бұрын
You're welcome!
@yeszification
@yeszification 4 жыл бұрын
thanks for your tutorial. can you please show us how to send attachments on gmail using this script?
@osherezra131
@osherezra131 6 жыл бұрын
thank you can you Share the Script That will be helpful
@Amirpy.
@Amirpy. 4 жыл бұрын
it was a great tutorial. thank you. one question. is that possible to reply this email to the previously sent email?
@gaelbourdeau8071
@gaelbourdeau8071 3 жыл бұрын
There is no way to directly connect the code to the spreadsheet? So that in this way I only have to write that I want to send the mail on the sheet and it is sent directly. Instead of going to the script and activating the code.
@ogcombatacademy
@ogcombatacademy 4 жыл бұрын
Loving your videos so far. Helping me a lot as I'm new to Gsuite. How can you create timed triggers to send emails from sheets, when a particular data has not been entered at a particular time? Thanks
@ogcombatacademy
@ogcombatacademy 4 жыл бұрын
Like, if a student haven't signed in at 10am, an automatic email is sent to them from sheets reminding them to sign in. thanks
@gaelbourdeau8071
@gaelbourdeau8071 3 жыл бұрын
Because what I want to do is program the script to send me an email automatically when the price of a stock is below a price that I indicate to the sheet.
@StuffIMade
@StuffIMade 4 жыл бұрын
great stuff!!!
@balasubramaniama6362
@balasubramaniama6362 5 жыл бұрын
Thanks so much..!!
@socarquality1912
@socarquality1912 2 жыл бұрын
Hi. Thanks for sharing. But how can i copy script content for use. if you help in this regard would be happy. thanks in advance
@hannabudai273
@hannabudai273 11 ай бұрын
I'm far from understanding what you are doing but based on that I was able to create a script that sends the google sheet file via email. However I'm not able to figure out how could it send it in excel or cvs instead of pdf :( If anyone can help that would be awsome.
@shaitaan0666
@shaitaan0666 2 жыл бұрын
how we use if condition with this sheet
@brandonlane3090
@brandonlane3090 4 жыл бұрын
How do you set this up for a spreadsheet that is automatically updated? For example: When someone fills out a form and it's sent to the spreadsheet - so they can get emailed automatically
@mchangflor
@mchangflor 3 жыл бұрын
I have a question. This sends to one recipient. What is the additional code I need to add to email a second or third recipient (ie. CC'd) for the same email being sent?
@MauricioHernandez87
@MauricioHernandez87 5 ай бұрын
the code doesnt show which emails have already been sent.
@singhalmonica
@singhalmonica 3 жыл бұрын
Pls guide how to keep Gmail data in sheets
@greatidealsevent8413
@greatidealsevent8413 5 жыл бұрын
On Form Submit, every time a user submits the form, the Sheet is resending emails to everyone in the list. It would annoy the persons who have received the email previously. How to solve? Sad.
@lovevarshney3655
@lovevarshney3655 4 жыл бұрын
Found any solution??
@jjc6530
@jjc6530 29 күн бұрын
How do you add BCC and CC?
@reinkarnasimaravillas
@reinkarnasimaravillas 18 күн бұрын
How can Buttons work on Android..??
@garrytalaroc
@garrytalaroc 2 жыл бұрын
But what if you want to attach an image to the email?
@tanyongsheng4561
@tanyongsheng4561 2 жыл бұрын
Thanks so much, great tutorial. Btw, is it possible to send email with attachments?
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
// Send an email with two attachments: a file from Google Drive (as a PDF) and an HTML file. const file = DriveApp.getFileById('1234567890abcdefghijklmnopqrstuvwxyz') const file2 = DriveApp.getFileById('1234567890abcdefghijklmnopqrstuvwxyz') MailApp.sendEmail('mike@example.com', 'Attachment example', 'Two files are attached.', { name: 'Automatic Emailer Script', attachments: [file.getAs(MimeType.PDF), file2.getAs(MimeType.PDF)] })
@yehudagoldberg8577
@yehudagoldberg8577 2 жыл бұрын
What would be a more elegant way of replacing all the placeholders?
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
Your would use Regular Expression.
@yehudagoldberg8577
@yehudagoldberg8577 2 жыл бұрын
@@ExcelGoogleSheets Do you have any tutorials on that?
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
No. There is an example here stackoverflow.com/questions/5334380/replacing-text-inside-of-curley-braces-javascript
@1endell
@1endell 5 жыл бұрын
Very Nice Script. There's any kind of SMTP way?
@greatidealsevent8413
@greatidealsevent8413 5 жыл бұрын
Based on this script, how do I insert attachment in the email sent out? My current workaround is insert the Google Drive link in the template text. But I hope there is a much decent way. Thanks in advance.
@dwightaguinaldo3421
@dwightaguinaldo3421 2 жыл бұрын
After creating this project, is there a way to implement the script to another brand new spreadsheet rather than copying and pasting it? sort of like importrange? Thanks!
JavaScript Objects - Iterate Through Object Keys and Values - Google Sheets Apps Script - Part 13
35:10
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 62 М.
Google Sheets Mail Merge - Email - No Addons - Tutorial
33:17
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 125 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 114 МЛН
Harley Quinn's revenge plan!!!#Harley Quinn #joker
00:59
Harley Quinn with the Joker
Рет қаралды 27 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 52 МЛН
Google Forms to PDF & Email while storing data in Google Sheets
27:02
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 164 М.
Google Apps Script - Google Drive Tutorial, Files, Folders, Copy Files, DriveApp, Iterator - Part 15
29:31
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 130 М.
Match Function with Google Sheets Apps Script -JavaScript IndexOf Method Tutorial - Part 16
18:48
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 65 М.
PDFs from Spreadsheet Data and Google Docs Template - Google Sheets
32:38
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 219 М.
Google Forms - Email Notification Script - Send Confirmation Emails to Users
18:06
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 112 М.
Google Apps Script Send Emails from List
17:23
The Excel Cave
Рет қаралды 4,3 М.
QUERY - Drop Down List to Filter Data - Google Sheets
15:25
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 344 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 114 МЛН