• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Including a link while sending a mail

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

How do I append a link while creating a mail . So that when the user receives a mail he should be able to click .
Any answer is highly appriciated.

Thanks

Kanchan Singh
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most email clients automatically recognize URLs, and will turn them into clickable links - nothing to do on the sender's part. You can give it a try by sending yourself an URL :-)
 
Kanchan Singh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thanks for the reply
I tried sending mail to the receipent . The URL that I am sending goes as plain text .
it displays as

Click here

and not as the only Click here as a link.
Any suggestion why.

Thanks
Kanchan
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not following. What does "Click here" have to do with an URL? Did you insert it in the mail? What did you think it would do?

and not as the only Click here as a link.


I don't understand what you're trying to say here. Can you rephrase it and provide more detail?
 
Kanchan Singh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

When I am creating message part for the mail I have to send a link.
To send a url eg: "www.yahoo.com" I simply inserted this text in the message string "http://www.yahoo.com"; but this did not worked it simply printed the text without creating a navigational link. So I tried using < a href="" >.
Event his didnt helped.
This is what I have tried till now.

Regards
Kanchan
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Email clients are not browsers, so using HTML doesn't work. I guess it depends on the client; most GUI clients I've seen convert URLs to links just fine.
 
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use HTML in emails, on two conditions:
1) you specify the content type as being text/html
2) the client supports it

Now most GUI clients support HTML just fine, but people can turn that off (I have, for instance), and there also exist text-based email clients (e.g. pine, mutt) - but those are mostly used on UNIX systems.
 
roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic