We have a service service that interacts with users via email. We are using Exchange Web Services to send and ingest email. We have a few mail responses that are being received as protected such as:
Fictitious User (fict#example.com) has sent you a protected message.
Learn about messages protected by Office 365 Message Encryption.
Privacy Statement
Email encryption powered by Office 365. Learn More
Is it possible to read the contents of the protected message via EWS?
No EWS doesn't provide any operations or interfaces to decode a Rights protected Email. Generally RMS messages are .rpmsg which are rights protected msg files which are an office file format. There are RMS SDK's which have library that can decode the content in the correct environments https://learn.microsoft.com/en-us/azure/information-protection/develop/active-directory-rights-management-services-multi-platform-thin-client-sdk-portal .
Related
Is there any service on Azure, which can be used to send meeting invite using C# code. Currently, I am sending SendGrid to send email. But I also need to send appointments (meeting invite).
Sendgrid supports email attachment, you can use this snippet in order to send an email.
Also with Azure Logic App O365 connector, you can send a calendar invitation.
I have integrated an asp.net web application with office 365 mail using o365 api client library.I have a specific requirement, suppose I have stored the o365 mail id of other users in my database.The o365 mail username/ password also stored in my local database. Is there any way to see the other user's mail details using the mail id/ credentials?
If anybody has any idea please share.
Thanks in advance.
If your app is using OAuth code flow , it seems that only allow access to mail, calendar and contacts belonging to the authenticated user . You may use OAuth2 client credential flow, for your scenario and the app will be able to make calls to interact with any mailboxes in that tenant. Another choice is to use EWS Managed API ,since you get the password of the other user ,you will get the credentials like:
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
service.Credentials = new WebCredentials("user_with_access#example.com", "password");
Check this thread for a demo.
I have configured the alfresco email outbound like this
mail.host=mailserver.com
mail.port=25
mail.username=uname
mail.password=pword
now I can send mail to email address like abc#mailserver.com but abc#otherdomain.com.
how to send email to other domai? thanks!!!(my alfresco edition is community 4.2.x)
Promoting a comment to an answer...
Alfresco itself has absolutely no problems with sending emails to any destination domain
However, when you setup outbound SMTP for Alfresco, you specify a mail server to use for handling outbound messages. That server needs to be configured to allow mail relaying from the Alfresco host. If it isn't, then you'll often see that internal emails are fine, but external emails are rejected. Make sure your mail server is configured to allow Alfresco to send (relay) emails through it, and you'll be fine!
To send an email to alfresco using the rule “Send an email to a specified user“ you must modify first the file alfresco-global.properties. This file is located in the folder “tomcatsharedclasses“.
mail.host=your host
mail.port=25
mail.username=your mail user
mail.password=your mail password
mail.encoding=UTF-8
mail.from.default=optional name
mail.smtp.auth=true
Finally, you can change the template of email notification in the file notify_user_email.ftl in Company Home/Data Dictionary/Email Templates/Notify Email Templates.
For complete example see here:
https://lentux-informatica.com/how-to-send-email-through-alfresco/
I am using javamail api in java servlet to send mail. It seams to send mail only to gmail Id's, whereas I want it to be able to send to any email ID. Do I require different property value here? I followed http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/ to develop the code. The property values are:
props.setProperty("mail.smtp.host", "smtp.gmail.com");
props.setProperty("mail.smtp.port", "587");
props.setProperty("mail.smtp.auth", "true");
props.setProperty("mail.smtp.starttls.enable", "true");
No , There is no need to change configurations what you have ,Here it will act as server(Gmail) from there you can send mail to any mail servers(yahoo,hotmail and etc..).
You can send mail to any email ids. You can mention them in TO address or CC or BCC, check your authentications are correct.
Here is an detailed example from an existing post how to send an email from jsp/servlet?
Hope this can help you
I want to store my messages received on my email account in my own database, so that I can view those emails in application of asp.net made by me.
How to retrieve those messages from email server and store them in SQL Server database.
You might find that the emails are deleted from the mail server when your email client retrieves them. e.g. if you have outlook pointing at your mail account and it retrieves the emails your application will no longer be able to get them.
You can set up an auto forward rule to forward onto another email address. Then your application could retrieve from that.
I have used this for retrieving mail off the mail server http://www.lesnikowski.com/mail/