SendUsing

T

Thom Little

I am using SmtpMail.Send( ) to send a message.

When this application is run from localhost it executes and the message is
delivered correctly.

When the same code is executed from a remote host it throws an exception ...

[COMException (0x80040220): The "SendUsing" configuration value is invalid.]



What is the correction for this problem?
 
K

Ken Cox [Microsoft MVP]

Although the error message doesn't reflect the problem, the symptoms sound
like permissions. When run from the localhost, the security permissions are
being passed through but when run remotely, they aren't. If that's the case,
finding out who the ASP.NET user is at the time and who it needs to be would
be the next step.
 
T

Thom Little

Thanks.

The problem was that the administrator for the server changed the property
that set the IP address of the SMTP server. Unfortunately he does not know
where it is set or how to reset it.

When I specify
SmtpMail.SmtpServer = "111.222.333.444" ;

Where 111.222.333.444 is the IP that worked before the change then it works
properly.

If you have any idea how to set the property back to its original value I
will pass the information on to him so I can start using the default setting
again.

--
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--

Ken Cox said:
Although the error message doesn't reflect the problem, the symptoms sound
like permissions. When run from the localhost, the security permissions
are being passed through but when run remotely, they aren't. If that's the
case, finding out who the ASP.NET user is at the time and who it needs to
be would be the next step.

Thom Little said:
I am using SmtpMail.Send( ) to send a message.

When this application is run from localhost it executes and the message
is delivered correctly.

When the same code is executed from a remote host it throws an exception
...

[COMException (0x80040220): The "SendUsing" configuration value is
invalid.]



What is the correction for this problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top