Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old December 27th, 2004, 12:09 AM
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2004
Location: United Kingdom
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?


  #2 (permalink)  
Old December 29th, 2004, 08:59 AM
Friend of Wrox
Join Date: Dec 2004
Location: Chennai, Tamil nadu, India.
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel

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

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

NewMail.To= "sneha@tamilfilm.com"
NewMail.From= "vmvadivel@gmail.com"
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

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 06:39 AM
mail-attachment sureshdev786 General .NET 0 December 27th, 2004 08:34 AM

All times are GMT -4. The time now is 08:55 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.