sending a text message or email automatically from a chrome extension - google-chrome-extension

Is it possible to send a text message or email automatically from a chrome extension triggered by an event on a web page? This is for notification within a company, it's not meant to be used by third parties so it's not a privacy issue.

One possible way that you could do this (if you have a webserver) is sending the user to a page that is hosted somewhere online, and run a PHP script that emails the user. You would have to use this method because:
You can't easily use PHP in a chrome extension
You can't send emails through Javascript/jQuery

Related

Cancel Gmail auto save of draft programmatically

I need to encrypt the real message that user write in compose mode in Gmail , so I created a Chrome extension that creates another button of 'secure send' in compose window ( I am using gmail.js library and InboxSdk library ). The problem is that when user write a new message a draft save automatically every time user keep writing and the real message actually not secure.
I think about update every time the draft when user change the content via Gmail API Users.drafts: update but the problem that also here it's save for a while to Google and I don't want it.
Is there some option to cancel the auto save of the draft? Then maybe I somehow try to save the draft by myself.. I don't see anything about this in the gmail.js and InboxSDK library's and also in the rest of my research...
AFAIK gmail-api hasn't a method to block the Gmail UI draft message autosave. In an scenario like the one described on the question, I think that the best is to avoid the use of the Gmail UI to compose new messages.
Anyway, Gmail draft autosave on the UI is done by using AJAX. I suggest you to try to find out which request sends the body of the draft messages and block it only while your extension users writes something to be encrypted.

Send email from windows phone 8.1 app(c#). Using any SMTP server , I am trying using gmail smtp

I am developing Windows phone application using VS 2013. In this I want to send email from some app pages like contact support page.
I have tried the c# working code from a windows console app. But 'Mailmessage' keyword is not supported in windows phone app development .
I have tried 'EmailManager.ShowComposeNewEmailAsync(mail);' code from Send email from windows phone 8.1.
That is result in opening mail messanger app available in the devices/emulator. I don't want the mail messenger app to open. Instead I want send to email through only code...
How can I achieve this?
Any help/suggestion would be appreciated
You cannot send email without showing the email application to the user. Also, the user might have many emails so he needs to decide from which the message should be sent.
What you can do is send whatever you want to send by email to a server (for example using HttpWebRequest) and from there send the email.
You can send the message without displaying a standard message box.
The user should monitor the sent message.
This is a safety feature for Windows Phone.
Only use ShowComposeNewEmailAsync.
To send mail using SMTP in Windows Phone you can make use of MailMessage for WP8 & WP7.
It's not a free package, but you can make you use of it's free version.
It's free license never expires, but opens a popup message and add a sponsor string to both object and body.
Refer here for more : Nuget
First, I work with Xamarin.Forms.
As the (other) question to Xamarin.Forms is marked as "duplicate" of this question, I post my answer here.
I also think, it's not possible (and also would not be nice), if Emails would be set in the background (without user interaction).
Therefore, I let the users send EMail's over the device-object in my app:
Device.OpenUri(new Uri("mailto:" + oFreizeitDetails.cPAB_Mailadresse));
where "oFreizeitDetails.cPAB_Mailadresse" contains the mail-address as string.
This works, if a mail-client is installed on the device.
The mail-client then pops up, the target mail-address is prefilled and the user can finish the mail (add body-text, e.t.c.) and then send it.
There were some problems with the WP implementation in XF some time ago, but now (I work with XF 1.4.4 and WP 8.1), it also works with WP.

Ways to integrate app in GMail

Is there any way to integrate an app into GMail (with like a custom button next to the send button which will perform a request to a specific url) without an Firefox / Chrome addon? So an application really integrated in GMail?
I was wondering as I would like to do the following;
Allow a user to click to move a message to a specific (hardcoded) folder
Put the message back at the top of their inbox after a API query (from my app). So the Inbox priority filtering should be managable.
You'll want to take a look at Gmail Gadgets.
Gadgets are custom HTML and JavaScript components that run within an
iframe and can be embedded within various web pages. Gmail includes
support for embedding gadgets within the web interface, creating
content-rich data displays and extending Gmail with additional
functionality.

Add custom text to Sharepoint Email Alert

We have an alert set-up for sharepoint list, but I want to add some custom text to the alert email. We do not have any access to SPD or sharepoint server and can make changes to sharepoint client only.
Can anyone please advice?
The code that sends out emails runs on the SharePoint server via the Timer Job. Since you have no access to do anything with the server you've got absolutely no chance of modifying the built in alert emails.
Could you do this with javascript?
You can't send emails with JavaScript directly. You can open up a draft email in a users default email client using a mailto link but this won't achieve what you want as a user will still have to edit it.
You could, I suppose, put some javascript onto an edit page using a content editor web part (which you can do without SPD) to on changes make an AJAX call to a separate web server to do the actual sending.

Is there any way to use (embed) Gmail - Yahoo on your website?

I'm not talking about something like cURLs or SMTP server
I have an stupid idea that instead of building a upload system, user can email for me with attach file.
So I think if gmail (or yahoo..) has an API to embed the SEND Mail page with a free account to my webpage so that all the user can use it?
Sorry for my bad English :D
You could either simply provide an email address and ask that people send emails to it with their attachment(s), or create a HTML form which allows users to upload a file which is processed by CGI. I use Uploadify on the front end, and a Perl CGI script to process the results.

Resources