Solved

Outlook 2010 Mailto Actions from HTML form

Posted on 2014-01-20
7
2,128 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Create high volume marketing opportunities using email signatures with these top 10 DOs and DON'Ts of email signature marketing.
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now