Hello
I creade a project which the user was able to sent e-mails it was working ok until I format my PC. After the format i install again windows 2000, the e-mails now can not be sent :( the error that i get is that:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.
Source Error:
Line 450: Do While DR.Read()
Line 451: sMail.To = DR.Item(FieldName)
Line 452: SmtpMail.Send(sMail)
Line 453: Loop
Line 454:
Someone told me to insert that SmtpMail.SmtpServer = "localhost" before the SmtpMail.Send(sMail)
I did it but again i get onother error which is that:
The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for address@address.com
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for address@address.com
Source Error:
Line 15: sMail.To = MsgEmail
Line 16: SmtpMail.SmtpServer = "localhost"
Line 17: SmtpMail.Send(sMail)
Line 18: End Sub
Line 19:
What can i do?
Help me pls
Bye
Isambella