| SibAndela 2004-07-03, 6:57 pm |
| I want to send an email from the serverside of an aspx page based on data submitted 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 "SendUsing" 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
|