KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to send an email from c# code via our company's exchange server. System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient("exchangebox1.mycompany.com"); System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage("Me@myCompany.com", "Them@mycompany.com", "title here", "body here"); client.Send(msg); When I run this I get SmptException saying "Service not available, closing transmission channel. The server response was 4.3.2 Service not available, closing transmission channel". I'm interpreting this to mean SMTP is not enabled on our exchange box and that I need to use native Exchange Server commands to send the mail. Is this right, or should SMTP always work? Additionally, is it possible the exchange server could have been configured to only allow certain computers/users to send main via SMTP? How can I send mail via the Exchange Server without using SMTP? Thanks.
Tags (comma-separated)
Save Edits
Cancel