So I've done some research on the topic, but I cannot seem to figure out how to get the emails to send. This is the sheet I've been using: https://docs.google.com/a/taktical.co/spreadsheets/d/18GsFLLUCCAba82Teyd4nI8XSuNwEBvunjpQeNdYY-6U/edit#gid=0
I want to be able to pull the information from the first sheet, and have the recipient email set to Contact Email 1. I also need an if statement that says if any cell in row D says "not found", to just simply not send the email.
Any help here would be greatly appreciated :)
I splitted your problem into 3 distinct areas, with suggestions on how to solve it.
Consider using the gspread API to read the data from your Google Doc into a Python script.
Then to send email with Python, see Python Documentation: Email examples.
Finally, to automatically run this Python script it kind of depends on which OS you are using. In Linux you could set it up as a cronjob or just autostart it to run all the time.
I hope this will get you somewhere.
Related
I am trying to create a script that will auto-email a person. Basically, this sheet is going to have a list of items and track those items, and I need to assign each item when it comes it. When I assign it to a person's name, I want the script to then email that person. There are only about 15 people, but I assume I would need a script for each person aka if I put "Sally" in the sheet, there is a script to now email "Sally" to say she has been added to this task.
Ideally, I would like a way to also generate an email again to "Sally" if I update her task, add a comment to it, or do another input to do some sort of follow-up.
Any help would be appreciated immensely!
It wont be good to directly post the complete solution but I will mention the required functionalities which I get in my mind , please use them to solve your task:
onEdit(e) - use this to trigger a particular set of functions whenever a particular range or cell value is changed(it may be automated or manual both can trigger this function) look into the official documentation for how to detect the changes occurred in which cell(https://developers.google.com/apps-script/guides/triggers)
once the new task is assigned to a person(for first time) send an email to that person using GmailApp(install the library in app script) , get the ThreadById of this email and store it into the sheet along the same row, if any changes are made afterwords like adding comments or something,use this threadId to reply to the same email using "thread.reply"(How do you reply to email thread with google Mailapp?)
I think you have also asked how to make the system dynamic, I mean you are right now coding as if each member needs a code for his/her entry. Please study a bit deeper you will easily find an approach to make it dynamic using the onEdit and some for loops as the way you are thinking is not recommended in automation scenarios.
Used Google Scripts and when we search my history, the script is gone
I followed this link to set the email up, and now I cannot cancel it, any help would be much appreciated
Based on the link of the tutorial you provided, it looks like you created the script from inside a spreadsheet. They can be found using menu Tools => Script Editor. From there you can delete/edit the function that is sending the email. You might also want to check the document about Development Environment, this will discus about creating and deleting projects, linking of libraries and more. Hope this helps.
I have an email address and need a power shell command to search all email boxes in the company to find all emails relating to this.
what would be the best command to use iv been looking around but can seem to fine a close enough answer.
I'm pretty new to using power shell
Start by reading through the Help on Export-Mailbox:
http://technet.microsoft.com/en-us/library/aa998579(v=EXCHG.80).aspx
The examples there shoud get you started. If you can't get that to work, you can come back and have examples of wha't you've tried as a starting point.
I do not know if I am asking this correctly (but none of my searches anywhere yielded an answer).
I'll try my best to explain;
I've created an Applescript that is used in a mail client (Mac Mail and MS Outlook).
Basically when an email is recieved, it checks the subject, if the subject contains "whatever" then the script executes.
This script asks if you'd like to send an auto-response. If you click no, nothing happens. If you click yes, one is sent. Simple enough right?
Well, the problem I ran into is 20 people all said yes at the same time, sending 20 auto-generated emails.
I am attempting to find SOMEWAY to have "it" check to see if someone has already clicked yes. Does anyone have any insight? Am I going too far outside the scope of Applescript? If so, any alternatives would be greatly appreciated.
You need some centralized way to keep track when a yes is clicked. So a simple text file on the server may do the job. What I'm thinking is that when someone clicks yes to send the auto-responce then the first thing the script does is check the central file to see if anyone else has already clicked yes. If the file does have a yes then a new dialog pops up and lets the user know the email was already responded to and of course that yes does not respond. If the file does not have a yes then the script writes a yes for that email to the file, then sends the response.
You would need some way to distinguish between the emails that come in at different times so you would check the central file for this unique email property... something that is unique to each email but the same for everyone that receives it. If there is not a unique property then maybe a time based check would work. For example you could write the time-of-day to the file, and you don't send a response if the file contains a time within 30 minutes or some other suitable time period.
I hope that gives you some ideas. Good luck.
I have developed my SMS solution using AT Commands. now i need to send Business Cards (VCards) using AT Command.
I have searched alot but can't find the command for the above.
Can anyone help me out.
Regards,
Zeeshan Saeed.
See this question. You don't need a different AT command. You need to edit the SMS to be in vCard format.