Editing a Google script for Gmail (5 minute work, if you know google scripts) -- 2
$10-30 USD
Törölve
Kiadva ekkor: több mint 8 évvel ezelőtt
$10-30 USD
Teljesítéskor fizetve
I would like to forward gmail emails to a specific email address.
I will have two way of triggers:
1) Starred emails
2) Emails with specific label
1) I have found a script on the internet for the "starred email trigger", but I need some modifications on it.
a) I want to add a preceeding text ("Email:") in front of the subject,
b) I want add a link at the top of the body of the forwarded email which will take me to the linked email in Gmail web site,
c) I also want to know the option just to put the link of the email which will take me to the Gmail web site on the body. The body should only include the link, the original body of the email needs to be deleted prior to forwarding.
Here is the script:
function TJ() {
var threads = [login to view URL]('is:starred');
for (var h = 0; h < [login to view URL]; h++) {
var messages = threads[h].getMessages();
for (var i = 0; i < [login to view URL]; i++) {
if (messages[i].isStarred())
{
[login to view URL](messages[i].getSubject());
messages[i].unstar();
messages[i].forward("recipient1 at [login to view URL]", {
// Advanced parameters: [login to view URL],Object%29
cc: "myboss at [login to view URL]",
bcc: "mybosses-boss at [login to view URL],vp at [login to view URL]"
});
}
}
}
}
2) I want to do the same with specific labels (lets say "Asana"), instead of starring an email. The label needs to be unlabelled after the script runs.
Note: I am inputting these scripts at script.google.com. And the script runs every minute automatically.
Hey am an expert web developer and can do this for you.. Frankly havent worked much on google scripts specifically but just went thru some documentation and can surely get this done.. Will just need a couple of hours if not 5 mins :)
Hello,
It appears you want this to run as a browser plugin? Can you please let me know which browser and OS? Alternatively, Google's Gmail API could perform the tasks as well but it would need to be ran/hosted somewhere.
For the milestone I wrote chrome - but I can change that based on your preferences.
-Matt
i can do this....but you need to know that gmailmessage forward could fail often because of Mime type.
what we can do is send an email width the same body and subject when the forward fail