Mail with HTML BODY content?

Hi,
We seem to have a little problem with sending mails wtih HTML content, we have a "Link" in the mail body to be sent , so we are using html tags <a href=""link"></a> so that the mail receipient see the URL as a link ....
The actual code used is given below:-
l_body_html := ' <html>
<body>
<p>Hi,<br><br>You have been provided access to <a href="http://URL.com:20000/pls/htmldb/f?p=102"></a>'||
'</p> </body> </html>'
HTMLDB_MAIL.SEND(
P_TO => '[email protected]',
P_FROM => '[email protected]',
P_BODY => l_body_html,
P_BODY_HTML => l_body_html,
P_SUBJ => 'Access Details.');
What is wrong here , except the link of URL the rest of the text is coming in the mail body...
regards
Naveen

Naveen,
This is an HTML problem. You have provided no text for the anchor.
You probably want something like:
&lt;a href=http://URL.com:20000/pls/htmldb/f?p=102>Click Here&lt;/a>
And to be proper HTML, you should enclose the href value in double quotes, as in:
&lt;a href="http://URL.com:20000/pls/htmldb/f?p=102">Click Here&lt;/a>
Joel

Similar Messages

  • How to send a mail with HTML body from Oracle

    Hi Team,
    Can somebody guide me how to send a mail with HTML body from oracle.
    Here is the piece of code i am trying to send a mail.
    procedure SEND_MAIL is
    cursor c_1 is select * from table_name;
    l_mail_id varchar2(40);
    -- ls_mailhost VARCHAR2(64) := Mailhost;
    ls_from VARCHAR2(64) := ‘[email protected]
    ls_subject VARCHAR2(200);
    ls_to VARCHAR2(64);
    l_mail_conn UTL_SMTP.connection;
    ls_left_menu_name VARCHAR2(64);
    ll_emp_num number(8);
    begin
    for i in c_1 loop
    begin
    l_mail_conn := UTL_SMTP.OPEN_CONNECTION('IP');
    UTL_SMTP.HELO(l_mail_conn, 'IP');
    UTL_SMTP.MAIL(l_mail_conn, LS_FROM);
    UTL_SMTP.RCPT(L_mail_conn, LS_TO);
    UTL_SMTP.DATA(l_mail_conn,'From: ' ||ls_from || utl_tcp.crlf ||
    'To: ' ||ls_to || utl_tcp.crlf ||
    'Subject: ' ||ls_subject|| utl_tcp.crlf);
    UTL_SMTP.QUIT(l_mail_conn);
    exception
    when no_data_found then
    null;
    when others then
    RAISE_APPLICATION_ERROR(-20000, 'Failed to send mail due to the following error: ' || sqlerrm);
    end;
    end loop;
    end;
    Thnx

    Hi Nicolas!
    Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
    If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
    SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
    Hope this helps!
    Regards
    Geir

  • Sender Mail Adapter - html body mail

    Hello Everybody,
    I'm facing this strange problem:
    I receive an e-mail with an XML attachment with a sender mail adapter and I use the PayloadSwapBean to let the attachment be the real payload as explaned in this blog
    <a href="/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step:///people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    If I receive mail in text/plain format everything works fine, but as soon as I get an email with an html body (content-type: multipart/alternative; boundary=...) it doesn't any more (In the XI  Monitor i still se 2 payloads, but I can only open the one with the attachment).
    In this case the mapping is stuck in "scheduled for outbound process" status and the XI queue gets blocked with status "SYSFAIL" giving this error "Access via 'NULL' object reference not possible".
    Is there any way to force XI digest also HTML e-mails?
    As always, thanks a lot for your help.
    Daniele

    Thanks Akshay,
    this really worked!
    Fyi I'm using XIPAYLOAD option. I added in the module chain, before the PayloadSwapBean, a MessageTransformBean with this parameter:
    Transform.ContentType - text/plain;charset=uft-8
    this way I can also see the massage body in the monitornig.
    Hope this will be helpful for someone else.
    Regards,
    Daniele

  • Email with html body and a pdf attachment

    Hi,
    i try to send a email with html body and one attach in pdf
    in release 4.6c using the SO_DOCUMENT_SEND_API1.
    I've put the html in the txt table and the pdf in bin table but i obtain the following situation:
    1) with only the html in the body i see a right email in html
    2) with the html body AND the pdf attach i obtain a empty mail with two attach.
    what can i do ? I's possible to do this.
    Thanks in advance.

    Contact my basis guy is a problem !!
    maybe a need a function similar to SX_OBJECT_CONVERT_RAW_TXT to convert raw (containing html text) into real html ?
    my view V_SXCONV contain:
    ALI     HTM     2     SX_OBJECT_CONVERT_ALI_HTM
    ALI     PS     4     SX_OBJECT_CONVERT_ALI_PRT
    ALI     RAW     1     SX_OBJECT_CONVERT_ALI_RAW
    ALI     TXT     2     SX_OBJECT_CONVERT_ALI_TXT
    ICS     RAW     8     SX_OBJECT_CONVERT_ICS_RAW
    INT     RAW     8     SX_OBJECT_CONVERT_INT_RAW
    OBJ     HTM     2     SX_OBJECT_CONVERT_OBJ_HTM
    OTF     PCL     3     SX_OBJECT_CONVERT_OTF_PRT
    OTF     PDF     1     SX_OBJECT_CONVERT_OTF_PDF
    OTF     PS     2     SX_OBJECT_CONVERT_OTF_PRT
    OTF     RAW     9     SX_OBJECT_CONVERT_OTF_RAW
    RAW     SCR     6     SX_OBJECT_CONVERT_RAW_SCR
    RAW     TXT     7     SX_OBJECT_CONVERT_RAW_TXT
    SCR     OTF     1     SX_OBJECT_CONVERT_SCR_OTF
    TXT     INT     7     SX_OBJECT_CONVERT_TXT_INT
    URL     HTM     2     SX_OBJECT_CONVERT_OBJL_HTM
    thanks a lot.

  • How to send a mail with rich text content like using outlook

    Hi All. I have a serious problem. When we send the mail from
    outlook express or yahoo, we can send the mail with the text appearing
    in the mail with bold font , with different colors, underlined etc.
    If i type this kind of text in any word processor and mail that content through java mail then the message should be received by the recepient with all that bold,color and underlines etc as it is. Can anybody please help me in this case ASAP.

    Go to this site and download the htmlArea Javascripts. Embedd them in your HTML and it will turn your normal HTML Text Area into Rich Text Area. Your real code will include all HTML tags. For example if you select some text and make it bold , the real HTML output will look like <B>YOUR TEXT </B>. So i guess your recipient should be able to receive HTML contents.
    http://www.interactivetools.com/products/htmlarea/

  • Certain emails showing with no body content

    Hello,
    I have an odd issue with (IMAP) mail on both the iPhone and iPad. Since moving to a new web host (Fasthosts), email coming in from certain places - currently Flickr, Amazon and Groupon - have no body content; in the list of messages, the sender and subject are displayed, followed by 'This message has no content'. The messages appear properly using the host's web-based mail client (OWA 2007) and Mac mail.
    I've been in a lengthy (and mostly frustrating) support call with Fasthosts, who are adamant it's not them, despite the fact the issue only started when I set up the account with them. They say it must be the iPhone at fault. All I can find on the web is reference to the other issue where spurious email is shown with now sender or subject, which despite being similar, is not the problem I have.
    If anyone can shed some light on this, I'd be grateful, as it's annoying the **** out of me!
    David

    Does your email template has body tag, if so you need to make sure you are filling the body section in your workflow.
    -sFred

  • Mail not showing body content

    Since upgrading to yosemite the Apple mail client is not showing the body content of some of my emails.
    If I look at the message source nothing is displayed.
    If I use Outlook there is no issue and the mail is properly displayed so the issue is not with the email of my mail server.
    Are there any new security controls within the mail client  and it has picked up the mail as suspicious?
    Any ideas?
    Regards,
    Ed

    Upgraded to Yosemite on both my computers. Have same problem on my iMac, but not on my MacAir.

  • Send a mail with a body and attachment

    Hi guys!!!!
    I have a RFC -> XI -> Mail Scenario!
    I'm able to send text in the body of the mail. I'm able to send text as an attachment. But I'd like to send both (text in the body and other text as an attachment). How can I do this?
    thanks in advance
    Julio

    First, I'd like to thank all the replies! And Jagesh, I solved my problem reading the thread you told me.
    I created a message as follow:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
         <Subject>test</Subject>
         <From>test_source @ abc.com</From>
         <To>test_target @ abc.com</To>
         <Content_Type>multipart/mixed; boundary="AaBb--984dfgeSSd3532"</Content_Type>
         <Content>*AaBb984dfgeSSd3532*
    Content-Type: text/plain
    Hello, this is sample data.
    *AaBb984dfgeSSd3532*
    Content-Type: text/plain;name="CSV_data.csv"
    abc
    </Content>
    </ns:Mail>
    In addittion to this, I configured Mail channel as follow:
    Content encondig = none
    Keep Attachments = false

  • Applets foregrouded with html body background color

    In our application we are using applets while loading applets ,applets controls are foregrounded with html background color thats why we are unable see applets properly.
    please give us suugesion, how can we solve this problem.
    thanks in advance..

    The HTML editor is the 'FCK Editor' of old, and the config for it is stored on the server where all of the javascript for your server instance is stored. You can modify much of the configuration of the HTML editor. The documentation for modifying the configuration of FCKEditor is here:
    http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_File

  • Email Integration Scenario - Issue with email body content

    Hi All,
    We have an Email to File Scenario. PI is connected to Outlook server using Sender Mail Channel using POP3. We are able to fetch and display emails correctly for most of the received emails.
    However we notice that for Email sent from few Mail server like Yahoo mail, Gmail, Hotmail, we are not getting the Email content correctly.
    Issue is happening with Emails sent in HTML/Rich text format (containing Formatting and without any attachments). In the receiver system we see the email is converted to Plain text format. If the same email is sent with some attachment / Embedded Image, we get all the Formatting correctly in Receiver System.
    A closer look at Pimon we found the following:
    1. When Email is sent with Formatting (without any attachment/ image) in Pimon we see that it creates 2 Payloads (screenshot attached)
    2. The First Payload - MainDocument contains the Email content in XML format, but is missing the Email formatting data in it.
    3. The other Payload - ([email protected]) contains the actual Formatted Email Content.
    Not sure why the formatting data is missing from MainDocument. Instead its coming in other payload. Due to this we are not able to display correct data at receiver end as we parse the MainDocument as our Input Payload Stream
    Note: We cannot use payload swap bean, as it will swap the data for all the incoming emails which we don't want.
    Anyone faced similar issue? Steps to get proper formatting data in MainDocument..
    Suggestions / Inputs will be highly appreciated.
    Thanks,
    Azhar

    Azhar,
    We cann't influence the behavior of Gmail, Hotmail. But have to get HTML as main payload, so we have to swap payload (not always, in some cases based on a condition). Please try below Java mapping. In Operational Mapping set "Read Attachments".
    package javaapplication1;
    import java.io.*;
    import com.sap.aii.mapping.api.*;
    import java.util.Collection;
    public class NewClass6 extends AbstractTransformation {
        @Override
        public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException {
            try {
                InputStream inputstream = transformationInput.getInputPayload().getInputStream();
                OutputStream outputstream = transformationOutput.getOutputPayload().getOutputStream();
                byte[] b = new byte[inputstream.available()];
                inputstream.read(b);
                //Loop over attachments and if attachment name starts with 'payload-' swap it with main payload. Edit below logic as needed.
                Collection<String> listAtt = transformationInput.getInputAttachments().getAllContentIds(true);
                for (String att : listAtt) {
                    if (att.startsWith("payload-")) {
                        b = transformationInput.getInputAttachments().getAttachment(att).getContent();
                outputstream.write(b);
            } catch (Exception exception) {
                getTrace().addDebugMessage(exception.getMessage());
                throw new StreamTransformationException(exception.toString());

  • Mailto with html body for UIApplication sharedApplication

    Hi There,
    I would like to have my iPhone application be able to email out in html format some local data. After looking at it I have two questions:
    1) What is the best way to construct large strings i.e html content. Appending hundreds on lines to an NSString seems cumbersome. In Java I would use a StringBuffer but I cant't find the C counterpart.
    2) Once I have this html content can I simply pass it as the '?body'var in the mailto url of the UIApplication sharedApplication? It's a lot of data and may not have the correct %20 UTF coding.
    Any ideas or examples on the best way to do this if it is at all possible? Ideally I would like to send an email with an attachment but the iPhone SDK prohibits that currently.
    Many Thanks All

    Hi,
    Experience does help, of course, but I do look up things on the web. For example, for this issue I double-checked http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/toc.htm as I actually use VARCHAR2s for the email body texts, so didn't even know you could use a clob! download.oracle.com usually has the information I need, so use inurl:download.oracle.com in a google search
    Andy

  • E-mail with Subject, Body and Attachments

    Hi,
    I am currently completing a project to create an intranet site for employees.
    We need functionality to send email confirmation of a sale to customers. I'm going to start by saying i have zero web design experience and have only been doing this for 3 months heavily using the ribbon with minimal coding. So the situation is:
    I have a button that i want employees to be able to click and it opens a new email from outlook with pre-populated body text (which is static and never changes) and 3 attachments also never changing. The employee will then enter the clients email address
    and add their name to the email. 
    I have managed the email and subject no bother. However the body text i want to enter needs to look like this:
    "TRAVEL INSURANCE
    I confirm cover is in place.
    If you need any assistance whilst abroad call: 0800 000 000 for 24 hour assistance or contact our claims department on:
    0800 000 000. This office can be contacted on: 0800 000 000
    asking for extension number:XXXX to speak to myself.
    Yours Sincerely
    XXXXXXXXXXXX
    Travel Adviser
    Please Note: This e-mail was sent from a notification-only email address that cannot accept incoming e-mail. Please do not reply to this message."
    I've managed to get some of the body text in but no formatting. I've managed line breaks using %0D%0A but if i add a double break to get a clear line there doesn't seem to be enough room and it begins to lose the body text. 
    Thats issue 1.
    Issue 2 is how you manage to attach files. Everything i look at says you need to do your own piece of coding which is far beyond my capability for this project!
    Any help would be fantastic.
    this is my code so far:
    [email protected]?subject=Travel%20Confirmation%20Email&body=TRAVEL INSURANCE%0D%0A%0D%0AI confirm cover is in place.%0D%0AIf you are in need of any assistance whilst you are abroad please contact our 24 hour emergency
    helpline on: (0000) 000 000 or the claims department on: 00000 000 000. If I can be of any further assistance, please contact our office on 0000 000 0000, extension number: XXXX.%0D%0AThank you for insuring with us.%0D%0AYours sincerely%0D%0AYOUR NAME%0D%0ATravel
    Advisor
    Thanks,
    K

    Hi,
    According to your description, you might want to let users be able to send email with attachments.
    As you might prefer a codeless solution, I would suggest you create a
    SharePoint Designer workflow to achieve it.
    A solution can be like this:
    1. Create a list “ListA” for storing the three attachments which you want to add into your email, it will be referenced in the workflow;
    2. Another list “ListB” with two columns “ClientEmailAddress” and “ClientNames”, it will be used to collect user input and sent to the workflow;
    3. Create a SharePoint Designer workflow and attach to the “ListB”, set the workflow to be started when there is new item added in the current list.
    By doing this, users can simply add a new item in “ListB” with two columns filled, an email will be sent out as you required.
    In SharePoint Designer workflow, we can send email contains predefined format easily with the available workflow action in SharePoint Designer.
    About how to
    send email in SharePoint Designer workflow:
    https://support.office.com/en-us/article/Send-e-mail-in-a-workflow-11d5f9dd-955f-412c-b70f-cde4214204f4
    http://www.mpspartners.com/2012/05/spdesigner2010workflowsendingemailstomultipleusersfromasinglepeoplepickerfield/
    To be able to
    send email with attachments, you would like to install this solution in your environment, it provides a useful custom workflow action you will need:
    http://sharepointstuff.codeplex.com/releases/view/66258
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • JavaMail: mails with empty body

    Hi all,
    we want to send mails via JavaMail in our webapp. This works most of the time but sometimes it does not. After some time all emails are received without body.
    There are no Exceptions in the log files. We got JavaMail to "debug" to stdout, no error messages there.
    Redeploying the webapp does not work. Restart of weblogic helps.
    We are using weblogic 8.1.2 on SuSE 8.1 with jdk 1.4.2_05.
    Any ideas?
    Regards,
    Alex

    Hi,
    just for the records:
    It was a problem of Systinet WASP 4.7.x. Should be fixed with 5.0.
    Regards,
    Alex

  • Mail with either no content or just plain "gibberish"

    Getting mail on my iPhone 4 that is either no content or is a bunch of disconnected words and/ or sentences.
    Any suggestions to block? or eliminate?

    It's not just you, I can't authorise my phone. It seemed to go down just after I started the update (it wasn't my fault though). I am using chrome, and it does not seem to be a firewall issue, or the bannerblock issue that I read about else where, since I dont have that program installed. Strange though how the support forum is still running. If I go to http://www.apple.com/support I get nothing, but googling topics allows me to see em.

  • Mail with empty body

    I have been accessing my email accounting using mail. It was working fine until about a week ago when the bodies of the emails were not showing up. I can access the whole email fine using webmail. I also have another account also using mail which hasnt had any problems. I tried accessing this account using another computer with os 10.4 and mail 2.0 and had no problem. I also tried recreating the email account but that didnt fix the problem. Any ideas as to what could be affecting just one account on my computer?

    I have been accessing my email accounting using mail. It was working fine until about a week ago when the bodies of the emails were not showing up. I can access the whole email fine using webmail. I also have another account also using mail which hasnt had any problems. I tried accessing this account using another computer with os 10.4 and mail 2.0 and had no problem. I also tried recreating the email account but that didnt fix the problem. Any ideas as to what could be affecting just one account on my computer?

Maybe you are looking for

  • Dent in Macbook pro 15 inch

    I have a dent in my Macbook Pro 15 inch, early 2011 It is located near the battery indicator on the side of the laptop. How much will it approximately cost to fix this? This dent caused small gap between the unibody and the bottom case. Thanks a lot

  • JSTL connect to DataBase

    Hi , I am using JSTL to connect to MYSQL DB , but it fails , any one could help , according to documentation I wrote the following tag (I am not sure about the value of the attribute "url" ): <ui:panelGroup binding="#{Main.groupPanel1}" id="groupPane

  • 3 facts and 4 dimensions

    Hi, In my RPD I have 3 facts and 4 dimensions and the joins defined are as below Physical layer - All joins are FK and inner (1:N) FACTA-------------- Dim1,Dim2,Dim3,Dim4 FACTB-------------- Dim1,Dim5,Dim6 FACTC-------------- Dim1,Dim7,Dim8,Dim9 BM l

  • SRM non transportable objects

    Hi, I have a request from our SRM Consultant to change the below objects to non-transportable objects.  I would like to know the best process in handling this.  It is not clear to me as to what objects these are.  Some of them are tables, as I found

  • How i can istal google toolbar to firefox 3.6.21 ?

    Icant use google toolbar in firefox ?