Skip to content

Prescrypto/mentionMail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send Mail to @Mentions in a Google Sheet:

With this google script you can write in any cell of your spreadsheet a "@Mention" and a message and a mail will be sent to the email assigned to that @Mention with the message in it.

Example: Write in any sheet cell: Code in Django all day with @Jesus and @Everardo

The message will filter de @Names and send a mail to the specified mail in other shhet.

Here is the google sheet link for testing purposes (you have to do the process below for it to work):

https://docs.google.com/spreadsheets/d/1IDcv9Qz-FZjhxP3jpmvdo0fTsVJMKRXOVGY8bu2DOk0/edit?usp=sharing

ACTUAL USE IN YOUR GOOGLE SHEET:

  1. COPY THE CODE

  2. IN YOUR ACTUAL SHEET SELECT TOOLS > SCRIPT EDITOR

  3. PASTE THE CODE

  4. CREATE A CONTACT SHEET WITH THE FOLLOWING PATTERN (Make sure its the first sheet):

    1st column 2nd Column @Carlos carlosexample@gmail.com @Mario marioexample@hotmail.com and so on...

  5. CHECK THE CONTACT SHEET URL: AND COPY THE PART BETWEEN

/spreadsheets/d/ AND /edit#gid

  1. PASTE THIS PART IN THE CODE ON SCRIPT EDITOR IN:

var sheet = SpreadsheetApp.openById("HERE!!!!!!!!!!!!!!");

  1. UNCOMMENT THE FIRST SNIPPET OF CODE JUST THE FIRST TIME YOU ARE TRYING THIS CODE

  2. PRESS THE PLAY BUTTON (An arror will be thrown (THATS NORMAL), thats because no cell was selected when running the code).

  3. Authorize your gmail account... this mail will be used to send all the emails.

  4. RE-COMMENT THE FIRST SNIPPED... THIS WILL PREVENT DUPLICATE EMAILS.

  5. SAVE

  6. MAKE A MENTION IN ANY CELL WITH THE FORMAT @MENTION (THIS CAN BE IN ANY SPREADSHEET YOU CREATE IN THIS DOCUMENT)... AND AN EMAIL WILL BE SENT TO THE EMAIL ASSIGNED TO THAT @MENTION IN THE CONTACT SHEET.

About

Send mail to @mention in Mando de Control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published