Re: SmtpMail from aspx.cs Cant send Message - Gives error
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS and SMTP > Re: SmtpMail from aspx.cs Cant send Message - Gives error




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-05-04 07: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 cur
rent web request. Please review the stack trace for more information about t
he error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The server r
ejected 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. 
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:47 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register