• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2479
  • Last Modified:

Outlook 2010 Mailto Actions from HTML form

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
jsgould
Asked:
jsgould
  • 4
  • 3
2 Solutions
 
RobOwner (Aidellio)Commented:
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
 
RobOwner (Aidellio)Commented:
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
 
jsgouldAuthor Commented:
ok let me try and get the code.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jsgouldAuthor Commented:
<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
 
RobOwner (Aidellio)Commented:
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
 
RobOwner (Aidellio)Commented:
0
 
jsgouldAuthor Commented:
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now