Add html in e-mail code in plsql

i wanted to add html text as well as some images in following code of E-mail in PL/sql
code is:
create or replace PROCEDURE TEST_EMAIL
(mailhost IN VARCHAR2 DEFAULT 'smtp.gmail.com',
sender VARCHAR2 DEFAULT '[email protected]',
recipient IN VARCHAR2 DEFAULT '[email protected]', -----code change , removed ')' add ','
port_number IN NUMBER DEFAULT 465
IS
mail_conn UTL_SMTP.CONNECTION; -----code change added mail_conn UTL_SMTP.CONNECTION;
BEGIN
mail_conn := UTL_SMTP.OPEN_CONNECTION(mailhost, 465);
UTL_SMTP.HELO(mail_conn, mailhost);
UTL_SMTP.MAIL(mail_conn, sender);
UTL_SMTP.RCPT(mail_conn, recipient);
UTL_SMTP.OPEN_DATA(mail_conn);
UTL_SMTP.WRITE_DATA(mail_conn, 'This is a test message.' );
UTL_SMTP.WRITE_DATA(mail_conn, 'This is line 2.');
UTL_SMTP.CLOSE_DATA(mail_conn);
UTL_SMTP.QUIT(mail_conn);
END;
please suggest me
thanks in advance..!

Sending HTML text - this is supported by UTL_MAIL. You simply need to format the Mime body correctly. Sample code in {message:id=3914506}.
Sending embedded images are a tad more complex. And not something I would try with UTL_MAIL - UTL_SMTP allows you to define the Mime body yourself, without UTL_MAIL doing that (poorly) for you. The type of Mime body to generate is explained in {message:id=9676442}. Example of using UTL_SMTP to send an multi-part Mime body in {message:id=4593735}.
Another example of a Mime body including a uuencoded image is in posting {message:id=4402801}. See message {message:id=10364104} for how to encode an image into ASCII as an attachment for a Mime body.

Similar Messages

  • Can I add html elements in Mail?

    Is it possible to add html elements in an email? If so, is there like a link that let's one drop in
    basic html? I searched but saw about reading, not
    about writing...thanks, ann

    Hi Ann, it not completely straight forward, but here's how you do it...
    http://www.macosxhints.com/article.php?story=20060725015919426

  • How can I add html in a mail ?

    Hey,
    I'm using mail 2 with OS X 10.4
    I'd like to send emails with html , does anyone know how tot do that?
    Thanks in advance,
    Barbara

    Hello,
    Maybe this can help?
    http://discussions.apple.com/message.jspa?messageID=6659683#6659683
    Regards,
    Bill

  • How do i add html code to my muse site? I want pintrest to verify my site.

    how do i add html code to my muse site? I want pintrest to verify my site.

    Hi,
    There are multiple ways in which you can add the HTML code to your site. Few methods are :-
    1) Copy your HTML code, In Muse -> Select Objects-> Insert HTML . Paste your HTML code on the page.  Please reer to this screenshot :- http://prntscr.com/52vprn
    2) If you want to add the HTML code in the Head section of your page, Go to Page Properties-> Metadata-> HTML for <Head> .    Please refer to this screenshot :- http://prntscr.com/52vpx5
    Hope this helps
    Regards,
    Rohit Nair

  • Add html code in web dynpro application

    Hi
    Is there a method to add HTML Code in web dynpro application so that it works same as HTML works in browser
    I have to add a clock in my application How can i do that
    Best regards
    Suresh

    If you're on NetWeaver CE or otherwise use Wb Dynpro for Java 7.2 or higher, you could use the WebWidget control, see http://help.sap.com/saphelp_nw73/helpdata/en/49/bfa3b2e55657bae10000000a42189d/frameset.htm
    Otherwise, I'm afraid your only option is to use an IWDIframe component in your WDJ project, embedding the HTML.. Be carefulo though, the IWDIframe component is deprecated (since each server roundtrip forced a reload of the IFrame it was pretty useless)
    Hope this helps!
    Best regards,
    Robin van het Hof

  • Is it possible to add html code to iweb

    I need to add some special elements to a webpage, and I was curious if I could add any special html code besides the ones I have found in the menu (counter, links, etc)
    Thanks

    This is iWeb's glaring weakness. I need the ability to add html for blog rolls, haloscan comments on blogs, etc.
    Currently, I use RapidWeaver, but the drag and drop design elements in iWeb are far superior. However, the ability to add raw html code is going to hold iWeb back.
    Add this, Apple, and you've got a winner.

  • Add HTML Code to Flash File?

    Hello All,
    I am building a website, but am fairly new at it on flash... Am I able to add HTML code to the file? I am trying to add a code which creates a map from mapquest...?
    <iframe style="height: 270px; width: 450px;" src="http://www.mapquest.com/embed#a/maps/lisneyland:1313+S+Harbor+Blvd:Anaheim:CA:92802:U S:33.8127:-117.9154:address::1/m::12:33.8127:-117.9154:0:::::1:1:1::/io:0:::::f:EN:M:/e" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe><br/>

    Flash only supports a minimum number of html tags and they can only be implemented in textfields using the TextField.htmlText property.  "iframe" is not a supported tag.

  • Dynamically add html elements by code

    i got an jsf componenttree which is created dynamically by java code.
    how can i add html elements like new line (
    ) by java code?

    Use h:outputText with the escape attribute set to false.

  • Created my own subscription box in animate, how to embed the mail code into the symbols?

    So i think  I am on the right track, I am trying to embed my mailchimp code into my animate site, and I decided to build my own text box and button in animate and convert them into symbols. Both text box and button or inside of a bigger symbol so that they stay in a responisive design. however when I tryin and plug in the mail code it just puts the subscription box behind my symbols. Is this because html code doesnt work in animate or am I just really stupid and am doing it all wrong? Ha probably the second part, . Any help would be great!.
    Animate CC code
    <div id="Stage_Center2_Subscription">
                    <div id="Stage_Center2_Subscription_subscribe"></div>
                    <div id="Stage_Center2_Subscription_Submittbutton">
                        <div id="Stage_Center2_Subscription_Submittbutton_Submitbutton">
                            <div id="Stage_Center2_Subscription_Submittbutton_Submitbutton_RoundRect2"></div>
                        </div>
                        <div id="Stage_Center2_Subscription_Submittbutton_text">
                            <div id="Stage_Center2_Subscription_Submittbutton_text_Text">Join</div>
                        </div>
                    </div>
                    <div id="Stage_Center2_Subscription_Textbox">
                        <div id="Stage_Center2_Subscription_Textbox_textbox">
                            <div id="Stage_Center2_Subscription_Textbox_textbox_RoundRect"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
    </html>
    Mailchimp code
    <!-- Begin MailChimp Signup Form -->
    <link href="//cdn-images.mailchimp.com/embedcode/slim-081711.css" rel="stylesheet" type="text/css">
    <style type="text/css">
              #mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
              /* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
                 We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
    </style>
    <div id="mc_embed_signup">
    <form action="http://kandied.us3.list-manage.com/subscribe/post?u=4525b320bd81872705a48ea05&id=4743a970b 1" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
              <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
        <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
        <div style="position: absolute; left: -5000px;"><input type="text" name="b_4525b320bd81872705a48ea05_4743a970b1" value=""></div>
              <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
    </form>
    </div>
    <!--End mc_embed_signup-->

    Hi, Kyle-
    What's happening is that you're inserting static HTML into the base HTML of your current project.  We treat any third party static HTML as underneath all managed elements.  You can find out whether or not it's being treated as static by hovering over the element in the elements panel:
    One thing you can do is to dynamically insert your mailchimp code into a div by changing the html() property of that div using jQuery.  So, something like this:
    In compositionReady:
    sym.$("myDiv").html("INSERT MY FORM CODE HERE");
    Hope that points you in the right direction!
    -Elaine

  • Can I Send HTML Messages in Mail?

    I am trying to send html messages in Mail, and also to add a small html code to my signature. Is this possible? If so, how? When I put in straight code, it just remains text. I know I receive html mail, so....?

    RTf with Tiger Mail is HTML but the Mail.app does not include an HTML composer/editor.
    In order to send basic text as HTML instead of Plain Text when using RTF for message composition requires changing the font or color of existing text in a new message and/or when selecting bold, underline or italic for a word or a portion of existing text. This part I don't understand since selecting RTF for message composition should send the font and font size selected under Fonts & Colors for the Mail.app preferences as HTML by itself.
    You can use an HTML editor/composer of choice (Apple's Text Edit application can be used for this) and save the completed HTML document. Open the saved HTML document with Safari and after confirming the layout, etc. with Safari, at the menu bar go to File and select Mail Contents of This Page and the rendered page with Safari will be copied to a new Mail.app message which will be sent in its entirety.
    You can set up a "template" this way by saving the HTML message as a Draft. Utilize a user created "On My Mac" location mailbox named Templates and transfer this message from the account's Drafts mailbox to the Templates mailbox. Select this templates message and at the menu bar, go to Message and select Send Again entering all recipients and making any changes, etc. The original template message will not be altered.
    Regarding creating a Mail.app signature with HTML code, check this link.
    http://allforces.com/2006/04/14/css-signatures/
    Don't know for sure at this point but it appears this may become easier with the Mail.app under Leopard.
    http://www.apple.com/macosx/leopard/mail.html

  • How can you add an image in Mail without being an attachment?

    How can you add an image in Mail without being an attachment?
    In otherwords I'd like to put my logo in the email not as an attachment but as an image.
    Is there a simpel solution to this problem?

    PBN1 wrote:
    How can you add an image in Mail without being an attachment?
    You don't.
    It's not possible. The e-mail protocol is designed for text; anything else has to go as an attachment.
    Different mail clients (such as Mail.app, the mail client bundled with Mac OS X) may have different ways of handling such attachments, but they are still attachments. Each mail client has its own rules and methods, so one may display a picture as if it were in the body of the message, but another client may do something completely different.
    A way of faking it is to format your message in HTML (which is a kind of text). The image is hosted on a remote server, not added to the message; instead, you include a link to it in the body of the message, as you would when building a web page. (This is also what the two tips helpfully provided by X423424X do, except that the link to the image is added in the signature, rather than the body of the message.) What exactly happens to it is, again, at the discretion of the mail client. In my case, for instance, displaying images in HTML messages is turned off, and will stay resolutely off.

  • How to add html?  The HTML snippet does not work.  Whatever I add, (a "like button, SEO key words, etc.), does not appear on the site once published.

    I am trying to add html to my website created in iWeb, (a "like" button, for example).  I paste the HTML language into the HTML Snippet window, but it does not show up ion my published page.  Any advice?

    I have put code into two html snippets, (per facebook instructions).  Should they go together?
    First snippet:
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "http://connect.facebook.net/en_US/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    Second snippet:
    <div class="fb-like" data-href="http://www.bonniecrockettconsulting.com" data-send="true" data-width="450" data-show-faces="false"></div>
    Thanks!

  • Is it possible to add HTML inside of a cfgridcolumn

    Hello All,
    I have been searching extensively for an answer, but have
    not yet found it and figured I would post here. Thanks to everyone
    who takes the time with this :).
    My question is this: Is it possible to add HTML to a
    cfgridcolumn?
    My form looks something like this:
    <cfform format="flash" etc..>
    <cfgrid name="mygrid" quer="myquery">
    <cfgridcolumn name="aColumn" heade="myHeader">
    </cfgrid>
    </cfform>
    I have been using Actionscript to adjust the height of the
    column since I am appending multiple columns into one. I can add
    new breaklines and do word-wrapping. The code looks like this:
    function formOnLoad(){
    contactList.variableRowHeight = true;
    contactList.getColumnAt(2).labelFunction = setLabel;
    contactList.getColumnAt(2).wordWrap = true;
    function setLabel(item:Object, columnName:String): String {
    return item.companyName + '\n' + item.description +
    '\n\nMember Since: ' + item.memberSince;
    All I want to do is have a link in the grid (for example I
    want the Company Name to be "clickable" by the user), much like the
    Developer Exchange grid in
    the
    Adobe website.
    Any help would be appreciated.

    Hi,
    if you don't have more tha one clicable event per row, just
    use the row to fire the click event and open the link that way.
    Otherwise, i have no idea what the allowed tags are in a grid
    cell.
    sorry
    tim

  • Html rich e-mails

    I have been given the task to make html rich e-mails for my
    company. We only have 3 Macs in a company of 400+. When I make the
    html files I use Dreamweaver and make all the img src absolute.
    Then I use outlook on a pc to send them to the whole company.
    My problem is that when I get back to my Mac and check my
    e-mail it does not show up but if I go to a coworker’s pc, I
    can view it in Outlook.
    Is this a code issue or do I need to set up my preferences in
    Entourage differently?
    null

    Hi,
    Sorry for delayed response.
    In order to troubleshoot your issue, I would like to clarify the following things:
    1. Please check if the issue also exists via OWA.
    2. If so, please clarify which users have the issue, all users or users who were migrated?
    3. If the issue doesn't occur when you used OWA, please verify if the issue happens on Outlook online mode or in cached mode.
    What's more, here is a helpful KB for your reference.
    Images are missing using Outlook in online mode with Exchange 2013
    http://support.microsoft.com/kb/2862739/en-us
    Hope it helps. If you need further assistance, please feel free to let me know.
    Best regards,
    Amy

  • Add HTML in workflow

    Hi All,
    Can we add HTML content in the workflow?
    We have workflows on lead and Opportunity. These workflows used to send mail based on certain condition.
    Is it possible to add HTML content to the message body of the workflow?
    We would like to make few lines as bold and italic

    Not at this time. I would recommend that you submit a enhancement request to CRM On Demand customer care.

Maybe you are looking for