473,832 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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********@toyo ta.com"
enctype="text/plain">

<br>Subject:<IN PUT TYPE="text" NAME="subject">

<br>Message:<IN PUT 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& tasCaseEditorPo rtlet_actionOve rride=%2Fportle ts%2Ftas%2Fcase Editor%2Fselect SymptomSubcompo nent&_windowLab el=tasCaseEdito rPortlet">TA
CASE</a>
-->
<!-- This body text totally fails. Lotus Notes does nothing! Make it
one char shorter and it works.
<a
href="012345678 911234567892123 456789312345678 941234567895123 456879612345687 91">TA
CASE</a>
-->

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

<br>BCC:<INPU T 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"'e d
string recognized.

Insight?

Thanks!
TimJowers

Jul 24 '05 #1
5 29717
ti*******@gmail .com wrote:
Example code:
<FORM method="post" action="mailto: ti********@toyo ta.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="thelinkit self.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
29926
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 href="mailto:nobody@nowhere.com ?subject=Your web site &body=This%20is%20the%20%body!"> click here</a>
4
7909
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 way Pls help me TP
5
18798
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 information into an email. I can create a mailto link in the page using innerHTML, but it seems silly to click a button, a link appears, then click on the link. How do I execute the mailto command using JavaScript?
3
2231
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 said This is what I want to do. I have a simple html form with a an radio button option group, a listmenu, a text box, and a text area. What I would like to do is have a user fill out this form, and hit a button that sends the results via...
6
7409
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, how can I insert the page URL in the email body without having to manually enter each URL for each MAILTO: tag? Is there a variable that can be used inside the MAILTO: tag that automatically inserts the current page's URL into the body of the...
3
1922
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 that I could use response.redirect for this, but I get a "the page could not be displayed" error in my window and not the outlook window. I am initiating this from the onclick of a button. It does work with a HyperlinkButton, but I need to build...
7
15882
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 String, _ Optional ByVal Subject As String = "", Optional ByVal Body As String = "") As Boolean Dim bAns As Boolean = True Dim sParams As String sParams = EmailAddress If LCase(Strings.Left(sParams, 7)) <> "mailto:" Then sParams = "mailto:" &
5
5663
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 hyperlink. It seems that javascript takes the & as the end of the body where I use it to separate my variables. Anyone know how to deal with this? "<script...
2
5154
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
9794
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10780
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10497
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10539
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9319
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5623
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3968
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3077
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.