S
Steven K
Hello,
I am using the following to send mail. It works on my web server, but not
on my personal machine (which is running ASP.Net). I tried setting
SmtpMail.SmtpServer to "", but get the following error:
System.Runtime.InteropServices.COMException: The "SendUsing" configuration
value is invalid.
I then tried using: SmtpMail.SmtpServer to "localhost", and got the
following: System.Runtime.InteropServices.COMException: The server rejected
one or more recipient addresses. The server response was: 550 5.7.1 Unable
to relay for (e-mail address removed)
Any help with this would be appreciated.
Sub SendMail()
Dim objMM as New MailMessage()
objMM.To = (e-mail address removed)
objMM.From = tbxHandle.Text & "@lucent.com"
objMM.BodyFormat = MailFormat.Text
objMM.Priority = MailPriority.Normal
objMM.Subject = "ASP.Net CI Confirimation Test"
objMM.Body = tbxHandle.Text & " has submitted form"
SmtpMail.SmtpServer = ""
SmtpMail.Send(objMM)
End Sub
I am using the following to send mail. It works on my web server, but not
on my personal machine (which is running ASP.Net). I tried setting
SmtpMail.SmtpServer to "", but get the following error:
System.Runtime.InteropServices.COMException: The "SendUsing" configuration
value is invalid.
I then tried using: SmtpMail.SmtpServer to "localhost", and got the
following: System.Runtime.InteropServices.COMException: The server rejected
one or more recipient addresses. The server response was: 550 5.7.1 Unable
to relay for (e-mail address removed)
Any help with this would be appreciated.
Sub SendMail()
Dim objMM as New MailMessage()
objMM.To = (e-mail address removed)
objMM.From = tbxHandle.Text & "@lucent.com"
objMM.BodyFormat = MailFormat.Text
objMM.Priority = MailPriority.Normal
objMM.Subject = "ASP.Net CI Confirimation Test"
objMM.Body = tbxHandle.Text & " has submitted form"
SmtpMail.SmtpServer = ""
SmtpMail.Send(objMM)
End Sub