473,399 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

mailto: and URL in body


Hi,

I'm attempting to send a mailto: and include a link in the body. Has
anyone done this?

Also, has anyone done mailto: with Lotus Notes 6.5? It will place the
body in the subject line if it is above a certain length of about 64
characters! Also, Lotus Notes does not un-escape/decode URL encoded
strings.

Example code:
<FORM method="post" action="mailto:ti********@toyota.com"
enctype="text/plain">

<br>Subject:<INPUT TYPE="text" NAME="subject">

<br>Message:<INPUT TYPE="text" size="128" NAME="body">
<!-- The following body text works.
<a href="http://localhost:7021/t3Portal">TA CASE</a>
-->
<!-- This body text gets appended to the subject with an empersand
delim.
<a
href="http://localhost:7021/t3Portal/appmanager/t3/int?_nfpb=true&tasCaseEditorPortlet_actionOverride =%2Fportlets%2Ftas%2FcaseEditor%2FselectSymptomSub component&_windowLabel=tasCaseEditorPortlet">TA
CASE</a>
-->
<!-- This body text totally fails. Lotus Notes does nothing! Make it
one char shorter and it works.
<a
href="01234567891123456789212345678931234567894123 456789512345687961234568791">TA
CASE</a>
-->

<br>CC:<INPUT TYPE="text" NAME="cc">

<br>BCC:<INPUT TYPE="text" NAME="bcc">

<input type="submit" value="send email"></input>

</FORM>

Note that using POST rather than GET only changes the format of the
message but does not allow more characters or make the "escaped"'ed
string recognized.

Insight?

Thanks!
TimJowers

Jul 24 '05 #1
5 29696
ti*******@gmail.com wrote:
Example code:
<FORM method="post" action="mailto:ti********@toyota.com"
enctype="text/plain">


Don't do that.

See <http://www.w3.org/TR/html4/interact/forms.html#h-17.3>, for example:
[The 'action' attribute] specifies a form processing agent. User
agent behavior for a value other than an HTTP URI is undefined.


A mailto: URI does not count as an HTTP URI, so it's invalid.

Having said that, *some* browsers will *attempt* to email a form built in
this way, but you can't rely on this happening, and you don't get any
warnings when it fails.

Process your forms with a script running on your server. That's the only
reliable way of doing things.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 24 '05 #2
Slackers!

Oh well. Yes, an email is the proper solution for this need. mailto: is
the appropriate solution. The alternative is for us to implement a
feature-rich email app in the browser. We have tens of thousands of
users in this organization so attempting to re-write an email app as a
series of web pages is dumb as hell. You are saying for us to do that
and I guess we have no choice given the shoddy support in Lotus Notes.

Oh well, HTML is STILL not ready for the enterprise. W3C folks need to
work in the real world for a bit before making their
spec.s!!!!!!!!!!!!!!!!!!!!!!!! The real world is not only
browser-server.

Anyone have an html email app that integrates with LDAP and performs as
well as a PC app. (I've already posted this previously to *javascript
and *java and the only reply was to use a a fat email client and please
not post to more thatn one goup!!!!!!!!!)

TimJowers

Jul 24 '05 #3
mailto: works for most email clients.

- Konqueror 3.3 to KMail works for POST but ignores "subject" and
"body" tags for GET and just munges the string together with the tags
in the body. Konqueror does prompt about sending email (unlike Firefox)
and does allow me to turn off prompting in the future (unlike IE!)
- On SUSE Linux, Firefox to Evolution works best of all tests for GET
but does not pass data for POST.
- On XP, Firefox and IE to YahooMail: works fine.
- to Outlook Express 6: works fine with FireFox. With IE works fine for
GET but for POST passes to and subject but does not pass form fields.
- to Lotus Notes: sends to address and subject but fails with issues
stated above. Noteably, a URL can be sent but the message has to be
very short for Lotus Notes. Unacceptable.

