Solved

Outlook 2010 Mailto Actions from HTML form

Posted on 2014-01-20
7
2,197 Views
Last Modified: 2014-01-22
Hello,
Some quick background. We have a form that clients use to send information to the office. They fill it out and hit submit which opens outlook adds the recipient, subject and attaches a POSTDATA.ATT file that contains all of the information on the form. Since the client has updated to Outlook 2010 Outlook opens with the recipient name only. It's like Outlook is not reading the post method or blocking it. Anyone have any insight on how to make this work would be greatly appreciated. Thank you
0
Comment
Question by:jsgould
  • 4
  • 3
7 Comments
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 39795721
Can you please post the form and relevant code to determine the mailto call?  I may be able to identify what is happening.

The other option is to have a simple server side script that will send the email via your own mail server or a 3rd party.  This is how these forms of communication are usually done.
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 39795722
This is what I'm getting at, Scott has a great example on how to achieve this:

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/HTML/Q_28335350.html#a39772949
0
 

Author Comment

by:jsgould
ID: 39797853
ok let me try and get the code.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:jsgould
ID: 39797955
<html>
  <script name="javascript">
    // go to page selected from options menu
    function GoUrl(s)
      { var d = s.options[s.selectedIndex].value
        window.location.href = d
        s.selectedIndex = 0
      }
  </script>
  <body bgcolor="#ffffff" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
    <form action="mailto:email@email.com" method="post">      
      <table border="0" cellpadding="3" cellspacing="0" width="99.5%">
        <tr>
          <td bgcolor="#ffffff" width="100%" height="4"> </td>
        </tr>
      </table>
      <table border="0" cellpadding="3" cellspacing="0" width="99.5%">
        <tr>
          <td bgcolor="#336666">
            <font face="verdana, arial, charcoal, helvetica" size="2" color="#ffffff">
              <b> Action Reports: Electronic </b>
            </font>
          </td>
          <td bgcolor="#336666" align="right">
            <table border="0" cellpadding="3" cellspacing="0">
              <tr>
                <td bgcolor="#99cccc">
                  <font face="arial, charcoal, helvetica" size="1">
                    <a href="../GUIDES/HELP/ACTION.HTM">Help</a>
                  </font>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <table border="0" cellpadding="3" cellspacing="0" width="99.5%">
        <tr>
          <td bgcolor="#ffffff" width="100%" height="4"> </td>
        </tr>
      </table>
      <table border="0" cellpadding="3" cellspacing="0" width="99.5%">
        <tr bgcolor="#1a3333">
         
          <td width="17" height="20" align="left" valign="center"><a href="EAR_004_.HTM"><img src="../../../../IMAGES/ARROW_LEFT.GIF" border="0" width="10" height="17" alt="previous machine" border="0" vspace="0" align="left"><a></td>
          <td width="*" align="left" height="20" valign="center">
            <font face="verdana, arial, charcoal, helvetica" size="2" color="#ffffff">
              <b> (005)  #5 MAIN ENGINE - 8 CYL. </b>
            </font>
          </td>
          <td width="17" height="20" align="left" valign="center"><a href="EAR_006_.HTM"><img src="../../../../IMAGES/ARROW_RIGHT.GIF" border="0" width="10" height="17" alt="next machine" border="0" vspace="0" align="left"><a></td>
          <td valign="top" align="center" width="60">
            <font face="verdana, arial, charcoal, helvetica" size="1">
              <input type="submit" value="Submit!">
            </font>
          </td>
          <td rowspan="2" bgcolor="#008649" width="220">
            <font color="#000000" face="verdana, arial, charcoal, helvetica" size="3">
              <center> <b> Satisfactory </b> </center>
            </font>
          </td>
        </tr>
        <tr bgcolor="#1a3333">
          <td colspan="4">
            <font face="verdana, arial, charcoal, helvetica" size="2" color="#ffffff">
              11/14/2013:&nbsp;
            </font>
          </td>
        </tr>
      </table>
      <table border="0" cellpadding="3" cellspacing="0" width="99.5%">
        <tr><td><font face="verdana, arial, charcoal, helvetica" size="2">
          <b>Date of this action:</b>&nbsp;<input type="text" name="date" size="12" maxlength="10">
        </font></td></tr>
        <tr><td><font face="verdana, arial, charcoal, helvetica" size="2">
          <b>Action taken by:</b>&nbsp;<input type="text" name="takenby" size="42" maxlength="40">
        </font></td></tr>
        <tr><td><font face="verdana, arial, charcoal, helvetica" size="2">
          <b>Description:</b><br>
          <textarea name="description" rows="10" cols="60"></textarea>
        </font></td></tr>
        <tr><td><font face="verdana, arial, charcoal, helvetica" size="2">
          <b>Plant ID:</b>&nbsp;<input type="text" name="plant" size="8" maxlength="8" value="CCLIMAGI">
        </font></td></tr>
        <tr><td><font face="verdana, arial, charcoal, helvetica" size="2">
          <b>Machine:</b>&nbsp;<input type="text" name="machine" size="3" maxlength="3" value="005_">
        </font></td></tr>
      </table>
    </form>
  </body>
</html>

Open in new window

0
 
LVL 42

Accepted Solution

by:
Rob Jurd, EE MVE earned 200 total points
ID: 39798440
Ok, I'm able to replicate your issue using IE.  Though submitting the form using Chrome will put the contents of the form into the body of the email.

Either way I think you have two options:

Option 1 (Quick and dirty): Use javascript to parse the form data first into the following format mailto:email@email.com?subject=ddddd&body=[form elements go here]
eg
function emailUser() {
    // loop through the form here and build the mailto string
    // redirect the browser to the mailto
      	window.location.href = "mailto:email@email.com?subject=my%20subject&body=this%20is%20a%20test";
 }

Open in new window


Option 2 (Recommended for long term):  Submit the data to a simple server page such as PHP that will parse the form data and use your server for sending the email.  A more reliable way of sending email if only so you know you get it.  With the mailto option, you're at the mercy of the user as they could remove the attachment and change other content of the form you're trying to submit.
1
 
LVL 42

Assisted Solution

by:Rob Jurd, EE MVE
Rob Jurd, EE MVE earned 200 total points
ID: 39799611
0
 

Author Comment

by:jsgould
ID: 39799994
we've had mixed results with chrome. it's not always a 100%. I will try and see if we can implement the alternative methods you described. thank you for your time.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't know how to downgrade, my instructions below should be helpful.
Read this checklist to learn more about the 15 things you should never include in an email signature.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question