is there coding for "send page by email"..?

E

Eugene

Hello.

I have been getting requests on one of my sites for an easy way to send
pages by email. Since this varies from browser to browser, is there any
"foolproof" way to code in HTML or Javascript to invoke a default email
client to send the page in the body of an email?

thanks for any pointers or resources...

Eugene
 
M

Mark Parnell

P

Paul Furman

Eugene said:
Hello.

I have been getting requests on one of my sites for an easy way to send
pages by email. Since this varies from browser to browser, is there any
"foolproof" way to code in HTML or Javascript to invoke a default email
client to send the page in the body of an email?

thanks for any pointers or resources...

Eugene

Not quite what you ask but:

<a href="mailto:[email protected]?subject=http://www.mysite.com">click to
email this address</a>

That puts the address in the title, or you can put it in the body too,
I'm not sure the exact syntax... probably "body=http://www.mysite.com"
 
R

rf

Paul Furman said:
Not quite what you ask but:

<a href="mailto:[email protected]?subject=http://www.mysite.com">click to
email this address</a>

Careful. This is a totally broken solution. Mailto itself is broken. Add
?subject... to it and it is even more broken.
That puts the address in the title, or you can put it in the body too,
I'm not sure the exact syntax... probably "body=http://www.mysite.com"

And this will break it even more.

The *only* reliable solution is to do it server side.

Cheers
Richard.
 
P

Paul Furman

rf said:
Careful. This is a totally broken solution. Mailto itself is broken. Add
?subject... to it and it is even more broken.


What is broken? I get emails from people all the time with something
similar on my page. Personally, I would be very hesitant to type a
friend's email into someone else's server. I write the address out on
the page also in case it doesn't work for them.
 
R

rf

Paul Furman said:
What is broken? I get emails from people all the time with something
similar on my page.

By mistake.

I'll bet you have never ever received an email from somebody sitting in a
library or an interner cafe where there is no imail client installed.

I'll bet you have never ever received an email from somebody using any
browser other than the standard out of the box ones that come with an
integrated email client.

And, I'll bet you never ever know about these failed email attempts.
Personally, I would be very hesitant to type a
friend's email into someone else's server.
What?

I write the address out on
the page also in case it doesn't work for them.

Where it can be quite conventially harvested by a spam bot :)

Cheers
Richard.
 
H

Hywel Jenkins

Paul Furman said:
What is broken?

Your suggestion.

I get emails from people all the time with something
similar on my page.

Ah, I see. The "It works for me" mentality. You don't know how many
messages you don't receive, or how many people can't send you the
message because they don't have an email client. This may interest
you:
http://www.isolani.co.uk/newbie/mailto.html
Personally, I would be very hesitant to type a
friend's email into someone else's server. I write the address out on
the page also in case it doesn't work for them.

Read that again.
 
P

Paul Furman

Hywel said:


Thanks, good explanation of what can go wrong & non-compliance of that
technique. Actually I use Mozilla for mail and those mail links don't
normally work for me especially when browsing IE, they try to open
outlook. So it's very unwise for people to hide the email on their page
behind a link. If the email shows in plain text, I can copy & paste it
into Mozilla, hotmail or whatever. For many IE users, it works real nice
though. There are so many of those links out there, people get used to
it & learn if it works for them or not. IMO it should be integrated into
the standards & I'll keep using it like many people, maybe they'll pick
it up some day and make it work better.

Read that again.


The article is real clear that a server side solution opens the visitor
up to having their friend's email harvested. As I said, I would never do
that unless I really really trusted the web page owner's integrity. I
resent having to contact people and companies that way. I think this
puts your web page in the same class with porn hawkers & impersonal
corporations, that's why I don't like it. Technically, I agree that it
works.

My email address is for contacting me so I don't mind showing it on my
web page. I expect lots of spam and I simply filter it out.
 
M

Mark Parnell

IMO it should be integrated into
the standards & I'll keep using it like many people, maybe they'll pick
it up some day and make it work better.

How exactly do you expect them to make it work on a computer that
doesn't have a mail client installed?
I resent having to contact people and companies that way. I think this
puts your web page in the same class with porn hawkers & impersonal
corporations, that's why I don't like it. Technically, I agree that it
works.

The best solution is to offer both - so they can send an email, or fill
in a form, whichever they prefer. At least a form will always work.
 
P

Paul Furman

Mark said:
How exactly do you expect them to make it work on a computer that
doesn't have a mail client installed?


There's a phone number next to the email <grin>.
 
P

Paul Furman

Mark said:
Is that a link as well? Make sure you put the full number, including
country code. ;-)


LOL ...no link yet.
There ought to be an internet phone dial standard, right?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top