Open an email in GMail with a Google Apps Script - gmail

Is there a way to open the GMail mail editor populated with some data (subject, part of the body, recipients) from a script ? A script that is activated by a button or a menu item in the GMail UI.
I need this to:
automate some manual task
and to mimic email templates
I do not want to send the email from the script, I want the user to complete and review the email before sending.
Thanks !

Would it be okay if a user has to click a link?
http://www.askdavetaylor.com/can_i_have_a_mailto_link_specify_a_subject_and_body.html
This works for me, but I have Gmail handling mailto: links.
An alternate implementation would be to display a UI to the user showing the email preview, asking for a confirmation, then, upon confirmation, to send the email on behalf of the user. The drawback to this approach is that if the user needs to edit the email before sending, you will need to provide a UI with edit capabilities.

Another approach would be to create a draft email using Apps Script that the user can find in the UI, edit, and send.

Related

Send an email using office-js in Outlook add-in

I'm building an Outlook add-in and I'd like to send an email from the add-in itself,
Is it possible with office-js?
My goal is to allow the users select a person from a list on the add-in, when selected I want to send an email to that person, by click.
I can see that it has MessageCompose interface but it seems it allows only to edit the content of the email.
https://learn.microsoft.com/en-us/javascript/api/outlook?view=outlook-js-1.8
I know that Yesware have an Outlook add-in that sends an email by click and I'm trying to accomplish something similar.
Thank you
You cannot send mail directly from Outlook Add-in as Outlook doesn't provide this permission. The maximum you can edit the mail content and mail have to be triggered by the User itself.
If you want to send Mail then you have to implement Mail sending service or better use API's of popular providers like MailChimp or Sendgrid

How to ensure html consistency in html emails?

I've seen that html in emails can be a bit problematic because because the suport is not great, if I need to send emails for account confirmations, password changes etc, I need to be sure that the recipient sees the email correctly, are there any tags that are supported by the most email providers ?
Can I reliably use anchor tags, and style them inline, should I just send users emails with the confirmation link and tell them to copy paste it?
you can check it by copy-paste your web view in to different email service provider. Steps:
Open your email HTML in any browser.
press 'CTRL+A' and 'CTRL+C' or right click and copy option
Go to any Email service provider then got to COMPOSE
Paste your code.
It will give you view how it will see in email service provider. Do it with every email service provider.
Hope this will help :)

Save a copy window to send document in entered email is not working in In-Person DocuSign process. Not received any email

We are implementing the DocuSign in our application. While signing the envelope in In-Person mode there is an window (popup) to send a copy of the document in an email.
We have entered the email but no email received. Checked settings in the DocuSign portal account but not able to find any setting for this.
Please let us know how to enable the save a copy email in DocuSign.
I would check settings on your side if you are not receiving the emails. Things like security software, spam/junk mail filters, firewalls, etc. that might stop the email from arriving. DocuSign is a widely used platform, if the emails weren't going out it would be publicly known very quickly, and I just tested this myself and I'm getting the emails. I might suggest you call their support department...

How can I modify browser to control DOM of any loaded document?

I want to login in gmail account automatically. Then want to create a mail through contents of a text file. Then select Email addresses from Database one by one and send mail through GMail account and everything should be absolutely automatic.
I mean. I have a list of thousands of emails and I want to send all of them a personalized mail through GMail account. But I don't want to create 500 mails per day manually. I want to do this thing automatically. So I think, I should create a system which have following Algorithm.
1 Automatically login to GMail account.
2 Automatically compose a new mail.
3 Automatically select an email address from my database.
4 Automatically Paste content in composing mail.
5 Automatically click on the send button to send the mail
6 Again automatically follow steps 2 to 6 until all emails are not sent.
I can do all these things if I can control the Web Browser because without controlling the browser, I can't do all these things. I want to know, How can I achieve this and through which language?
Automated testing tools can do the trick. Try WatIn. WebLoad could also work. You can automate access to a site and the clicks with it. You should be able to leverage that to send out your emails.

Send email from users account

In my sharepoint site I have a document library with a workflow attached to it.Once any user upload a new document workflow is started and the document is send to approver for approval along with this an email has been sent to the approver for new document pending for approval. Now then email is sent from the mail server I have configured in sharepoint. it works fine. Now my question is I want to send the email to the approver from users email ID so that the approver should know from whome the request is come from.
Can any one help me how can I configure mail server so that the outgoing emailing should be done from users email ID.
Thnaks
sachin
You will need to set up a custom workflow with a custom activity to send the email rather than using the out of box approval workflow. This is one of those cases where a small change from the normal SharePoint way of doing things means a lot of extra work - the sort of problem I usually solve by telling the client it can't be done or is very expensive.
As an alternative, just including the requesting user name in the body of the email would be a lot easier and may be close enough to meeting the actual requirement.
You have write an event handler for the document library. You will have to send the approval mail using this event handler instead of thw workflow.
This post has some info abut event handlers in MOSS 2007

Resources