Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending attachments with email

Status
Not open for further replies.

JazzLeg

Programmer
Aug 22, 2002
63
GB
Hi,
I'm using a jmail to send emails from my pages, however i need the customer to be able to attach a file from their computer to the email.

How is this done?

Thanks
 
Here are a few lines you could use....

'add attachment
msg.AddAttachment (Server.MapPath("Media\BerlinSnow.jpg"))
msg.AddCustomAttachment "phrases.txt","This is the first phrase" & VbCrLf & "And this is the second phrase" & VbCrLf
msg.AddURLAttachment "

If the client is using a web based form, you would have the clinet upload the file to the server. The page would receive the file and save to a specific location. You could then attach it to the outgoing email message with ...

msg.AddAttachment (Server.MapPath("uploads\" & filename & )) _______________________________________________
OutsideIntranets.com
Stop wasting time, get to work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top