Hi Morris,
As for sending email in ASP.NET web page(with attachment), I think you need
to implement such a web page via the following approach:
** Your page will need some FileUpload controls to let user first add some
attachments. These operation will post back to server so as to save all the
attachments to a temp folder on server(for later email sending use). For
ASP.NET file uploading, you can refer to the below article:
#File Upload with ASP.NET
http://www.codeproject.com/KB/aspnet/fileupload.aspx
** After you've file uploading functionality on page, you can add code to
send email. In .net 2.0, you can use Sysetem.Net.Mail classes to send
email(also support add attachments). There are many samples here for your
reference:
#Sending Email with System.Net.Mail
http://weblogs.asp.net/scottgu/archive/2005/12/10/432854.aspx
http://aspnet.4guysfromrolla.com/articles/072606-1.aspx
And I've also found a code project article which combine the above two
parts. I think it is quite close to what you want.
#ASP.NET email with multiple attachments
http://www.codeproject.com/KB/aspnet/ASPNETwebmail.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------