在Vb.net發送郵件正在使用下面的代碼,在vb.net中發送郵件,此代碼工作正常使用Gmail,但不與rediffmail用vb.net
Mail.Subject = "test email"
Mail.To.Add(dgr.Cells("[email protected]")
Mail.From = New MailAddress("[email protected]")
Mail.Body = "Hello"
Dim attachment As System.Net.Mail.Attachment
attachment = New System.Net.Mail.Attachment("AttachPath")
Mail.Attachments.Add(attachment)
Dim SMTP As New SmtpClient("smtp.rediffmailpro")
SMTP.EnableSsl = false
SMTP.Credentials = New System.Net.NetworkCredential("[email protected]",
"password")
SMTP.Port = 25
SMTP.Send(Mail)
任何理由的作品?或解決方案,這樣我可以使用任何電子郵件ID
怎麼的可能?...........可能Rediff的服務器速度慢comapring到Gmail發送的郵件。 – andy
不應該是smtp.rediffmailpro.com而不是smtp.rediffmailpro? – Rob
yaaaaaaa但它不工作 – user1640480