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

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

  • 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.

  • Desktop.mail  Mailto with HTML formatted email

    I'm trying to make my application send an email with an HTML formatted table in the body. I've got the text to be visible in the email, but it doesn't format according to the tags and the tags are visible. HTML email is turned on in the email client.
    I've been searching all over for a solution. Are there some escape characters I need to use? Has anyone been able to do this or have any ideas?
    String html = "<table>";
            for (int x = 0; x < reportTable.size();x++){
                ReporterObject table = reportTable.get(x);
                html = html+"<tr>" +
                        "<td>"+table.getReportDate()+"</td>" +
                        "<td>"+table.getSchoolName()+"</td>" +
                        "<td>"+table.getTeacherSpoken()+"</td>"+
                        "<td>"+table.getGoal()+"</td>" +
                         "<td>"+table.getAchieved()+"</td>" +
                         "<td>"+table.getPercentAchieved()+"</td>"+
                         "<td>"+table.getApproaches()+"</td>" +
                         "<td>"+table.getAppointments()+"</td>"+
                         "<td>"+table.getGIEA()+"</td>" +
                         "<td>"+table.getReport()+"</td>" +
                         "</tr>";
            html = html + "</table>";
    URI email = new URI("mailto", "mailto:?to=" + emailField.getText() + " &SUBJECT=AL Reports &BODY=" + greeting + html + salutation, null);

    Please see
    http://javaalmanac.com/egs/javax.mail/SendApp.html
    for Quintessential Program to Send E-Mail.
    Then substitute line
    msg.setText(content);
    /with this one
    msg.setContent( content , "text/html");
    it should do in simplest form.

  • 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

  • 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

  • Help Needed with HTML code for Image Positioning

    Hi All,
    Need a little help with some code for positioning images.
    I initially used the following:
    This is fine, but the border automatically puts a black border around the photo - how do I change it to white? Is there a way to set margins too, to prevent the text butting up against the photo?
    I also used the following code with success:
    <style type="text/css"
    img
    float:right;
    border:2px solid white;
    margin: 0px 0px 15px 20px
    </style>
    This code works, however the problem with it is it is not individual to just one photo - it moved all my photos and on that page, I wanted one photo floated to left and another to the right.
    If I use this code, how can I make it photo specific, so that it only affects the placement, margins and borders of one photo?
    Any help would be great.
    Thanks

    CSS question, not iWeb question. Regardless, use inline CSS styling for the image. You can also wrap the image in its own tag and declare an id or simply declare an id for the img tag, then set the style for the id_name:
    <style type="text/css"
    img#id_name
    float:right;
    border:2px solid white;
    margin: 0px 0px 15px 20px
    </style>
    If you want to control the style of more than one image on a page but not all then use a class instead of an id.
    the border automatically puts a black border around the photo - how do I change it to white? Is there a way to set margins too, to prevent the text butting up against the photo?
    I believe you have discovered a solution for this according to your CSS code. You have set the border to white by looking at the code and adjusting it appropriately. Your margin is declared in the CSS also, adjust the pixels appropriately.
    Read up some more on CSS to educate yourself further. I suggest w3schools.com or a CSS forum instead of the iWeb forum if you have CSS questions. It's kind of like if you drive your auto to the supermarket so you decide to go to the supermarket and ask everyone in the produce section to help when you have car problems. All the supermarket does is provide a place to park your auto. If you have car problems then ask a mechanic. iWeb (and most of its users) doesn't specialize in code, it simply provides an area for you to place it. Granted you might get lucky and find a mechanic in the produce section of the supermarket, but you're more likely to find a specialist at an auto swap meet (or CSS coding forum)!

  • ESS WF WS04200009 Leave request with HTML (BP for SAP R/3 4.7))

    Hi there all,
    I hope somebody can help how to configure this scenario. I searched around on SDN and SAP Help but couldn't find a thing.
    I actually have 2 questions:
    1. is there somebody who has some how-to guides for the ESS scenarios especially about the leave request.
    2. Where are publishing the leave request in the portal. When i submit the leave request a got a pop-up with the message: you are not allowed to do this task.
    I hope somebody has some useful information.
    Thanks in advance
    Regards Maarten.

    Hi Maarten,
    These points may help you:
    1)All HTML templates should be imported into your IT Server.(ESS server)
    2)In tcode PFTC select workflow template WS04200009 and proceed to workflow builder.
    3) In workflow builder for each step select agent assignment and in the agent assignment attributes choose the general task option.
    Everything else is standard and should work fine.
    Regards,
    Rajeev

  • Problems with html code for video

    Hello
    I followed this instructions to add my video:
    - Upload the files in Muse < Add Files for upload ( These would add the files to your assets )
    - Object > Insert HTML :
    <video width="320" height="240" controls>
    <source src="assets/video.mp4"/>
    </video>"
    My actual code is:
    <video width="720" height="576" controls>
    <source src="assets/Gelo.mp4"/>
    </video>
    And here's the problem when I preview:
    Can someone help? What's wrong?
    Thank you

    Hi
    Please check if the files are correctly added to your site, also the format should be supported by browser so you can check with different video formats.
    Thanks,
    Sanjit

  • PLEASE Help with HTML code for email background image...

    Hi there!
    i have a background image that I want to pop into an html email widget for the email's background...  here is the web link I created in Photoshop: file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/tileabl e-metal-textures-2.html
    If anyone could please help me out that would be AWESOME!  I've attached pics of the background & I'm using Infusionsoft email builder which allows for HTML widgets.  I have a code that I use for my landing pages & webforms which works, tried that but no dice!
    Any help would be much appreciated - I'm an html newbie!
    Here is the code that I use for landing pages & works great, tried it for the email & it was a fail:
    <style>
      #mainContent .background, {
          background: url('file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/ti leable-metal-textures-2.html') no-repeat center center fixed;
        background-size: cover;
    </style>
    <script src="file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/ti leable-metal-textures-2.html">
    </script>
    <script>
      jQuery(document).ready(
          function(){
          jQuery(' table.bodyContainer').removeAttr('bgcolor');
    </script>
    thanks in advance!
    Muse

    Not sure what you expect. Your URL is absolute and pointing to a local file resource. It's not a proper relative HTML link. Beyond that it's toatlly unclear how you actually plan to load your image and where they are hosted, so nobody can tell you anything. Either way, there is an obviously painful lack of understanding of even the most basic web techniques, so the best advise anyone would give you is to spend some time with a web search and actualyl learn some of that stuff...
    Mylenium

  • Intermittent emails with blank body for single user

    Good morning!
    I have a client running Exchange 2010 on a SBS 2011 server.  There is a single user who will intermittently receive emails in which the body is blank.  The affected emails behave this way in both Outlook and in OWA.  I know the content is
    actually there because if there are multiple threads in the conversation in which an email is sent and then the user replies (this happened with a test email I sent him and then called about because the body was blank when i sent it to him) I can see the body
    in the single line preview until that particular message is expanded.  Additionally, it seems that if he continues to email back in forth in the same conversation thread, the missing content will appear once he's received an inbound message where the
    content displays properly.
    To our knowledge this only happens with inbound mail.  It happens with multiple senders, there doesn't appear to be just a single source so I haven't set up pipeline tracing since there is not a consistent problem with any one sender. Some messages
    will come in fine and others will have a blank body.
    Any advice you have would be much appreciated.

    I turned up Pipeline tracing on my email address for this user as this is the one address I can control.  For all of the emails that turned up with blank bodies in Outlook and OWA I can see the body of hte message in all of the Messaging Snapshots
    created by Exchange.

  • Help with html code for displaying flash animation

    hi all,
    i'm new to the forums :)
    not sure if this is the correct section or not.
    i run a small web based community for xboxlive players and i
    am trying to add an interactive flash file into a block on the main
    portal page
    What
    the file should do- link to sample file
    link to swf
    file- link to actual flash file
    homepage - link to portal
    homepage where the flash file needs to be, if you scroll all the
    way down the bottom of the page you will se it sort of works but im
    stumped as to how to get the full animation to show properly ?
    any help would be most appreciated.
    cheers

    hard to say just what the issue is here, since the file
    operates normally in other embeds - I guessing that it has
    something to do with your BB settings somewhere.

  • Parsing XML with html tags for style

    I'm using flash to pull in XML data, but I want to use html
    tags to be able to style the text. When I add any html, it treats
    it as a sub-node and ignores the data. Also, line breaks in the xml
    are being converted to double spaced paragraphs? The relevant code
    is basically this:
    if (element.nodeName.toUpperCase() == "TEXT")
    {//add text to text array
    ar_text[s]=element.firstChild.nodeValue;
    textbox1.text = ar_text[0];

    try to use htmlText instead text... like this:
    textbox1.htmlText = ar_text[0]
    adam

  • Need help with html code for password logins

    I'm building a site and need to have a login page where multiple users can have unique usernames and passwords and then all be redirected to the same page within the same website.  Does anyone have any code advice or tips on how this can be done in iweb.  I getting stuck at the point in the code where I have to enter the site to be redirected to upon entering the correct username and password.  I would greatly appreciate any advice or tips.  Thanks

    Its done on the server rather than in iWeb....
    http://www.iwebformusicians.com/iWeb/Comments-Password-Protect.html

  • Please help to send an email with html page in body

    I need an html page on the body of an email to send an email blast to our customers.

    HTML Emails can be a bit tricky. You can design them in Dreamweaver, but you really shouldn't send mass email through your personal email account (or your company account). That could get you blacklisted by corporate spam filters and make your email addresses pretty much useless.
    For mass email campaigns (over a few hundred email addresses) I use http://www.icontact.com.
    You can build the email right through their site (without DW) or you can import your html from DW to their service.
    Some things to keep in mind with HTML email...
    1. Use absolute links to images and files on a server you control
    2. Use a limited amount of inline css (no external or embedded css)
    3. Use table based layouts, css support is spotty at best with email clients
    4. The <head> will be stripped from a number of email clients, don't rely on anything between the <head> tags making it to your recipients
    5. Don't use an image-only email. HTML text is very important to keep it from being labeled spam, make the images secondary to the message, many email clients will not download images without the user's say-so
    6. Include an opt-out link so people can get off your list
    There are more things to watch out for, but those are the big ones. Here is some more good info: http://alt-web.com/Articles/HTML-Emails.shtml

Maybe you are looking for

  • My preview mode dissapeared

    Hi, It maybe sounds really weird, but for some reason there is no 'Preview' mode in my illustrator, only preview modes like GPU\Pixel\Overprint. How can I fix this?

  • Pl/sql using enterprise manager or toad

    A basic question : When it comes to writing PL/SQL code, testing, debugging and performance tuning(the pl/sql code itself), which of the tools are better (The OEM or would it be toad). I am looking for advantages that either or both of them have. Any

  • Require "acrostan.itw" file from Acrobat 7 Standard CD

    My CD is damaged. Can someone send to me by email please? Send to [email protected] Please confirm sent by replying to this thread. Thanks

  • Goods release is not taking place

    Dear Friends, i am getting error while releasing goods from plan order to production order. my case is as follows while converting pl.order to production order, goods movement is not taking place.even though when we save the entries, production order

  • Skype 7 freezing on full screen

    Hi! I have on my PC (Win 8.1) and on my Notebook (Win v. 7.0.0.102 too. The Skype freezing on both device when i switch to full screen. It's unusable...