我創建了這個電子郵件地址「[email protected]」,我希望用戶能夠通過我的網站發送電子郵件給我。如何找到smtp服務器名稱
這裏是我的代碼:
MailMessage mailObject = new MailMessage("[email protected](this is fake email)", "[email protected]", "contact us", "Test message");
SmtpClient smtpC = new SmtpClient("smtp server name");
smtpC.Send(mailObject);
問題是我不知道該怎麼寫smtp server name
。我怎樣才能找到我的smtp server name
?
聯繫哪些主機您的電子郵件公司,並要求他們SMTP服務器的地址 – Blachshma