SmtpClient emailClient = new SmtpClient(MailServer);
System.Net.NetworkCredential SMTPUserInfo = new System.Net.NetworkCredential(sender_mail_id(organisation mail id), pwd);
emailClient.UseDefaultCredentials = false;
emailClient.Credentials = SMTPUserInfo;
emailClient.Port = 587;
emailClient.Send(msg);
Above code for sending mail is working. I would like to configure my own port (my outlook outgoing server port) ie instead of 587. How to do that? (My organisation outlook id is attached with yahoo id)
Here is something that you can use to follow for example use it anyway you like to fit your example