以下のコードを使用しています。次の点のいずれかがエラーの原因である可能性がありますが、わかりません。
1-アプリケーションは開発マシン上にあります 2-アプリがローカルホストで実行されている間、smtp IP はサーバー上でホストされます
「メールボックスが利用できません。サーバーの応答は: 5.7.1 mhtbusoum@gmail.com を中継できません」というエラーが表示されます。
Dim message As New MailMessage
message.From = New MailAddress(Strings.LCase("mhtbusoum@mysite.com"))
message.To.Add("mhtbusoum@gmail.com")
message.IsBodyHtml = True
message.Priority = MailPriority.Normal
message.Subject = ("Testing SmtpClient email sending")
message.Body = ("It is to test the email sending without any password")
Dim client As New SmtpClient("mailSending.actualSite.com", 25)
client.UseDefaultCredentials = False
client.Send(message)