SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2004
    Location
    Canada
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question EMail Completed Form ?

    Good Day;

    I've designed a form and would like to send the form, when completed by the user, via e-mail. I've been successful in sending the blank form using this approach:

    Set testMail=CreateObject("CDO.Message")
    testMail.Subject=" Subject "
    testMail.From="mail@abcd.com"
    testMail.To="anotheremail@abcd.com"
    testMail.CreateMHTMLBody "http://www.abcd.com/Filename.asp"
    testMail.Send
    set testMail=nothing

    However, I haven't been able to pass any values to complete the form when emailed in this way even though the form when run from the server through a browser accepts and displays the values. If anyone can help with this I'd appreciate.

    I've also considered trying to print the completed form to a file on the server and then send the file as an attachment to the e-mail but I've only been able to print the file to the client computer. Any thoughts here?

    I like to retain the HTML layout of the form in the e-mail or attachment and so just passing on the values in text is not a desirable option.

    Thank you.

    Bill

    p.s. I notice this forum alows the attachment of files but I don't see how to attach them.

  2. #2
    SitePoint Member
    Join Date
    May 2004
    Location
    Canada
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sorry, I've solved the problem

    I guess I just hadn't tried the right way to do it but this seems to send the completed form via e-mail.

    testMail.CreateMHTMLBody "http://www.abcd.com/Filename.asp?"&RequestQueryString

    Thanks for reading.

    Bill

  3. #3
    SitePoint Member
    Join Date
    Dec 2006
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why not do this:
    Code:
    testMail.ContentType = "text/html"
    testMail.BodyText="SOME HTML BODY"

  4. #4
    SitePoint Member
    Join Date
    May 2004
    Location
    Canada
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ophir.oren View Post
    why not do this:
    Code:
    testMail.ContentType = "text/html"
    testMail.BodyText="SOME HTML BODY"
    To duplicate the existing form is a significant amont of work that I'd rather avoid, however I had considered the possibility of a similiar approach. Thanks for the suggestion.

    Cheers;
    Bill


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
  •