By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,241 Members | 775 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,241 IT Pros & Developers. It's quick & easy.

How to attach file in asp

P: 11
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
Share this Question
Share on Google+
7 Replies


P: 85
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
Expert 2.5K+
P: 3,405
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

P: 11
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

P: 11
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
Expert 100+
P: 563
What mail object are you using? CDO? Persits? other?
Feb 13 '08 #6

P: 11
What mail object are you using? CDO? Persits? other?


CDO....
plz tell me in detail...
Feb 16 '08 #7

CroCrew
Expert 100+
P: 563
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

Post your reply

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