Send HTML formatted e-mail unsing main?

hi,
Can I send my HTML formatted newsletter using Mail?
When I paste in the html into Mail it shows up as the raw HTML text.
I want to be able send out my HTML formatted newsletter.
Mail can receive HTML formatted e-mails ...can it send them too?
How?
thank you.

Hello mnorton,
Perhaps this article can be of assistance. As the article suggest, I would test it out first by emailing a copy of it to yourself.
http://bytes.com/topic/macosx/insights/825931-quick-way-send-html-emails-apple-m ail-mail-app
B-rock

Similar Messages

  • How do I  Send HTML formatted email  using  class in  javax.mail pkg

    How do I Send HTML formatted email using javax.mail pkg class ?i mean is thr any class available in this package to do this ?

    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.

  • How to send HTML Format Mail using Java Mail in oracle 9i Forms

    Dear All
    could you please tell me how to send HTML Format Mail using Java Mail in oracle 9i Forms and how to implement the java mail ?
    if it is possible, could you please send me the sample code? please very urgent
    Thanks
    P.Sivaraman

    Hello,
    <p>Here is a Form sample.</p>
    Francois

  • 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 to SEND HTML formatted mail??

    How do I put HTML formatted text into an email I want to SEND? -- "Paste as HTML" in edit menu is dimmed, and I can't get it to un-dim... I want to paste formatted text from an HTML editor into an email... can I do this with Mail, or do I need some other app to do this?

    AHHHH
    What you can do to make HTML for Apple Mail is to make it in an HTML editor, open it with Safari use CMD+i - a new mail message will appear in a moment with the web page in the email body.
    You can't do any major editing in Mail, you'll have to go back to the HTML file. But it works.
    You can also use Copy (from a web page) and then (Edit) Paste as HTML (that what Paste as HTML is for, not for creating HTML email). You can also user Paste as HTML to copy/paste a HTML email you receive or part of a HTML email.

  • To Send HTML Format and excel file attachment  in same mail

    Dear All,
            Have requerment ,to send a mail options HTML table format and same data in excel file attachement.have capable to do the html format using methods BCS .but how to send excel format attachment in same  mail.
    Please guide me how to do it.
    Regards ,
    Santhu
    Edited by: santosh jajur on Apr 9, 2010 1:54 PM

    Santhosh,
    please check the code:
    report bcs_example_7.
    This report provides an example for sending an Excel
    attachment in Unicode Systems
    constants:
      gc_tab  type c value cl_bcs_convert=>gc_tab,
      gc_crlf type c value cl_bcs_convert=>gc_crlf.
    parameters:
      mailto type ad_smtpadr
       default 'ur mail id'.                    "#EC *
    data send_request   type ref to cl_bcs.
    data document       type ref to cl_document_bcs.
    data recipient      type ref to if_recipient_bcs.
    data bcs_exception  type ref to cx_bcs.
    data main_text      type bcsy_text.
    data binary_content type solix_tab.
    data size           type so_obj_len.
    data sent_to_all    type os_boolean.
    start-of-selection.
      perform create_content.
      perform send.
    form send.
      try.
          send_request = cl_bcs=>create_persistent( ).
        create document object from internal table with text
          append 'Hello world!' to main_text.                   "#EC NOTEXT
          document = cl_document_bcs=>create_document(
            i_type    = 'RAW'
            i_text    = main_text
            i_subject = 'Test Created By BCS_EXAMPLE_7' ).      "#EC NOTEXT
        add the spread sheet as attachment to document object
          document->add_attachment(
            i_attachment_type    = 'xls'                        "#EC NOTEXT
            i_attachment_subject = 'ExampleSpreadSheet'         "#EC NOTEXT
            i_attachment_size    = size
            i_att_content_hex    = binary_content ).
        add document object to send request
          send_request->set_document( document ).
        --------- add recipient (e-mail address) -----------------------
        create recipient object
          recipient = cl_cam_address_bcs=>create_internet_address( mailto ).
        add recipient object to send request
          send_request->add_recipient( recipient ).
        ---------- send document ---------------------------------------
          sent_to_all = send_request->send( i_with_error_screen = 'X' ).
          commit work.
          if sent_to_all is initial.
            message i500(sbcoms) with mailto.
          else.
            message s022(so).
          endif.
      endtry.
    endform.                    "send
    form create_content.
      data lv_string type string.
      data ls_t100 type t100.
    columns are separated by TAB and each line ends with CRLF
      concatenate 'This Is Just Example Text!'                  "#EC NOTEXT
                  gc_crlf gc_crlf
                  into lv_string.
    header line
      concatenate lv_string
                  'MSGID'    gc_tab
                  'MSGNO'    gc_tab
                  'Language' gc_tab                             "#EC NOTEXT
                  'Text'     gc_crlf                            "#EC NOTEXT
                  into lv_string.
    data lines
      select * from t100 into ls_t100
        where arbgb = 'SO' and msgnr = '182'.
        concatenate lv_string
                    ls_t100-arbgb gc_tab
                    ls_t100-msgnr gc_tab
                    ls_t100-sprsl gc_tab
                    ls_t100-text  gc_crlf
                    into lv_string.
      endselect.
      select * from t100 into ls_t100
        where arbgb = 'SO' and msgnr = '316'.
        concatenate lv_string
                    ls_t100-arbgb gc_tab
                    ls_t100-msgnr gc_tab
                    ls_t100-sprsl gc_tab
                    ls_t100-text  gc_crlf
                    into lv_string.
      endselect.
      try.
          cl_bcs_convert=>string_to_solix(
            exporting
              iv_string   = lv_string
              iv_codepage = '4103'  "suitable for MS Excel, leave empty
              iv_add_bom  = 'X'     "for other doc types
            importing
              et_solix  = binary_content
              ev_size   = size ).
        catch cx_bcs.
          message e445(so).
      endtry.
    endform.                    "create_content
    Thanks.

  • Error when sending HTML format mail from Oracle 9i forms

    Dear All,
    i have created one procedure with 15 in parameter by which i can send mail in HTML format. due to length problem i am using 15 parameter, every parameter has length 32767, i am splitting HTML coding after every parameter length fulfilled
    when 3 or 4 parameter only fulfilled mail comes well, but more than 4 parameter fulfilled mail is not coming, will any one of you kindly please help me to resolve this
    following procedure i am using.......
    PROCEDURE P_SEND_MAIL( subject_p varchar2, salutation_p varchar2, plan_hdr_msg_p varchar2,
    plan_dtl_msg_p_1 varchar2, plan_dtl_msg_p_2 varchar2, plan_dtl_msg_p_3 varchar2, plan_dtl_msg_p_4 varchar2,
    plan_dtl_msg_p_5 varchar2, plan_dtl_msg_p_6 varchar2, plan_dtl_msg_p_7 varchar2, plan_dtl_msg_p_8 varchar2,
    plan_dtl_msg_p_9 varchar2, plan_dtl_msg_p_10 varchar2, plan_dtl_msg_p_11 varchar2, plan_dtl_msg_p_12 varchar2,
    plan_dtl_msg_p_13 varchar2, plan_dtl_msg_p_14 varchar2, plan_dtl_msg_p_15 varchar2, summary_p varchar2,
    cmplmntry_sign_msg_p varchar2, mailto_p varchar2 ) IS
    mail_from varchar2(100);
         mailhost varchar2(30) := 'MAIL-SRVR';
         crlf varchar2(10) := CHR(13)||CHR(10);
         mess_bdy varchar2(10000);
         Port number := 25;
         conn UTL_SMTP.CONNECTION;
    begin
         mail_from := 'IT-Department';
         mess_bdy := 'Date: ' ||TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' )|| crlf ||
         'From:' ||mail_from|| crlf ||
         'Subject:'||subject_p|| crlf ||
         'To: ' ||mailto_P|| crlf ||'' || crlf;
         conn:= utl_smtp.open_connection( mailhost, Port );
         utl_smtp.helo( conn, mailhost );
         utl_smtp.mail( conn, mail_from);
         utl_smtp.rcpt( conn, mailto_P );
         utl_smtp.data( conn, 'MIME-Version: 1.0' ||CHR(13)|| CHR(10)||
         'Content-type: text/html' || CHR(13)||CHR(10)||
         mess_bdy||salutation_p||plan_hdr_msg_p
         ||plan_dtl_msg_p_1||plan_dtl_msg_p_2||plan_dtl_msg_p_3||plan_dtl_msg_p_4||plan_dtl_msg_p_5
         ||plan_dtl_msg_p_6||plan_dtl_msg_p_7||plan_dtl_msg_p_8||plan_dtl_msg_p_9||plan_dtl_msg_p_10
         ||plan_dtl_msg_p_11||plan_dtl_msg_p_12||plan_dtl_msg_p_13||plan_dtl_msg_p_14||plan_dtl_msg_p_15
         ||summary_p||cmplmntry_sign_msg_p);
         utl_smtp.quit( conn );
    exception
         when others then
         null;
    END;

    did u encounter any error?
    Be more clear in ur saying. As i understood that - is when coming to 5th parameter u r not able to access it. Is it right?
    Message was edited by:
    USER_X

  • Can not send HTML formatted email since Mavericks?

    Hi..
    I was using Thunderbird happily in Mountain Lion and all was well. But as soon as I upgraded to Mountain Lion I can no longer send any HTML formatted emails at all. Everything I paste into Thunderbird get instantly converted to 'plain text'. Apart from manually editing basics like font colour, italics, bold I can't do much else.
    'Compose messages in HTML' is checked across all accounts, and 'Delivery Format' is set to 'Rich Text HTML'.
    Yet thunderbird refuses to render any pasted HTML formatted material.
    If I can not find a solution to this I will have to find an alternate mail client as rich formatting is critical for me.

    I just wiped Thunderbird completely from my system (Mavericks) and reinstalled from scratch. Yet still it will not render any HTML pasted into an email copied from Safari.
    I did however manage to paste HTML from Firefox and then Chrome into Thunderbird and they both rendered perfectly.
    But.. things get a bit strange. I am able to copy HTML from any webpage opened in Safari and paste it into a Googlemail email also opened in Safari and it renders fine.
    This is such a pain as Safari is my browser of choice and Thunderbird my email client of choice. But they just don''t want to work together in Mavericks.
    :((

  • How to send html newsletter via Mail app

    I want crystal and clear instruction as all the ones I have found either old fashioned and not relevant or skip that interesting part.
    I have already done html page (newsletter). Now I want to transform it somehow and send via Mail app so my contacts could receive it as html newsletter. If I need to attach txt message please add it to the instruction. I need complete how to send html newsletter.

    alabanco wrote:
    thanks. Now we've got to the most interesting part and intriguing one. Why should I upload html page to the server. I do understand uploading the images to server which will be used as links in my html mail. But why and how should I store that page in my server if I have CMS post instead from which I used pictures as links. SHould I create yet another type of post in CMS that is my html newsletter? That's not cool. What is the industry standard approach for that?
    By the way Mail.app uses that baby design templates for your messages. Why don't we have an option to delete all these creepy childish templates and store solid bold corporate style templates for newsletters and send it somehow? Or will it just attach the images to the message then? If so then it is not what I want and it is really depressing.
    The industry convention/"standard" is not to use html in email. Wheteher or not your html newsletter displays as you intended is at the mercy of the recipient and their email client settings.
    If you want to preserve your html layout and styles, save your newsletter as a pdf document and attach the pdf document to your email. Or, as already suggested, use a web server to serve your html newsletter.

  • Sending html through java.mail

    Hello, what i am attempting to do is present a user with a survey via .jsp in a browser. When the user submits the form i am retrieving all of the parameters and reconsituting the html form via the URL class. What i would like to do at this point is mail the html form to myself. The net result being, when i open my outlook and view the incoming survey, the survey looks pretty much like it did just before the user submitted it.
    Currently what is happening is the html text is appearing in my email as apposed to the rendered html page.
    Is this a mime type issue? When i query the mulibodypart.isMimeType("html") i get "false".
    The way that i am creating my mail msg is:
    try {
    //open the URL...
    cat.debug("opening url stream...");
    in = new BufferedInputStream(
    url.openStream() );
    } catch ( IOException e ) {
    cat.error( "Couldn't retrieve data from url!" );
    }//try
    session.setDebug(true);
    // construct the message
    Message msg = new MimeMessage(session);
    msg.setFrom();
    msg.setRecipients(Message.RecipientType.TO,
    InternetAddress.parse(to, false));
    msg.setSubject(subject);
    MimeBodyPart mbp1 = new MimeBodyPart(in);
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    msg.setContent(mp);
    msg.setHeader("X-Mailer", "JavaMailer");
    msg.setSentDate(new Date());
    // send the thing off
    Transport.send(msg);
    Any help would be greatly appreciated.
    Charlie

    Here is the code that gets url and send contents of it via email
    public void sendMimeMail(String subject, String sUrl, String destination, String sender){
      try {
        javax.mail.Message msg = new javax.mail.internet.MimeMessage(session); //create session somewhere
        msg.setFrom(new InternetAddress(sender));
        msg.setRecipients(javax.mail.Message.RecipientType.TO,
          InternetAddress.parse(destination, false));
        BodyPart messageBodyPart = new MimeBodyPart();
        URL url = new URL(sUrl);
        messageBodyPart.setDataHandler(new javax.activation.DataHandler(url));
        MimeMultipart multipart = new MimeMultipart("Related");
        multipart.addBodyPart(messageBodyPart);
        msg.setContent(multipart);
        msg.setSubject(subject);
        Transport.send(msg);
      }catch(Exception e){
        e.printStackTrace();
    }Raine

  • Apex_mail.send / HTML formatting Ignored When Sent via Trigger

    I have a PL/SQL procedure that sends a formatted email using the apex_mail.send procedure. This procedure works 100% perfectly if I run the procedure either from a scheduled job (using dbms_scheduler), or when I siimply call the procedure "ad hoc" from the APEX SQL Editor. However, when the exact same procedure gets invoked/called from a DB trigger, some of the formatting instructions get ignored with regards to font face and font size. I am stumped by this. Any ideas?
    BTW, I'm using APEX 4.2.
    Thanks in advance

    Sorry totally my fault - no issue at all... more a problem with the tester! users with an external email address are receiving the email it just seems when the email is sent from Apex standalone is appears in the inbox but when it is sent from within an iframe it is sent straight to the junk mail by the email client... still a little strange there is a difference in behaviour but at least it doesn't totally fail as I first thought.

  • How to send HTML email in Mail?

    Hello All,
    I would like to write an email in HTML, just copy and paste the HTML code into mail, and have it sent as HTML. How do I have mail do this? Thanks!

    You can't do that; or rather, you can, but it won't work. You can view you r HTML file in Safari, then use the 'Mail Contents of This Page' option and Safari will insert the rendered HTML. But if your recipient doesn't have their mail program setup to view HTML email, they won't see whatever it is you're trying to accomplish.
    Mulder

  • Encounter error when sending HTML format email

    please reference below codes, when the lt_html has more than one line, the email could not been displayed properly in my inbox.
    did you encounter this kind of problem? Pls help, thank you.
    document = cl_document_bcs=>create_document(
    i_type = 'HTM'
    i_text = lt_html
    i_length = conlengths
    i_subject = 'HTML format email' ).

    Hi,
    please show the 3-line html-code that does not work:
    in lt_html, also value and/or method to fill for conlengths
    Save email as text and show whats there.
    This is required for the answer.
    Regards,
    Clemens

  • Error in HTML Format Mail

    I want to send mail in html format. i am using java mail api.
    but i am getting this error for my programe.
    Can nebody tell me how to send mail in html format
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStream
    I think problem is somewhere in this part of code..
    InternetAddress internetaddress = new InternetAddress("[email protected]");
    InternetAddress internetaddress1 = new InternetAddress("[email protected]");
    MimeMessage mimemessage = new MimeMessage(session);
    mimemessage.setFrom(internetaddress);
    mimemessage.setRecipient(javax.mail.Message.RecipientType.TO, internetaddress1);
    mimemessage.setSubject("Posting Mail");
    mimemessage.setContent(subject, "text/html");
    Transport.send(mimemessage);

    Hi Varun .
    While going thru your code i felt that your are missing something in your code . but i did not checked it . anyways first u check that u have set your class path to the mail.jar and mailapi.jar properly. then check whetehre u have imported everything properly or not .I am attachimg my piece of code which i used recently to send mails. I hope this will work . Do get back to me after you try this block of code
    try{
    Properties props = System.getProperties();
    props.put("mail.smtp.host", "111.11.1.11");// you smtp servers ip address
    Session session = Session.getDefaultInstance(props, null);
    MimeMessage msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress("x@enigma"));//senders address
    msg.setSubject("Testing");//subject of mail
    msg.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
    // Receiptents address
    String body="<html><body><H1> Welcome to Java Mail</body></html>";//creating and html body
    msg.setContent(message,"text/html");//setting the content of HTML
    Transport.send(msg);/ sending mails
    }catch (AddressException ae) {               
    System.out.println("Address Exception=="+ae);
    }catch (MessagingException me) {
    System.out.println("MessagingException"+me);
    }catch (Exception e) {
    System.out.println("Exception"+e);
    }

  • Sending HTML Mails using SO_DOCUMENT_SEND_API1

    Dear all,
    we were using SO_DOCUMENT_SEND_API1 to send plain text e-mail replies to participants of an incentive program. Now the customer wants to send HTML mails. Customer has provided HTML templates for the mails, and the text always is the same, only slight changes in regard to the particpants number occur. Has anybody ever performed sending HTML formated mails without using SmartForms?
    Thanks for your help!
    Kind Regards
    Chris

    Sure.. here is a sample program.
    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

Maybe you are looking for