You must Sign In to post a response.
Category: .NET
#769129
Hi,
We can perform this Email sending through Exchange server by many ways, one of the easiest way to perform is using the System.Net.Mail.SmtpClient.
Please check the below website, where they provide line by line details to perform this mail sending operation using Exchange server in VB.Net.
{code]
https://www.emailarchitect.net/easendmail/kb/vbnet.aspx?cat=16
https://www.codeproject.com/Questions/493044/SendingplusmailplusviaplusExchangeplusServer
Thanks,
Mani
We can perform this Email sending through Exchange server by many ways, one of the easiest way to perform is using the System.Net.Mail.SmtpClient.
Please check the below website, where they provide line by line details to perform this mail sending operation using Exchange server in VB.Net.
{code]
https://www.emailarchitect.net/easendmail/kb/vbnet.aspx?cat=16
https://www.codeproject.com/Questions/493044/SendingplusmailplusviaplusExchangeplusServer
Thanks,
Mani
#769146
This is an example to VB.net Sending Email using Exchange Server
System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient("mydomainserver");
client.Credentials = new System.Net.NetworkCredential("userid", "password", "domain");
System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();
mail.From = new System.Net.Mail.MailAddress("abc@mydomain.com");
mail.To.Add("abcd@xyz.com");
mail.Subject = "Yoursubject";
mail.IsBodyHtml = true;
mail.Body = "test Emailbody";
client.Send(mail);
Return to Return to Discussion Forum