exchange-server

How to run Powershell scripts in VB.Net

烈酒焚心 提交于 2019-12-12 12:54:14
问题 I need to run an Exchange 2007 powershell script in VB.Net, but I can't seem to find a method that shows how to do it with the module loaded. What is the best method to do this? 回答1: You can run powershell scripts in VB, take a look at the following link http://blogs.msdn.com/b/zainnab/archive/2008/07/26/calling-a-powershell-script-from-your-net-code.aspx The link posted above takes you step by step on how to accomplish this. Check out this question that relates to yours: Running powershell

Find all subfolders of the Inbox folder using EWS

前提是你 提交于 2019-12-12 10:36:34
问题 I have the following Inbox folder structure: Inbox --ABC ----ABC 2 ----ABC 3 --XYZ ----XYZ 2 --123 ----123 A ----123 B ----123 C I am using Exchange Web Services and the following code to find the child folders of the Inbox folder: ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010); service.AutodiscoverUrl("MyName@MyDomain.com"); Mailbox mb = new Mailbox("MyName@MyDomain.com"); FindFoldersResults findResults = service.FindFolders( WellKnownFolderName.Inbox, new

How to specify content type in request in groovy?

让人想犯罪 __ 提交于 2019-12-12 09:59:36
问题 i'm trying to use the groovy httpbuilder to make a post to the microsoft exchange webservice (EWS). My problem is, I'm unable to set the proper request content-type. The library seems to have its own mind here. Does anyone have an idea? Cheers, Stephan Here is my code: url = "http://exchangeserver/ews/Exchange.asmx" p_body = "<soap request >..."; p_contentType = "text/xml; charset=utf-8" customHeaders = ["SOAPAction":"LONG_URL"] def http = new HTTPBuilder(url); http.auth.basic(authMap

Why should I convince developers to use port 587 for all SMTP communication?

别等时光非礼了梦想. 提交于 2019-12-12 08:33:52
问题 There is a growing trend to use port 587 for all client to MTA communications. It's in a standards track RFC: http://www.ietf.org/rfc/rfc2476.txt My question is "Why?". Why have 2 instances of a SMTP server running on the same server, if they both do the same thing? What security feature does it provide, besides giving me 2 things to troubleshoot as an administrator. This just seems like unnecessary complication that isn't needed unless the ISP blocks port 25. Even then, if the ISP is

Converting Folder ID from EWS to Exchange Cmdlet's Identity

此生再无相见时 提交于 2019-12-12 05:48:21
问题 Using Managed EWS 2.0, I'm trying to write some code to create, delete and mail-enable Public Folders on Exchange 2010. However, according to Exchange MVP Glen Scales, mail-enabling a folder is only possible using PowerShell cmdlets, which can be invoked from my C# code. So far, so good. However, I'm a bit confused when mapping between my EWS Folder objects (which have a FolderId) and PowerShell's Enable-MailPublicFolder cmdlet, which expects a GUID or a Folder Path as identity parameters. I

Exchange - Splitting a distribution group

China☆狼群 提交于 2019-12-12 05:41:43
问题 I want to send an email to a distribution group, and make sure the recipients will get the email as it was send especially to them. meaning : in the "To" field I want them to see only their email address and not the group's name in bold letters. I am building a subject router dll for Exchange, and I need to split emails sent to groups, to individual email messages. I'm working on Exchange 2010. any ideas ? I want to do something like this: messageEventArgs.MailItem.Message.To =

Cannot retrieve any room list from Exchg 2013 with c#

筅森魡賤 提交于 2019-12-12 05:09:58
问题 My exchange services works. I can see all rooms by Outlook and Can see all rooms through Powershell. But with this snippet I cannot retrieve any room ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1); service.UseDefaultCredentials = true; service.Url = new Uri("https://my server/ews/exchange.asmx"); service.AutodiscoverUrl("username@myserver.com", RedirectionCallback); EmailAddressCollection myRoomLists = service.GetRoomLists(); // Display the room lists. foreach

SSL/TLS error when connecting to Exchange from C#

我的梦境 提交于 2019-12-12 04:08:20
问题 I am trying to test sending an email to my own company email id. We have Outlook hosted on Exchange server. I used the following code (replacing my email id with a random one due to privacy reasons): using System; using Microsoft.Exchange.WebServices.Data; namespace TestEmail { class Program { static void Main(string[] args) { ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); service.UseDefaultCredentials = true; //service.Credentials = new WebCredentials("user1

Retrieving mails from MS Exchange Server from Java application

女生的网名这么多〃 提交于 2019-12-12 04:03:57
问题 What are the options for starting a method in Java app when I receive a new mail in MS Exchange? Is there some kind of web service for this? Or can I get it from the Outlook folder? Or should I use Java Mail like this - checking inbox folder every few seconds: Properties props = System.getProperties(); props.setProperty("mail.store.protocol", "imaps"); Session session = Session.getDefaultInstance(props, null); Store store = session.getStore("imaps"); store.connect("<impap_address>","<mail ID>

Malformed HTML in exchange server calendar invite

泪湿孤枕 提交于 2019-12-12 03:25:20
问题 I'm using javamail lib to send calendar invites. I notice exchange server adds this to the text/html part of the mail. The text/plain and text/calendar parts are not modified. <meta name=3D"Generator" content=3D"Microsoft Exchange Server"> <!-- converted from rtf --> <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left:= #800000 2px solid; } --></style> This behavior is not noticed when the invite is received by a non-exchange email like @gmail.com. when the exact text