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.
In Visual Studio debug:
Uploading the file to new directory – no problem
Creating and populating the MailMessage - no problem
Attaching the file - 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 in red
Line 38: }
Line 39:
Same code in windows app works.
Are there som settings I need? Please suggest solution.
Thanks
[ Post a follow-up to this message ]
|