IIS and SMTP - Re: SmtpMail from aspx.cs Cant send Message - Gives error

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > July 2004 > Re: SmtpMail from aspx.cs Cant send Message - Gives error





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: SmtpMail from aspx.cs Cant send Message - Gives error
SibAndela

2004-07-05, 2:49 am

Thanks Kristofer
Going much better but now I get:

The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for aaa@bbbb.ccc
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 aaa@bbbb.ccc

Source Error:


Line 36:
Line 37: SmtpMail.SmtpServer = "localhost";
Line 38: SmtpMail.Send( mm );
Line 39: }

Any suggestions - I suspect something in web.config needs to be set?
Thanks to both of you


"Kristofer Gafvert" wrote:

> Hello,
>
> Try to add this above Send():
>
> SmtpMail.SmtpServer = "localhost";
>
> (i assume that you want to send using localhost)
>
> --
> Regards,
> Kristofer Gafvert - IIS MVP
> http://www.ilopia.com - When you need help!
>
>
> "SibAndela" <SibAndela@discussions.microsoft.com> wrote in message
> news:42200BBD-BE0F-4C58-82E2-6C0FF5B326A0@microsoft.com...
> submitted by the client. I also need to attach a file to send to the
> recipient of the email.
> "SendUsing" configuration value is invalid.
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com