473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

How to attach file in asp

Hello,

Can anyone know how to write asp code to attach one file and email it to a
specified email address.


The attach file is the client choose from their Local Harddisk, just like we
using yahoo mail or hotmail , allow us to attach file and sent it.


I really need this function.plzzzzzzzzzz
Feb 5 '08 #1
7 2715
Hi,

Tons of different features. Please use the link below.

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8225&lngWId=4
Feb 5 '08 #2
jhardman
3,406 Expert 2GB
Hello,

Can anyone know how to write asp code to attach one file and email it to a
specified email address.


The attach file is the client choose from their Local Harddisk, just like we
using yahoo mail or hotmail , allow us to attach file and sent it.


I really need this function.plzzzzzzzzzz
Just to clarify, you already know how to send email, you just don't know how to send an attachment, right?
Feb 5 '08 #3
Hi,

Tons of different features. Please use the link below.

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8225&lngWId=4

Thanks a lot 4 your help.......
Its really nice code over that site........
Feb 13 '08 #4
Just to clarify, you already know how to send email, you just don't know how to send an attachment, right?

Ya....i know to send email but problem in providing the attachment...
can u plz help me??????
Fast....
Feb 13 '08 #5
CroCrew
564 Expert 512MB
What mail object are you using? CDO? Persits? other?
Feb 13 '08 #6
What mail object are you using? CDO? Persits? other?


CDO....
plz tell me in detail...
Feb 16 '08 #7
CroCrew
564 Expert 512MB
Hello RRsonawane11,

Try this:
Expand|Select|Wrap|Line Numbers
  1.     Set objMail = CreateObject("CDO.Message") 
  2.     objMail.Subject = "Attachment Example" 
  3.     objMail.From = "MyEmailAddress@MyDomain.com" 
  4.     objMail.To = "YourEmailAddress@YourDomain.com"
  5.     objMail.TextBody = "Please see attached file that I am sending." 
  6.     objMail.AddAttachment "c:\Vacation.jpg"
  7.     objMail.Send
  8.  
Hope it helps you out~
Feb 16 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: tabonni | last post by:
Hi I try to grab the checked files from HTML page and then send those PDF files as attachments. It can just send email, there are no PDF files attached. Can anybody point out my error? My...
1
by: RickL | last post by:
How do you attach a file to a hyperlink so that it cab be opened when clicked? I am new to .net and web development and I need to attach a file to an asp page so that when click it can be opened it...
5
by: erez | last post by:
Hello How can i attach an html file to TableRow in HtmlTable control that run at server, the code should be in server side. thanks
7
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at...
6
by: a | last post by:
What is the best way to construct an email in python and also attach a html file the html file to be attached is not on disk, but should be dynamically constructed in the python script I want...
3
by: mse07 | last post by:
hi for every one i have program using to send e-mail but i want to attach text file with that e-mail . how attach text file with e-mail automatically ? example : every time send...
0
by: Lexxzy | last post by:
Hi to all, I've a problem about to attach a recovered database file in the enterprise manager. My problem goes this way, I want to attach a recovered database file. So when I followed this...
14
by: sreemathy2000 | last post by:
My requirement is to generate and attach a file and send in an email automatically. i have a existing functionality where i using the code below to write a CSV file in my local system. ...
9
by: dpatel75 | last post by:
I am trying to copy a database from a SQL 2000 SP3 Windows 2000 server to a 2005 SP2 Windows 2003 server. I am trying to use detach and attach method (have tried both within Management Studio and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.