SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Email with attachment using SA Fileup and CDONTS

    Hi,

    I have SoftArtisans Fileup program on my webserver and want to use it in with my ASP form so that it will send an email with an attachment (the users CV) from the users machine.

    I've used CDONTS to send emails without attachments many many times and have no problem with that, I just need to know what code to put in in order to use SA Fileup and add an attachment to the email. SoftArtisans give you examples of code that use their SMTPmail program but not CDONTS.

    I also want the file to be uploaded to the server temporarily and be deleted when the email has been sent.

    I have only got as far as this with the file upload code:
    Set oUpl = Server.CreateObject("SoftArtisans.FileUp")
    oUpl.Path = Server.MapPath("D:\inetpub\wwwroot\mywebsite\uploadtemp\")

    ..everything else is a mystery to me! Could anyone point me in the right direction?

    Thank you.

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All you need to do, is action the upload before, then get the filename. All you would need to do then, is send the e-mail with attachments and tell it to send the file, afterwards delete the file.

    Its easy, ill fish out something for you soon

  3. #3
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I'd appreciate some example code as I'm by no means an expert


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •