SmtpMail from aspx.cs Cant send
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 > SmtpMail from aspx.cs Cant send




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

    SmtpMail from aspx.cs Cant send  
SibAndela


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


 
07-03-04 11:57 PM

I want to send an email from the serverside of an aspx page based on data su
bmitted by the client. I also need to attach a file to send to the recipient
 of the email.

Testing inWindows XP/ Visual Studio .Net:
Uploading the file and saving it – no problem
Creating and populating the MailMessage  - no problem
Attaching the file to Mail Message - No Problem

SmtpMail.Send(oMM) –gives following exception.

Exception Details: System.Runtime.InteropServices.COMException: The "SendUsi
ng" configuration value is invalid.

Source Error:

Line 35: 	oMM.Attachments.Add(oMA);
Line 36:
Line 37: 	SmtpMail.Send( oMM ); <-- error line
Line 38: }
Line 39:

Same code in windows app in works.
How do I correct this problem.

Thanks

Sib Andela






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:42 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