How to Send an Email in HTML Format

I'm trying to send an email to Outlook in HTML format but it's not working. As I have limited knowledge of HTML, can anyone please show me how to do this?
Your help is highly appreciated.

Hello,
  You can use function WWW_LIST_TO_HTML to convert list into HTML format. Then use function SO_NEW_DOCUMENT_ATT_SEND_API1 to send it as attachment.
Thanks,
Venu

Similar Messages

  • Urgent Help. How to send the email in HTML format in Version 4.6c

    Hi,
      Please help me how to send a mail in HTML format with logo and specified format. Is it possible to send the SAPscript or Smartform in HTML format to external mail address.  The logo and the format is very important in this e-mail.
      quick response will help me better.
    Regards,
    Naidu

    Here is a sample program which emails HTML in the body.  Of course you can put an HTML tag in there that would point to the logo on some server(internet).  Notice we are just putting the HTML code in the MAILTXT table,  This is how we do it at my company.
    report zrich_0002.
    data: maildata   like sodocchgi1.
    data: mailtxt    like solisti1 occurs 10 with header line.
    data: mailrec    like somlrec90 occurs 0  with header line.
    start-of-selection.
      clear:    maildata, mailtxt,  mailrec.
      refresh:  mailtxt, mailrec.
      perform build_text_message.
      perform build_receivers.
      perform send_mail_nodialog..
    *      Form  BUILD_TEXT_MESSAGE
    form build_text_message.
      maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test Subject'.
      mailtxt  = '<html>'.
      append mailtxt.
      mailtxt  = '<head>'.
      append mailtxt.
      mailtxt  = '<title>Untitled Document</title>'.
      append mailtxt.
      mailtxt  = '<meta http-equiv="Content-Type" content="text/html;'.
      append mailtxt.
      mailtxt  = 'charset=iso-8859-1">'.
      append mailtxt.
      mailtxt  = '</head>'.
      append mailtxt.
      mailtxt  = '<body>'.
      append mailtxt.
      mailtxt  = '<div align="center"><em><font' .
      append mailtxt.
      mailtxt  = 'color="#0000FF" size="+7" face="Arial,'.
      append mailtxt.
      mailtxt  = 'Helvetica, sans-serif">THIS'.
      append mailtxt.
      mailtxt  = '  IS A TEST </font></em><font' .
      append mailtxt.
      mailtxt  = 'color="#0000FF" size="+7" face="Arial,'.
      append mailtxt.
      mailtxt  = 'Helvetica, sans-serif"></font>'.
      append mailtxt.
      mailtxt  = '</div>'.
      append mailtxt.
      mailtxt  = '</body>'.
      append mailtxt.
      mailtxt  = '</html>'.
      append mailtxt.
    endform.
    *      Form  BUILD_RECEIVERS
    form build_receivers.
    *  mailrec-receiver = '[email protected]'.
      mailrec-rec_type  = 'U'.
      append mailrec.
    endform.
    *      Form  SEND_MAIL_NODIALOG
    form send_mail_nodialog.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'HTM'
                put_in_outbox              = 'X'
           tables
                object_header              = mailtxt
                object_content             = mailtxt
                receivers                  = mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.
    Regards,
    Rich Heilman

  • How to send out email in HTML format instead of Plain text?

    Can anyone help? Or any website with that information?
    I am trying to send out email using javamail. But i want it to be in HTML format so that i can set font size,coulor and so on.
    Thanks in advance if you have any clue or solution.

    look at this page:http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html

  • How to view my email in HTML format instead of Plain Text format?

    I receive plenty of HTML format emails everyday.
    but when I check those emails on iPhone, all emails were automatically converted to Plain Text format.
    I wish to view my emails in HTML format (just as it shown in Outlook)
    with graphic (jpep loaded, instead of attachment), and Text formatting.
    Can anyone suggest me any solution?
    or do Mail apps in iPhone does not support HTML format?
    Pls guide.
    Thx.

    To get a source code for jsp mail visit http://www.jspinsider.com/tutorials/jsp/javamail.view

  • How can I view emails in HTML format or at least o...

    Dear Nokia,
    I've recently purchased the Nokia e90 to use for email using Vodafone push email (push.vodafone.nl) however the emails are in plain text format and not even the links are accessible.
    I have the folowing questions:
    1) is it possible to view pushed emails in HTML format
    2) is it possible to load links from emails in the browser
    3) is it possible to select a piece of text from an email to copy and paste it in the browser (form field)
    Best Regards,
    Jan Jaap
    Message Edited by oakley on 18-Mar-2008 04:43 AM

    Well, that doesn't work for me as it reads from pop or imap.
    I want to be able to use the push email service of my provider for which I pay a monthly fee. It will make emails come in like SMS.
    At least the links should be openable somehow. I receive admin emails and need to select a link to perform an admin task. I actually was hoping that the communicator was going to make it more easy for me. My HTC X7500 broke down and aldough it worked very well for internet browsing, I could only use gmail via the internet browser as outlouk wasn't working very well for me. While the x7500 is being fixed I decided to purchase the e90 for email (communication) purposes but now it seems the email functionality is limited to sms a like without the 160 charlimit.
    Is it not possible at all to open links in incomming emails within the nokia messenger?
    And what about copying text from an email (into the browser)
    Thanks in advance for your help and tips.
    Message Edited by oakley on 18-Mar-2008 08:43 AM

  • Sending workflow email in HTML format

    Hi Experts,
    I'd like to know if it is possible to send an HTML email using the workflow email step and HOW. Sample is displaying the simple table in HTML format:
    <table border="1">
    <tr> <th>Header 1</th> <th>Header 2</th> </tr>
    <tr>
    <td>row 1, cell 1</td>
    <td>row 1, cell 2</td>
    </tr>
    </table>
    Since the hyperlink (<A HREF="http://www.google.com">Google</A>) is working, I want to know if a table will work too.
    My last resort creating a separate program that uses SO_NEW_DOCUMENT_SEND_API1.
    Regards,
    Dexter

    Hello,
    Using SO_NEW_DOCUMENT_SEND_API1 is not a last resort; it's a necessity if you want to send anything but the simplest email from workflow.
    regards
    Rick Bakker
    hanabi technology

  • Sending an email in HTML format

    in order to change the mail format from PDF to HTML format, first I create  the smartform with the relevant content , secont I create a new class and implement the method with the code mentioned in the blog "sending HTML Email from SAP CRM/ERP"  and I defined at the action profile in IMG (I didn't
    add nothing but the method mentionedin the blog).
    the appointment is saved and the mail is sent in HTML format . but an error message is send to the user at the crm_ic tranzaction. the error message is BS(001) " no status object is available for &".
    the message is raised from program LCRMBSVAF14 / form status_read.
    if I put break-point at the message line(86)  , the message is shown and the crm_ic tranzaction is stoped
    but if I put break-point a few lines before(line no 33)  and track each step the tranzaction function correct and the crm_ic show  an o.k. message  , I can not find a reason why the tranzaction process with break-point and don't pass with out it.
    thank you .

    rj_oregon wrote:
    If you like email me out-of-band and I can send you a full sample .txt file of "hello world" that takes 3K in plain text, 256KByte in rich-text, most of it injected.
    If it looks anything like the sample here, that's unnecessary:
                             Test_Email_Adblock_enabled.txt          
    If what you see is substantially different, though, I'd be interested in seeing it. (I can't e-mail you, though, as I don't know your e-mail address. You can find mine, though, by looking at the contact link at the bottom of any page on my site, listed in my profile here.)
    This is not a feature in adblock, I view it as a bug.
    I agree, it should not be doing that.
    My suspicion is that AdBlock works by adding this code to every page you view, thus rendering the advertising elements invisible. However, in the case of OWA, it must be inserting that code in a bad place, where it shows up in the message. Mail servers will be prone to rejecting such a message, probably because some of the strings that code uses to identify these ads might look malicious. There's nothing that I can see in that code that's actually malicious, though... just a bunch of CSS conditions that make matching elements invisible.

  • How to send a mail in html format from a send mail workflow node ?

    Dear all,
    Do you know if it is possible to send an e-mail in HTML format (instead of RAW) from a "send mail" node in a workflow ?  ... if "yes", please, let me know.
    (I need to do that because I want to use the "href" tag to insert an hyperlink inside the e-mail)
    - I haven't found any parameter to specify the format of the e-mail.
    - Inside SCOT I tried to change the parameters for the SMTP node... without success.
    - I don't want to use a task calling the FM SO_OBJECT_SEND.
    Nicolas

    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

  • Send email in html format

    Hello everybody,
    First of all:
    I already searched via internet but couldn´t found an example which helped me to solve my problem. Anyway I believe it must be very simple what I want to do.
    My Problem: I want to send an email in html format, but until now everything I tried didn´t worked. Please help me. What do I have to do?
    I already tried a lot of code typing. For example this one:
    this.resolveNode("#event").submit.target="mailto:"+email_adressen+"subject="+subject+"&Body="+body+"&MessageFormat=HTML";
    But nothing is working, you always see the html tags in the text - they have no effect at all :-( .
    Best regards,
    Paolo

    I was trying to do the same thing...I found this on the java.sun.com website somewhere. Hope it works out for you.
    try {
    String host = "";
    String from = "";
    String to = "";
    String fileAttachment = fileName;
    // Get system properties
    Properties props = new Properties();
    // Setup mail server
    props.put("mail.smtp.host", host);
    // Get session
    Session session1 =
    Session.getInstance(props, null);
    // Define message
    MimeMessage message =
    new MimeMessage(session1);
    message.setFrom(
    new InternetAddress(from));
    message.addRecipient(
    Message.RecipientType.TO,
    new InternetAddress(to));
    message.setSubject("");
    // create the message part
    MimeBodyPart messageBodyPart =
    new MimeBodyPart();
    //fill message
    messageBodyPart.setText("");
    Multipart multipart = new MimeMultipart();
    multipart.addBodyPart(messageBodyPart);
    // Part two is attachment
    messageBodyPart = new MimeBodyPart();
    DataSource source =
    new FileDataSource(fileAttachment);
    messageBodyPart.setDataHandler(
    new DataHandler(source));
                   messageBodyPart.setFileName(fileAttachment);
    multipart.addBodyPart(messageBodyPart);
    // Put parts in message
    message.setContent(multipart);
    // Send the message
    Transport.send( message );
    }catch (Exception e){
    System.err.print("Mailing error:");
    System.err.println(e);

  • How to send the content as HTML in email?

    Hi,
    I need to develop a program which sends email in HTML format.
    Can u advice me how to do this????
    Thanks,
    Neeraj

    Hi,
    You simply set the doc_type to 'HTM' instead of the default 'RAW'.
    Regards,
    Darren

  • Java.mail sending email in html format

    I trying to send emails from my java program, I ve managd to send text mails, I want to send email in html format is there a way of doing that and how
    thanks for your help

    Thanks a lot it is working now but I think that sending mails in text format is the best way since there isn't a way of knowing whether the recepient can handel html mails

  • Sending email in html format.

    i am trying to send email in html format. the following is my sample code. it's just sending plain text. how should i send html file in email?
    String message_body = "<a href=\"test.html\">click here</a>";
    MimeMessage msg = new MimeMessage( session );
    // From Address
    msg.setFrom( new InternetAddress( fromAddress ) );
    // TO Address
    InternetAddress recipient_Address = new InternetAddress( toAddress );
    msg.addRecipient(Message.RecipientType.TO, recipient_Address);
    // Subject
    msg.setSubject( subject );
    // MimeBodyPart object for message body part
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText( message_body );
    // MimeBodyPart object for file to attach
    MimeBodyPart mbp2 = new MimeBodyPart();
    Multipart mp = new MimeMultipart();
    // create the Multipart and add message body and file to attach.
    mp.addBodyPart(mbp1);
    // add the Multipart to the message
    msg.setContent(mp);
    msg.setSentDate(new Date());
    // send the message
    Transport.send(msg);
    i'd appreciated it...

    msg.setContent(mp, "text/html");Have I put this in the right place? You need to apply it to your body text, at any rate.

  • Send emails in html format

    Hi All,
    My requirement is to send emails. I am using javamail and it works fine. But the body of the email should be in table format.
    I am planning to use Html as below. But don't know how to combine html in java. Is there any other way of achieving it ? Please let me know if I am not clear.
    <htm>
    <table border="1">
    <tr>
    <td bgcolor="red">Header</td>
    </tr>
    <tr>
    <td bgcolor="yellow">Sub Header1</td>
    <td bgcolor="yellow">Sub Header1</td>
    </tr>
    <tr>
    <td bgcolor="green">Values</td>
    <td bgcolor="green">Values</td>
    </tr>
    </html>

    so, do I need another method which tells Java whereto output the HTML Tags ?
    The method writes to a PrintWriter defined somewhere,
    you can also pass the PrintWriter as third argument
    to the method.
    To generate a String containg the whole HTML Dokument
    you would write something like:
    StringWriter stringWriter = new StringWriter();
    PrintWriter printWriter = new
    PrintWriter(stringWriter);
    writeStartTable();
    writeStartRow();
    writeCell("BlaBla", "green");
    printEndTable();
    printWriter.flush();
    printWriter.close();
    stringWriter.close();
    String content = stringWriter().toString();
    BodyPart mailBody = new MimeBodyPart();
    mailBody.setContent(content, "text/html");
    I was succesful in sending mail using HTML format. Thanks for ur reply.
    But if I try send the mail in HTML format along with an attachment, the MIME type defaults to "text/plain".
    Is there a way to set the MIME type to "text/html" when I send mail with an attachment.
    Please help . Let me know if I am not clear

  • Send email in HTML format with attachment.

    I want to send out email in HTML fromat and attach a file to it. I know how to send HTML email but I cant attach a file to it.
    Can anybody help me with that?

    What kind of attachment?
    1) A file not related to the HTML
    or 2) a file used by the HTML (i.e. a GIF)?
    If 1) see here http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html#SendingAttachments
    If 2) see here http://forum.java.sun.com/thread.jsp?forum=43&thread=242791
    (make sure you read all the thread as inline attachments are mentioned at the end)
    SH

  • Send Email in HTML Format with Javamail.

    GOD BE BLESSED!
    Hello dudes,
    i create a jsp page let me send emails from a database using the API Javamail.
    But these emails when i send then, goes in text format only, and i want to send emails in HTML format too. Anyone can help me?
    I think the Javamail API can send in HTML format.
    thanks and sorry, my english is basic but i think you understand. ;)
    Adler Medrado

    I was trying to do the same thing...I found this on the java.sun.com website somewhere. Hope it works out for you.
    try {
    String host = "";
    String from = "";
    String to = "";
    String fileAttachment = fileName;
    // Get system properties
    Properties props = new Properties();
    // Setup mail server
    props.put("mail.smtp.host", host);
    // Get session
    Session session1 =
    Session.getInstance(props, null);
    // Define message
    MimeMessage message =
    new MimeMessage(session1);
    message.setFrom(
    new InternetAddress(from));
    message.addRecipient(
    Message.RecipientType.TO,
    new InternetAddress(to));
    message.setSubject("");
    // create the message part
    MimeBodyPart messageBodyPart =
    new MimeBodyPart();
    //fill message
    messageBodyPart.setText("");
    Multipart multipart = new MimeMultipart();
    multipart.addBodyPart(messageBodyPart);
    // Part two is attachment
    messageBodyPart = new MimeBodyPart();
    DataSource source =
    new FileDataSource(fileAttachment);
    messageBodyPart.setDataHandler(
    new DataHandler(source));
                   messageBodyPart.setFileName(fileAttachment);
    multipart.addBodyPart(messageBodyPart);
    // Put parts in message
    message.setContent(multipart);
    // Send the message
    Transport.send( message );
    }catch (Exception e){
    System.err.print("Mailing error:");
    System.err.println(e);

Maybe you are looking for

  • WebAnalysis Error: Error occured while opening document. Document ID = {0}

    Hi Experts, I am having an issue while opening a web analysis dashboard report. When I try opening it, web analysis runs for about 15 mins & then throws following error: Error occured while opening document. Document ID = {0} The report opens with it

  • Mac Book Air, cannot exit Voice Over at initial start up

    New Mac Book Air; initial power-up; selected English language; 'Welcome' screen defaults to 'United States'; cannot manually 'Continue' to register and set up; 'esc' results in starting the Voice Over tutorial; 'Command+F5' results in seeing/hearing

  • Getting formula error

    While validating the formula ,getting this error ,please help me all essbase gurus Syntax error in input MDX query on line 2 at token '@MEMBER' Average Gross Severity Formula is : CASE When IS ([Reporting Date].CurrentMember,[Current ME Avg]) Then Av

  • If I can't use my iPod classic to install my .dmg file what about internal?

    I have my .dmg of my leopard disc and was wondering if I can partition my internal drive in two and Install leopard as if the second was an external? Would that work? Or would it be unstable or something.

  • How do you empty emails all at once?

    Do you really have to delete each email one by one? There is no clear all? No, empty trash? One by one, that it....