We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,586 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

File attached/uploaded in form and emailed

Hi,

I'm sure this has been discussed here somewhere, but I can't find exactly what I want...

I have a form set up that is sent to different email addresses based on field selections.

Sometimes that user will need to attach a file to send too.

I have found code to enable the user to upload a file (to server or to Access Database) (thank you Lewis E. Moten III: http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=7361&lngWId=4), but I cannot find anything on how to attach the uploaded file to the email sent to end-user, on submission.

Any help much appreciated!

2
Contributors
2
Replies
1 Week
Discussion Span
2 Years Ago
Last Updated
3
Views
Question
Answered
lewilaloupe
Newbie Poster
10 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

What are you using to send the email? For example CDONTS, CDOSYS or is it for Apache?

ArtistScope
Junior Poster
150 posts since Jun 2010
Reputation Points: 5
Solved Threads: 15
Skill Endorsements: 0

What are you using to send the email? For example CDONTS, CDOSYS or is it for Apache?

Just for some closure on this...

I ended up using

http://www.stardeveloper.com/articles/display.html?article=2001033101&page=1

to write the files to a database (option for uploading to server also on this site) and then using CDONTS to send the email:

dim objMail

Set objMail = CreateObject("CDONTS.NewMail")

objMail.To = "mail@mail.com"
objMail.From = Trim(email)
		objMail.BodyFormat = 0 ' HTML format
		objMail.MailFormat = 0
		....

' -- send the email --			   
objMail.Send

' -- clean up object
Set objMail = Nothing
lewilaloupe
Newbie Poster
10 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 2 Years Ago by ArtistScope

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.3254 seconds using 2.7MB