Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 27th, 2004, 01:09 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default E-Mail Attachment

Hi Friends

Can u help me and provide a solution for below:

I am making an e-mail program through which a user can send e-mail. There is a link which says 'Submit Resume'. Here what I want is that the user should be able to add an attachment, like we generally do in yahoo or rediffmail. Can u guys tell me how?

Thanks
Mike

__________________
Regards
Mike
 
Old December 29th, 2004, 09:59 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

<%@ language= "VBscript" %>
<% Option Explicit


Dim NewMail
Set NewMail = Server.CreateObject("CDONTS.NewMail")

NewMail.To= "[email protected]"
NewMail.From= "[email protected]"
NewMail.Subject = "hey sneha"
NewMail.Body = "Hi there, just wanna know wheather you got my new year gift!!"
objMail.AttachFile Server.MapPath("/Pictures/MyPictures.zip") 'FILE IS ATTACHED HERE
NewMail.Bodyformat=0
NewMail.Mailformat=0
NewMail.Send

Set NewMail=Nothing
%>

1. IUSR_MachineName must have the Read permission on the File to be attached
2. Files should exist in the server first. So the client might need to upload it to the server and then only attach. (THink abt the security here)

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail attachment surendran PHP How-To 0 August 3rd, 2006 06:05 AM
E-mail Attachment problem hexOffender ASP.NET 1.0 and 1.1 Basics 0 May 16th, 2006 01:54 PM
mail with attachment in JAVA rekha_jsr Servlets 8 March 10th, 2006 07:39 AM
mail-attachment sureshdev786 General .NET 0 December 27th, 2004 09:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.