|
i think you misunderstood RFC2368 mailtoURL = "mailto:" [ to ] [ headers ] defines mailtoURL is "mailto:" and may be followed by to or headers to = #mailbox defines to must be a valid mailbox header *( "&" header ) defines header may be several headers separated by "&" header = hname "=" hvalue defines 1 header is hname follow by "=" followed by hvalue hname = *urlc defines hname is 1 or more url characters (i think that's between ascii x'33' and x'7f' both included) hvalue = *urlc defines hvalue is 1 or more url characters -----Original Message----- From: web400-admin@midrange.com [mailto:web400-admin@midrange.com]On Behalf Of rob@dekko.com Sent: Tuesday, March 26, 2002 7:55 PM To: web400@midrange.com Subject: Re: [WEB400] MAILTO Thank you for your many, and thorough, answers. Currently I have: <a href ="mailto:webmaster@dekko.com?SUBJECT=LOGIN010&BODY=Webmaster,%0D%0A%0D%0AI%20am%20having%20a%20problem%20with%20your%20website%20at%0D%0Ahname *urlc">Feedback</a> I have one problem. And I have one enhancement I want to make. Problem: The body of the message is appearing as follows: Webmaster, I am having a problem with your website at hname=*urlc Basically it is not doing the new line that the %0D%0A is supposed to be doing. Instead it is putting in the bold vertical bars. Enhancement: I want to put a link back to the url generating the message without hardcoding the url. Hans gave me a link which talked about an "X-Url" header. Also RFC2368 mentioned something about: hname=*urlc and hvalue=*urlc. i've tested X-URL here and ie6 does not put that in the message header here is code that does what you want if javascript is enabled (works on ie6, don't know for other browsers) <script language="JavaScript" type="text/javascript"> <!-- function setHref(linkObj) { if ( linkObj.href.indexOf('BODY')<0 ) { linkObj.href = linkObj.href + '&BODY=Webmaster,%0D%0A%0D%0AI am having a problem with your website at%0D%0A' + document.location; } } //--> </script> <a href="mailto:webmaster@dekko.com?SUBJECT=LOGIN010" onclick="setHref(this)">Feedback</a> Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin _______________________________________________ This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/web400 or email: WEB400-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.