Email a form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jalley06
    New Member
    • Mar 2008
    • 20

    Email a form

    Is there a way in Javascript to emulate the "Send Page by Email" in IE7? I would rather have the user click a button on the form to accomplish this than use that feature in IE.

    The user will always be using IE 7 and the email client will always be Outlook and the page they are viewing is on our internal company Intranet.

    Can someone please help me out? Thanks.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    A mailto: usually opens the default mail application on the client.

    Comment

    • jalley06
      New Member
      • Mar 2008
      • 20

      #3
      Originally posted by acoder
      A mailto: usually opens the default mail application on the client.
      And you are correct, it does but...I want the form to send automatically to one certain email address. I'm afraid if I leave it up to the user then the form won't get emailed.

      Any ideas?

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        It won't be possible with JavaScript, but since you're using IE only, you can use ActiveX. Search for "ActiveXObj ect outlook" for some possible solutions.

        Comment

        • zhyl
          Banned
          New Member
          • Apr 2008
          • 3

          #5
          Hi,

          You may try Advanced Outlook Express Repair at [removed] This tool is rather useful in salvaging damaged Outlook Express dbx files.

          Alan

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5388

            #6
            Originally posted by zhyl
            Hi,

            You may try Advanced Outlook Express Repair at [removed] This tool is rather useful in salvaging damaged Outlook Express dbx files.

            Alan
            i don't know what that should have to do with the problem?

            however: another solution which involves serverside scripting could be to send an ajax-call to the server and let the server send the mail ... that would allow you to send the mail without user interaction ...

            kind regards

            Comment

            • jalley06
              New Member
              • Mar 2008
              • 20

              #7
              Originally posted by gits
              i don't know what that should have to do with the problem?

              however: another solution which involves serverside scripting could be to send an ajax-call to the server and let the server send the mail ... that would allow you to send the mail without user interaction ...

              kind regards
              Thanks for all your help! I'll start researching this.

              Comment

              • jalley06
                New Member
                • Mar 2008
                • 20

                #8
                Originally posted by gits
                i don't know what that should have to do with the problem?

                however: another solution which involves serverside scripting could be to send an ajax-call to the server and let the server send the mail ... that would allow you to send the mail without user interaction ...

                kind regards
                Would using AJAX allow me to set it up so that the email will be sent with no user interaction? I don't want just a new message to pop up and the user having to click send. I don't trust the user to do that everytime.

                Also, I would like the script to either attach the form the user is filling out to the email or copy and paste the form into the email before sending...basic ally do what "Send Page by Email" does in IE 7 but send it automatically.

                Is this at all possible?

                Comment

                • acoder
                  Recognized Expert MVP
                  • Nov 2006
                  • 16032

                  #9
                  Originally posted by jalley06
                  Would using AJAX allow me to set it up so that the email will be sent with no user interaction?
                  Yes, it would.
                  Originally posted by jalley06
                  Also, I would like the script to either attach the form the user is filling out to the email or copy and paste the form into the email before sending...basic ally do what "Send Page by Email" does in IE 7 but send it automatically.

                  Is this at all possible?
                  Yes, it's possible. If you mean just the form values, that would be relatively easy. If you also mean the actual form, you will have to construct the form and send an HTML email.

                  Have you made a start on this?

                  Comment

                  • jalley06
                    New Member
                    • Mar 2008
                    • 20

                    #10
                    Originally posted by acoder
                    Yes, it would.
                    Yes, it's possible. If you mean just the form values, that would be relatively easy. If you also mean the actual form, you will have to construct the form and send an HTML email.

                    Have you made a start on this?
                    I haven't had a chance to look into this but will start. I've never used AJAX so this should be interesting.

                    Comment

                    Working...