I still haven't figured out how to have a link name rather than showing
the link itself. <a href="thelinkitself.com">The Link Name Itself
Inc.</a> just shows as text. Maybe I have to attach a whole HTML form.
Any ideas anyone?

So, lack of support for mailto: seems to be a product deficiency in
Lotus Notes rather than a deficiency in de facto standards. I cannot
resist noting that Microsoft is kicking IBM's butt here and Yahoo is
kicking Microsoft's butt. Open Source is on par with Microsoft and not
as complete as Yahoo!. An embarassment for Microsoft and a huge
embarassment for IBM. In fact, the de facto standard is quite simple.

TimJowers

Jul 24 '05 #4
Other notes:

Lotus Notes will append the body text plus with the "&body=" to the
subject line if the body text is greater than say 80 characters but
less than say 100. Above say 100 total failure.

Lotus Notes also fails on putting a URL in the body if the URL has
arguments. Any arguments after the ? (or even &) and including the ?
(or &) are dropped. Even if the URL is escaped first before mailto:
GET.

One can email a link or a page with IE but not both AFAICT!!! Customer
wants both. Also, I do not see how we can command the browser to send a
page by email from our web page. Any pointers or tricks?

Jul 24 '05 #5

ti*******@gmail.com wrote:
Other notes:

Lotus Notes will append the body text plus with the "&body=" to the
subject line if the body text is greater than say 80 characters but
less than say 100. Above say 100 total failure.

Lotus Notes also fails on putting a URL in the body if the URL has
arguments. Any arguments after the ? (or even &) and including the ?
(or &) are dropped. Even if the URL is escaped first before mailto:
GET.

One can email a link or a page with IE but not both AFAICT!!! Customer wants both. Also, I do not see how we can command the browser to send a page by email from our web page. Any pointers or tricks?


Lotus notes 1.5.4 raises the limit on the number of characters to about
220. We'll probably just send to the owner as we have their email
address and then let them forward. Sad to see IBM cannot even keep up
with the Open Source products on this issue! And Lotus Notes has
probably been arund twice as long. Want to see it done right then look
at how Yahoo Mail integrates with the browser.

TimJowers

Jul 24 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Val | last post by:
Any experts on mailto: tags? I want to set a link so that the subject and some of the body of the email is filled in. This is easy for simple text, although you need to use %20 for spaces: <a...
4
by: tp | last post by:
HI... I have created simple .asp page and i would like to send my page as email using my outlook . is it possible to send form body as new email outlook body using mailto command or any other...
5
by: RobG | last post by:
I am trying to get users to fill in a form on a web page, then click a button to send an e-mail. I am using JavaScript to get the fields from the form, then run a mailto command to put the...
3
by: Yogi_Bear_79 | last post by:
I am building a stand alone html help system (.chm.) So the usual woes with mailto are not going to be encountered. Likewise I am ensured all my intended users have Outlook installed. With that...
6
by: 35th Ave Media | last post by:
Hello, I have about 60+ pages that I need to insert a MAILTO: tag so people can email the page using their email client. The body of the message is going to be the URL of that page. Using ASP,...
3
by: Brian | last post by:
Hi, I want to issue mailto from one of my pages. Basically to drop contact information from a from to the body of the email and have the user enter the desired address to send it to. I thought...
7
by: Paul Bromley | last post by:
I am using mailto to open the default e-mail program on the users machine using the following function code snippet that I found on th web.:- Public Function OpenEmail(ByVal EmailAddress As...
5
by: Joh | last post by:
I'm using mailto to open up an email that have a hyperlink in the body. The hyperlink passes two variables Name and Emailadress. The problem is that only the first variable Name show up in the...
2
by: GArlington | last post by:
"G. Morgan" <no_em@il.invalidwrote in message news:8787770faf30b1bd48f393baa1a89fdbnp@mypost.invalid... <snap> <snap> Did you try <cr><lf combination? ** Posted from http://www.teranews.com...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.