| | |
hyperlink in java mail
![]() |
•
•
Join Date: Oct 2007
Posts: 26
Reputation:
Solved Threads: 0
hi everyody,i need ur help.I am able to send subject and text as mail to the recepient but iam unable to send hyperlinks in th text.plz suggest me how to send
Bala Gangadhar Marripeedi m.balagangadhar@gmail.com
Simply include the url. Whether or not that url becomes a "hyperlink" depends on the tool being used to view the mail.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
•
•
Join Date: Oct 2007
Posts: 26
Reputation:
Solved Threads: 0
when i send the url (http://192.168.1.21:8080/tarka/resentemail.jsp) to gmail,it working fine and showing the link.but wen i send it to yahoomail,link is not shown but simply a plain text.
my code
String text=" Hello welcome,
click here to enjoy http://192.168.1.21:8080/tarka/resentemail.jsp";
message1.setText(text);
Is this the way.plz suggest. I want to send links in between text.hope u help me
my code
String text=" Hello welcome,
click here to enjoy http://192.168.1.21:8080/tarka/resentemail.jsp";
message1.setText(text);
Is this the way.plz suggest. I want to send links in between text.hope u help me
Bala Gangadhar Marripeedi m.balagangadhar@gmail.com
Then ask yahoo mail if there is any thing special you have to do to get yahoo to create "hyperlinks". I don't know why you're asking here, this is not anywhere even close to a Java issue.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
•
•
Join Date: Oct 2007
Posts: 26
Reputation:
Solved Threads: 0
ok atleast plz tell this.
Iam unable to send mail rediffmail using javamail.can u plz tell me y
Iam unable to send mail rediffmail using javamail.can u plz tell me y
Bala Gangadhar Marripeedi m.balagangadhar@gmail.com
No, as I have no idea what you mean by "rediffmail".
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
you may have better luck if you send the email as hypertext or have a html attachment.
try just enclosing the url in tags as such
String text=" Hello welcome,
click <a href=\"http://192.168.1.21:8080/tarka/resentemail.jsp\"> here</a> to enjoy ";
see how something like that works.
I don't know what class you are using but I would assume that you can send a HTML attachment, That will be displayed correctly in most mail applications and then any links you send will be displayed correctly.
try just enclosing the url in tags as such
String text=" Hello welcome,
click <a href=\"http://192.168.1.21:8080/tarka/resentemail.jsp\"> here</a> to enjoy ";
see how something like that works.
I don't know what class you are using but I would assume that you can send a HTML attachment, That will be displayed correctly in most mail applications and then any links you send will be displayed correctly.
•
•
•
•
you may have better luck if you send the email as hypertext or have a html attachment.
try just enclosing the url in tags as such
String text=" Hello welcome,
click <a href=\"http://192.168.1.21:8080/tarka/resentemail.jsp\"> here</a> to enjoy ";
see how something like that works.
I don't know what class you are using but I would assume that you can send a HTML attachment, That will be displayed correctly in most mail applications and then any links you send will be displayed correctly.
Edit: But, once again, this is still a mail tool problem and has absolutely nothing to do with Java.
Last edited by masijade; Nov 7th, 2007 at 6:38 am.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
Similar Threads
- urgent help needed for BE-PROJECT ideas in computer science (C)
- how to send email using jsp (JSP)
- i need help (Java)
- Tell us about yourself! (Community Introductions)
- which language ? (Computer Science)
- Good Idea - Bad Brain! (Software Development Job Offers)
- cannot click hyperlink in outlook express e-mail (Web Browsers)
Other Threads in the Java Forum
- Previous Thread: JDBC Connection Pooling : Network Adapter could not establish the connection
- Next Thread: Need Help with JFrame
Views: 3324 | Replies: 9
| Thread Tools | Search this Thread |
Tag cloud for Java
add android applet application arguments array arraylist arrays c# c++ chat class classes client code component constructor convert coordinates data database db desktop detection eclipse error event exception file forloop fractal givemetehcodez graphics gridlayout gui helpwithhomework homeworkassignment html ide image images inheritance input integer interface j2me java javafx jframe jpanel jtextarea jtextfield key lazy linked linked-list list loop looping method methods mobile netbeans newbie node number object oracle output page parameter pattern pixel problem programming read recursion remove return robot scanner search server service set size sms software sql string swing system text text-file threads time timer translate tree user






