Inserting hyperlinks (http: and mailto:) in text/plain email JavaMail

Hello
I am trying to write some very lightweight email classes based on the JavaMail API.
I regularly get emails where the header shows a MIME of text/plain and yet there are both http: and mailto: hyperlinks in the message body. I would like to emulate this, but I've looked all day for how to do this. Please could someone point me in the right direction?
Thanks

If the body is text/plain, then per definition there are no hyperlinks in the content.
The e-mail client can (and usually does) format URLs as hyperlinks when it displays that content, 'though. You could probably use regular expressions to recognize anything that looks like a URL in the text and format that accordingly.

Similar Messages

  • I just updated my software to 5.1.1. and when i text my email shows up on the receiver's phone

    i just updated my software to 5.1.1. and when i text my email shows up on the receiver's phone

    Until your phone number is verified and activated you won't be able to select it in Caller ID. (You will probably notice that it says "waiting for activation'" under iMessage.)  This has been widely discussed in this forum and there is no one solution that works for everyone.  If you search the forum for "iMessage waiting for activation" you'll get a number of posts on this; you may find a solution that will work for you.  Some of these include:
    Go to Settings>General>Date & Time, make sure Set Automatically is set to On.
    Be sure you are able to send and receive messages.
    Call your carrier to see if they are blocking premium texts or third party texts.
    Also make sure in Settings>General>Date & Time that Set Automatically is turned to ON.  If not turn it on then go to Settings>General>Reset>Reset Network Settings
    Change the DNS servers on their wireless router to  8.8.8.8 and 8.8.4.4 (these are Google's Public DNS servers)

  • How to send images and other colored text in email body

    Hi
    We are using SAP CRM 4.0 and we would like to send email to our customers using actions configured for activity. Our objective is to send Marketing Emails containing <u>Images and Color texts</u> in the BODY OF THE email and not as a PDF attachment.
    The only relevant provision we could see in SCOT is either Text or PDF. On using text , we are loosing all images and color. The PDF option works , but the email generated is a blank email with PDF document as attachment.
    We want the matter to be inserted in the body of the email and not as attachment.
    Please do let us know if any one has faced similar situation and is there a resolution.
    Thanks and Advance.
    Regards
    Sachi

    Are you pasting in the HTML code?
    You can't use the formats in the CRM editor to set bold text, etc.  You have to use the HTML code and have set the Form up as Internet mail
    http://help.sap.com/saphelp_crm40sr1/helpdata/en/82/dbfd38ccd23942e10000000a114084/content.htm
    Here's the first screen setting for my test email:
    Form          Y_TRADE_SHOW_INVITATION        / Trade Show Invitation (Test)
                                                                                    Form Usage              1 Internet Mail (SMTP)                        
        Text Type               1 HTML                                        
        IBU Scenario                                                          
        Customer Scenario                                                                               
    Page Format             DINA4         Status    Created                                                                               
    Characters Per Inch     10.00                                         
        Lines Per Inch          6.00                                          
        Style                   SYSTEM SAP Smart Forms Default                                                                               
    Created By         MANECITO            Changed By         MANECITO   
         Date               01/16/2007          Date               05/22/2007 
         Time               09:49:12            Time               18:01:51   
    then, your email has to have the HTML tags
    A bare minimum is your email has to have the <HTML> tag at the top, but it's advisable to be sure you have a more complete setup like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    .style1 {
         font-size: x-large;
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-weight: bold;
    .style2 {
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-weight: bold;
    .style5 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; }
    -->
    </style>
    </head>
    <body>
    ENTER YOUR HTML MESSAGE HERE
    </body>
    </html>

  • JEditorPane: transforming between caret position in html and text/plain

    Hi all,
    I've done quite a bit of searching, and found problems similar to this one, but not this exactly, so I'll try asking it here.
    I have a JEditorPane with HTMLEditorKit, which I'm using for a WYSIWYG text editor. When the user wants to insert something, say an image, I get the caret position and insert a String into the document's underlying text.
    The problem is that if we are the WYSIWYG mode, the caret position isn't the same as the caret position in text/plaain mode.
    So if the underlying text is
    <html>
      <body>
         Some text
      </body>
    </html>the user will just see "Some text". If they place the caret between "Some" and "text", editorPane.getSelectionStart() will return '5'. But I want to insert my text at position '16' in the plain text.
    Is there a simple way to go back and forth between these two positions? Or to have getSelectionStart() to return the index relative to the text/plain mode?
    Thanks!
    Tim

    Very poor that no one answered this one.
    Did you still need the answer?
    I have 'a' answer. But not a complete one.
    In fact I only found this in search for an answer for my problem:
    http://forums.sun.com/thread.jspa?threadID=5409216&tstart=0
    Did you actually just test out what you knew so far to test what happens?
    If you were to use the HTMLEditorKit.insertHTML function, it just wants the visual caret position. So '5' would have been reasonably correct for you.
    I was doing something like this:
                   HTML.Tag tag = null;
                   Pattern p = Pattern.compile("\\s*\\<\\s*(\\w+).*", Pattern.MULTILINE|Pattern.DOTALL);
                   Matcher m = p.matcher(text);
                   if (m.matches())
                        tag = HTML.getTag(m.group(1));
                   kit.insertHTML(doc, offset,// +1
                                  text, 0,// 0
                                  0,// 0
                                  tag);
    Assuming you were inserting a tag, my code there checks what tag it is, and if that is known by the java implementation, assigns that to 'tag', so that the element is correctly inserted.
    If it is not known, we just use 'null'. Which for me wasn't such a great result.
    In fact, nothing really was a great result, as with the default java implementation being buggy (so far as I can see) it inserted to the wrong position and caused all sorts of anomalies.
    Hope you worked it out. And if you did, and have a better result than what I have, maybe you can let me know what you did!
    Sincerely,
    sean

  • DeliveryException: invalid content type for SOAP: TEXT/PLAIN; HTTP 302 Move

    Hi everyone,
    Hello all,
    I have an RFC->XI->Web Service (SOAP) synchronous scenario.
    I'm trying to send a message from the the RFC, and in the message monitoring (SXMB_MONI) I'm getting this error message:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Inbound Message
      -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/PLAIN; HTTP 302 Moved Temporarily</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I have as the TARGET URL: http://webservices.iter.dk/calculator.asmx?WSDL
    SOAP ACTION: http://www.iter.dk/webservices/calculator.asmx/Add
    As the content type in the WSDL file: application/text
    What could be wrong? thanks...
    Felipe

    Hi Felipe
    This i think is due to incorrect address or redirection failure which is one of the major reason for 302 as per my knowledge.
    You try to post the content and test it without using XI. Download SOAP UI and test it once and let me know
    http://www.soapui.org/
    helpful blog
    Troubleshooting - RFC and SOAP scenarios *** Updated on 20/04/2009 ***
    Thanks
    Gaurav

  • Invalid content type for SOAP: TEXT/PLAIN; HTTP 200 OK

    Hi,
    I am working on RFC - XI - WebService scenario. tested web service with soapUI and works fine. but while configured in XI getting below error.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/PLAIN; HTTP 200 OK</SAP:AdditionalText>
    <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks,
    Mahesh

    Hi Stefan,
    Imported webservice in external definition and the web service has 3 messages in it.
    1. header
    2. requestdoc
    3. response.
    while creating message interface, i can select only one input message (here i have to pass values for both Header & request doc). if i create 2 separate message interfaces one for header & one for requestdoc, how can i add both of them as target messages in meesage mapping? it gives me error if i add multiple target messages because the mode is synchronous.
    How do we map when we have multiple messages (header & request) in a web service?
    I created a new message type with header & requestdoc in it, and used in mapping. Do you think the above problem is occuring because of this?
    My webservice structure looks like below.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header>
          <soap:RequestHeader>
             <soap:variable1></soap:variable1>
             <soap:variable2></soap:variable2>
             <soap:variable3></soap:variable3>
          </soap:RequestHeader>
       </soapenv:Header>
       <soapenv:Body>
          <soap:SOAPRequest>
             <RequestDoc></RequestDoc>
          </soap:SOAPRequest>
       </soapenv:Body>
    </soapenv:Envelope>
    Thanks,
    Mahesh

  • I also have a .csv file with the name of a jpeg in one column and a text description of each jpeg in a second column. Is there a way to automatically insert one jpeg (photo) and its corresponding text, each pair on one page, into a Indesign document?

    I also have a .csv file with the name of a jpeg in one column and a text description of each jpeg in a second column. Is there a way to automatically insert one jpeg (photo) and its corresponding text, each pair on one page, into a Indesign document?

    I would also recommend to write the description into the meta data. This would allow to place a text frame above the image and it is possible to add meta information and file name automatically together with the image, when you place it or even in a prepared template.
    Meta data information can be written easily in Bridge in the Meta File Workspace.

  • How can I read the bootstrap files and extract the fragment-URLs and fragment-numbers in plain text?

    How can I read the bootstrap files of any HDS Live stream and extract the fragment-URLs and fragment-numbers in plain text?
    Could it be that it is some kind of compressed format in the bootstrap? Can I uncompress it wirh  f4fpackager.exe? Could not find any download for f4fpackager.exe. I would prefere less code to do so. Is there something in Java of JavaScript, that can extract the fragment-numbers?
    Thank you!

    Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
    Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave.

  • Insert a spreadsheet and word docs into a PDF with hyperlinks

    I have a spreadsheet index with hyperlinks to 455 single page word docs. I want to make a single pdf by inserting the spreadsheet followed by the word docs.
    Is there a way of having the hyperlinks recognize the inserted word docs pages inside the pdf via the original hyperlinks, or do I need to remove the hyperlinks before inserting the spreadsheet and then do bookmarks for all 455 pages? Or some other method?

    James,
    I doubt that will work. But it should be easy enough to find out. If you
    print to pdf from ID, I guarantee is will not work. If you export from
    ID, I doubt it will work, but ask in the ID forum, since the creation
    does not depend upon Acrobat.
    Mike

  • Getting error"invalid content type for SOAP: TEXT/PLAIN; HTTP 503 Not Ready

    Hi,
    I am getting the below error in Comminication channel
    'Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: invalid content type for SOAP: TEXT/PLAIN; HTTP 503 Not Ready: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 503 Not Ready
    SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 503 Not Ready

    Hello,
    Have you checked if you are passing the correct content type by validating the generated SOAP request against the format the receiver is expecting? You can try using an HTTP diagnostic tool to analyze the HTTP header e.g fiddler.
    Hope this helps,
    Mark

  • Email attachment and text/plain

    Well, the Mail app on iPhone really needs improvement.
    I've got my iPhone for 4 days only, and I already have 3 things (at least) that IMHO need to be improved:
    1. Someone forwarded me an email, and that email now appears as an .eml attachment, which iPhone seems to be incapable to handle.
    2. I friend of mine sent me an email that iPhone is unable to display at all. I get the error message like "Mail does not know how to display text/plain" -- come on guys at apple! Only a few years ago plain text (i.e., ASCII) was the only format! And it is the most easiest to display! ...
    3. Spam - the iPhone should have the same spam filter than Mail on my laptop. Oh, and the same rules and folders I have on my laptop, please!
    I hope apple is reading this.
    Regards,
    Gabriel.

    inbedded is not a word.

  • Is there a way to insert a Ai graphic into msWord and the graphic text be searchable in msWord?

    Is there a way to insert a Ai graphic into msWord and the graphic text still be searchable in msWord? I would like the text in my Ai graphic to be searchable once the graphic is inserted in msWord. I have tried different Ai exports, but all come into msWord as pictures. Is there a way to keep the Text Layer in my Ai file searchable in msWord.

    Which version of Illustrator are you using?
    Which version of Word are you using?
    What OS?
    Do you have a recent version of Acrobat?

  • Text symbol for automatic insertion of file and page data

    In Visio I have a footer on my wireframe pages that includes text symbols referencing data about the file (document name, last edited) and also the number of the page. These symbols automatically update as the data changes. I can do something similar in InDesign and Word.
    I cannot seem to find a way to do this in Fireworks. Perhaps I just don't know what the feature is called?
    --Jim

    Apologies, but you weren't particularly clear on the problems you were having in your prior post, so I was just making sure you actually found the shapes.
    You didn't ask about customizing the shapes either. If you had, we might have been able to save you the time. Auto shapes have very specific editable on-canvas features. The rest is controlled under the hood by JavaScript. It's quite likely that - had you opened the JS file - you could have made some of those edits. That's the cool thing about these shapes. You CAN change things.
    I don't pretend to be a JS guru, but when I opened the JSF file, I was able to find the variables for changing font color, size, fill color and whether the text automatically expands to fill the box, in few minutes.
    On the canvas, I can use the Subselection tool to change the width of the box and its fill, as well as the size of the text block.  I can use the customize command for the shape itself to place each piece of information on a separate line.Will you get a warning message when you resize the rectangle? Yes, because you are altering the base parameters of an object controlled by JS. Does it have a negative impact on  the shape? No.
    As for autonumbering of Pages, I isaid that this is an automatic feature in FW. You have no control over it in the current version and as I said, I do not beleive the numbering is carried over to a PDF. Beside each page name you will see a 2 digit number - that is what I was referring to.
    If you do not manually name your pages, FW will also name them onthe sequence in which they were created, Page 1, Page 2 etc. FW will NOT change that name if you change the order of the pages; it sill only update the sequence number.
    As you said yourself, you are new to Fireworks. Don't throw in the towel because of one negative experience, which could have been resolved with more knowledge of the software, or additional questions in the forum. And remember that Fireworks is not just a wireframing tool; it is also a design tool.
    Message was edited by: Jim_Babbage

  • Inserting Hyperlinks in Pages Documents

    I am writing a document in Pages with the intent of posting it at blogsite where I have editing privileges. I cannot, however, figure out how to highlight a portion of the text and link that text to a URL address. Can this be done with Pages?

    Here is what is occurring when I attempt to insert a hyperlink in a Pages document:
    1. When I click on the Inspector button and check the hyperlink box the following URL address appears (as though it were a default) http://livepage.apple.com/
    2. This URL address will also appear in the Pages document that I am working on. I then have to return to the document and remove this URL address before continuing.
    3. If I delete this particular URL address from the Link Box and paste in the URL address I want, the highlighted text in the document appears with a rectangular shaped box around the words I want hyperlinked but there is no link established.
    4. These events are all quite puzzling because I had assumed that inserting a hyperlink was a fairly easy process. I looked in the Pages' Help section to verify my understanding before I even made my initial attempt to insert a hyperlink. After continually failing to do so, I posted a message that Dennis was kind enough to respond to but I am still pretty much stuck.

  • Inserting hyperlink - Cannot find the 'Source'

    I am having trouble locating the 'source'  when inserting a hyperlink to a page. I am doing as I have been taught but its just not working, I have tried inserting link in a number of ways such as  Insert Hyperlink.... Also using the propertie manager to do it that way but cannot find the source anywhere. I have a deadline for tomorrow and managed to link homepage to second page whilst in a tutorial. I am not using a live web domain it is just for mock purposes.
    Please help.

    Thanks for some reason it seems to be working now for reasons unknown... But.. My text navigation bar links have been inserted as new layers rather than div tags so now the link text is showing on top of the 'Client Page' text and looking a mess I will add the codes now to see if someone can help ????
    Basically I need to hide the link that is sitting ontop of the image layer which is the nav bar... If that makes sense. I am new to dw so sorry for the long winded way explaining.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    #Layer1 {
    position:absolute;
    width:10px;
    height:179px;
    z-index:1;
    left: 65px;
    top: 75px;
    #Layer2 {
    position:absolute;
    width:798px;
    height:178px;
    z-index:2;
    left: 100px;
    top: 48px;
    background-image: url(images/Header.jpg);
    #Layer3 {
    position:absolute;
    width:65px;
    height:20px;
    z-index:3;
    left: 157px;
    top: 260px;
    background-image: url(images/Home-Link-Text.jpg);
    #Layer4 {
    position:absolute;
    width:65px;
    height:20px;
    z-index:4;
    left: 265px;
    top: 260px;
    background-image: url(images/Profile-Link-Text.jpg);
    #Layer5 {
    position:absolute;
    width:75px;
    height:20px;
    z-index:5;
    background-image: url(images/Client-Link-Text.jpg);
    left: 400px;
    top: 260px;
    #Layer6 {
    position:absolute;
    width:131px;
    height:20px;
    z-index:6;
    background-image: url(images/Our-Vehicles-Text.jpg);
    left: 550px;
    top: 260px;
    #Layer7 {
    position:absolute;
    width:111px;
    height:20px;
    z-index:7;
    background-image: url(images/Contact-Us-Text.jpg);
    left: 750px;
    top: 260px;
    #Layer8 {
    position:absolute;
    width:810px;
    height:390px;
    z-index:8;
    left: 95px;
    top: 294px;
    background-image: url(images/Profile-Body-Text.jpg);
    body {
    background-color: #b3a7a7;
    a:link {
    color: #999999;
    .style1 {color: #FFFFFF}
    body,td,th {
    color: #FFFFFF;
    -->
    </style>
    </head>
    <body>
    <div class="outerwrapper">
      <div id="Layer2"></div>
      <div id="Layer3"></div>
      <div id="Layer4"></div>
      <div id="Layer5"><a href="Client Page.html" class="style1">Client Page.html</a></div>
      <div id="Layer6"></div>
      <div id="Layer7"></div>
      <div id="Layer8"></div>
    </div>
    </body>
    </html>

Maybe you are looking for