Solved

Outlook 2010 Mailto Actions from HTML form

Posted on 2014-01-20
7
2,285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 43

Expert Comment

by:Rob
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 43

Expert Comment

by:Rob
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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

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 43

Accepted Solution

by:
Rob 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 43

Assisted Solution

by:Rob
Rob 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

717 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