SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Zealot Drew630's Avatar
    Join Date
    Nov 2001
    Location
    Maryland
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Forms and Attatchments

    Ok, I have an email form to address errors for program and the users of the form sometimes need to include screen shots along with their text, so that I can see where the error is. I want to have an option at the end of the form where users can hit a button and it will bring up an explorer view of their files and then they can select a file. The file name and location tree will be displayed in a text box on the form and when the form is sent, the images are attatched to the email.

    I have tried some manipulation of the form's action but I have had no luck with this? I'm sure it can be done, but i don't know where to go. Anybody offer help?

    Drew
    ~Drew

    There Is No Greater Joy Than Soaring High On The Wings Of Your Dreams, Except Maybe The Joy Of Watching A Dreamer Who Has Nowhere To Land But In The Ocean Of Reality.

  2. #2
    SitePoint Guru siphilp's Avatar
    Join Date
    Nov 2001
    Location
    Fife, Scotland
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What component are you using for the form to email process?


    Si

  3. #3
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there are some free perl scripts out there that can accomplish this.
    "There's no justice like angry mob justice!" --Seymour Skinner

  4. #4
    SitePoint Zealot Drew630's Avatar
    Join Date
    Nov 2001
    Location
    Maryland
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unfortuantely, I do not have control over the server, and it is a <gulp> Microsoft server, so I can't use Perl to so this

    Right now, submitting the form sends the data to a Javascript function that constructs a message to be sent out.

    Do you want to see some code?

    Drew
    ~Drew

    There Is No Greater Joy Than Soaring High On The Wings Of Your Dreams, Except Maybe The Joy Of Watching A Dreamer Who Has Nowhere To Land But In The Ocean Of Reality.

  5. #5
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Drew,

    a variation of the following might work:
    'mailto:somename@sss.sss?att=' + attVar

    'att' is supposed to be one of the properties you can add to a mailto. It doesn't work for all browsers. If you are only concerned about Outlook, I'd go to msdn.microsoft.com and search.

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still

  6. #6
    SitePoint Guru siphilp's Avatar
    Join Date
    Nov 2001
    Location
    Fife, Scotland
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If its a Microsoft server then 50 50 chance it will hace CDONTS installed in it.
    This component allows mail attachments, and the code is quite easy.
    Here are a few resources which should put you on your way if you get stuck post it or fire me a pm.

    http://www.devasp.com/Samples/mail.asp

    http://www.4guysfromrolla.com/webtec...ail/faq3.shtml

    Good luck

    Si

  7. #7
    SitePoint Zealot Drew630's Avatar
    Join Date
    Nov 2001
    Location
    Maryland
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I have been looking into the various solutions given here. First off, thanks everyone, you have all been helpful.

    I looked into the asp code that was provided by Siphilp, and it looks promising. I know that ASP works for all servers and mail browsers, so I am going to try and use that, though it is a new area for me to branch to. As far as Javascript goes, I need this to be solid, and I am not sure if everyone who recieves these emails uses Outlook.

    My last question is this: any recommendations for a good ASP book?

    Drew
    ~Drew

    There Is No Greater Joy Than Soaring High On The Wings Of Your Dreams, Except Maybe The Joy Of Watching A Dreamer Who Has Nowhere To Land But In The Ocean Of Reality.

  8. #8
    SitePoint Guru siphilp's Avatar
    Join Date
    Nov 2001
    Location
    Fife, Scotland
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is this for reference or for learning?

    Si

  9. #9
    SitePoint Zealot Drew630's Avatar
    Join Date
    Nov 2001
    Location
    Maryland
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    reference. I found some helpful tutorials online to learn and the syntax and structure are similar to other languages that I do know. I would just like a reference to the langauge, so I know what the capabilities are

    Drew
    ~Drew

    There Is No Greater Joy Than Soaring High On The Wings Of Your Dreams, Except Maybe The Joy Of Watching A Dreamer Who Has Nowhere To Land But In The Ocean Of Reality.

  10. #10
    SitePoint Guru siphilp's Avatar
    Join Date
    Nov 2001
    Location
    Fife, Scotland
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't think you really need to buy a book then. I use msdn.microsoft.com and 9 times out of 10 it helps me 100%

    If you do get stuck pm or email me, or even start a thread

    Good luck


    Si


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
  •