Outlook on Send via Office 365 - outlook-web-addins

I am a bit confused on the Outlook on Send feature. Is it supported with hosted Office365 with Windows Desktop client.
If not what other way is there to have the system make a call to my back end to have some validation done ? Currently my users have to click in my plugin to validate and then send the send bttn of the mail client. Ideally i would like to intercept the send request, make my call to my backend and once validated return the transformed email and send it.
Can i go and trigger a send request from my plugin or is the only way to go and use the graph interface to send the message ? I rather not do that if possible as i will have to handle attachments and images as well.

The "on send" feature is only currently available for Outlook Online, not for Outlook for Windows or Mac. However, it will do exactly what you need to do in terms of validating the email and allowing or blocking the send. The only other integration option is a COM add-in, which will allow you to intercept either the active email's send event or all send events in the application.

Related

How do I send an email directly from a gmail add on?

I have developed a gmail add-on for personal use and it can currently draft a reply to a recipient using message.createDraftReply(replyMessage);. I then have to manually send email.
After the button click event, I would rather that the the email just be sent directly without further action needed on my end and the UI go back to the inbox (rather than the email view).
Is this possible? If so, can you please provide some direction/example.
Have you tried using the sendEmail method?
See documentation here:
https://developers.google.com/apps-script/reference/gmail/gmail-app#sendEmail(String,String,String,Object)

Run Outlook Macro when sending mail from Excel

I have a VBA code in Thisoutlooksession that runs when new mail is sent.
But when I send a mail using Excel biltin option to send the file attached, the code in the outlook don't run.
Would appreciate youre help.
Thanks in advance.
This is a situation where some Outlook functionality is not applied.
"You use Send As or other Send commands from another Microsoft Office application, such as Microsoft Word, Microsoft Excel, or Microsoft PowerPoint. This scenario typically occurs when you use a command to send the current file as an attachment." Messages that are created outside Outlook do not include the default Outlook email signature
"If you need all features to be available, you either need to create the email from Outlook itself or create the new email programmatically from within that other application as well." Outlook UserForms dont work when emailing from another application
"This is by design: messages created and sent by Simple MAPI or mailto url do not trigger OOM events. This is done on purpose - there were some problems in those scenarios, so events were completely disabled." ItemSend event is not firing

Restrict user from closing outlook mail app, while some action is in progress

I am working on an Outlook mail app, which will be available to user on web only (not of outlook desktop).
A file need to be uploaded from app to azure via custom control in compose form of App, meanwhile the file is uploaded to Azure user should not be able to close the mail. If they try to do so, a warning should be given to them.
Adding to #Slava's answer, I would suggest using addAsync API for notification messages. You can add a notification of type progress indicator until your task is complete and replace it with a notification of type informational message.
Click here for reference
Unfortunately Office.js API does not have the feature you are inquiring. You will not be able to disallow user interaction, as such closing the compose window or closing your add-in. As the API doesn't have "OnSend" or "OnClose" events you will not be able to display any warning either. If this is the new feature you would like to add you may try to send request via Office Developers User Voice.
As the work around you should clearly indicate for the users that they need to wait and do not interup operation. You should display activity indicator, indeed. And finally you should be prepare user still interupt the operation in the middle and work properly with the error occur.
Hope this helps.

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.

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.

Resources