Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

Hi!

 

If u have a MS Exchange Server in your n/w, u can try giving

 

SmtpMail.SmtpServer("<SERVER_NAME>")

 

Also refer to the post "Challenging Problem in .Net" in this forum. I also had a similar problem. It could also give you some insight. Hope this helps.

 

Amicalement,

Neutrino

Posted

You need to ensure that your SMTP mail server is set up to relay mail to an external mai lserver properly.

 

Basically what is happening is that the main mail serve ron your network (or ISPs network) does not allow you to relay messages through it.

 

You may nned to set up a smarthost in order to do this. Or contact your administrator to set up the relay settings in IIS properly.

  • 2 months later...
Posted
I think I know what is going on. You need to download the latest exchange servicepack and replace the cdoex.dll in the C:\Program Files\Common Files\Microsoft Shared\CDO directory. I had version 6.0.4641.0 and it would not work and gave me the same message that it gave you. I Downloaded the service pack 3 for exchange and extracted it. It will not let you install it unless you have Exchange Server 2000 so you have to grab the file manually. Once you are at that point, the dll is going to be in use so you will have to shut down to safe mode. Replace the file and reboot. The new version of the file should be 6.0.6249.1 then it should work or at least mine did after I did that. I hope that helps someone out there who is having this problem.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...