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);
上面发送邮件的代码正在工作。我想配置我自己的端口(我的 Outlook 传出服务器端口),而不是 587。如何做到这一点?(我的组织outlook id附有yahoo id)