exchange-server

How Can i Send Mail Through Exchange Server by using SMTP

ぐ巨炮叔叔 提交于 2020-01-01 12:26:06
问题 I want to Run Below code without NetworkCredential nc = new Net.NetworkCredential("USERNAME", "PASSWORD"). BY using Only Exchange Host (Server Name) And Port Im Getting Error For this code : Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender protected void SendEmail(object sender, EventArgs e) { SmtpClient smtpClient = new SmtpClient("ExchangeServerName",25); MailMessage message = new MailMessage(); try { MailAddress fromAddress = new

Getting a sent MailMessage into the “Sent Folder”

…衆ロ難τιáo~ 提交于 2020-01-01 08:17:27
问题 I'm sending MailMessages with an SmtpClient (being delivered successfully) using an Exchange Server but would like my sent emails to go to the Sent Folder of the email address I'm sending them from (not happening). using (var mailMessage = new MailMessage("fromaddress@blah.com", "toaddress@blah.com", "subject", "body")) { var smtpClient = new SmtpClient("SmtpHost") { EnableSsl = false, DeliveryMethod = SmtpDeliveryMethod.Network }; // Apply credentials smtpClient.Credentials = new

Bind custom extended property for existing appointment using EWS managed API 2.0

醉酒当歌 提交于 2019-12-31 03:26:11
问题 I want to make unique appointment to put in database using custom extended properties. I find all appointments using FindAppointments(): var appointments = _service.FindAppointments(WellKnownFolderName.Calendar, calendarView); and than i go trough all appointments using foreach loop: foreach (var appointment in appointments) for all appointments which doesn't have extended property: if (appointment.ExtendedProperties.Count <= 0) i bind a custom extended property and setting its value with

Exchange PowerShell commands through C#

非 Y 不嫁゛ 提交于 2019-12-30 12:16:48
问题 I am using C# to send PowerShell commands interacting with Exchange. I have a method called initconnection which sets up my connection to Exchange. I have another method that I call when I click a button that will send a command to powershell after the connection is established. However I am not able to continue the created connection. When I try to run a command it says the command is not found. More than likely because it doesn't have the exchange cmdlets. Runspace runspace = System

Exchange PowerShell commands through C#

♀尐吖头ヾ 提交于 2019-12-30 12:16:02
问题 I am using C# to send PowerShell commands interacting with Exchange. I have a method called initconnection which sets up my connection to Exchange. I have another method that I call when I click a button that will send a command to powershell after the connection is established. However I am not able to continue the created connection. When I try to run a command it says the command is not found. More than likely because it doesn't have the exchange cmdlets. Runspace runspace = System

Determining version of Exchange server on the system using C#

此生再无相见时 提交于 2019-12-30 10:36:11
问题 Is there a way to detect which version of Exchange Server is running (2007 or 2010) via c#? 回答1: Your best bet would be to use WMI 回答2: There is VBScript here that gets the version for all Exchange Servers in the domain using WMI and AD. You could convert this logic to the appropriate .Net classes if this is not usable as is. '**************************************************************************** ' This script created by Chrissy LeMaire (clemaire@gmail.com) ' Website: http://netnerds

Determining version of Exchange server on the system using C#

笑着哭i 提交于 2019-12-30 10:36:03
问题 Is there a way to detect which version of Exchange Server is running (2007 or 2010) via c#? 回答1: Your best bet would be to use WMI 回答2: There is VBScript here that gets the version for all Exchange Servers in the domain using WMI and AD. You could convert this logic to the appropriate .Net classes if this is not usable as is. '**************************************************************************** ' This script created by Chrissy LeMaire (clemaire@gmail.com) ' Website: http://netnerds

Get user's Exchange server and email address in .NET

送分小仙女□ 提交于 2019-12-30 07:05:09
问题 H​i. I would like to know the address of my user's Exchange server (assuming she's in a typical Windows office network). This is in a C# application. I already have the user's email address, I found it at System.DirectoryServices.AccountManagement.UserPrincipal.Current.EmailAddress , after referencing System.DirectoryServices.AccountManagement 回答1: I use this for my Exchange client application. Install Exchange Web Services Managed API Change your C# project's Properties/Application changed

Using WebDAV to access Exchange 2003 Inbox

半世苍凉 提交于 2019-12-30 06:46:10
问题 How do you (using .NET) use WebDAV to get a listing of emails in a user's inbox (not your own inbox) and then get the properties and/or contents of each email? I'd like to do this without WebDAV.NET, if at all possible. 回答1: take a look at this post of mine about webdav. hopefully it should give you some pointers: http://weblogs.sqlteam.com/mladenp/articles/9560.aspx 回答2: I'm looking into doing the same thing and the best solution I've come across is Henning Krause's article "Access the

How to retrive email from MS Exchange server on Android

一个人想着一个人 提交于 2019-12-28 07:05:13
问题 I’ve been googling for a couple of days now! I’m looking at a way of integrating simple mail functions into my android app. A few people have suggested looking at K9 which I have done. This is obviously a fully featured mail client and has far more functionality than I need. I wanted to know whether there was a way using Android API's to connect and retrieve mail? Any responses greatly appreciated! 回答1: Not really, afaik are no Android APIs you can use for this purpose. You could use the