HTML mail using Email Control

I am trying to send a mail using Email control in workshop. When I do
content-type="html"
the mail does not go through. when I do content-type="text/plain", it works fine.
Has anybody encountered this behavior? What do I need to be able to send an html
mail?
thanks,
John Jones

"John Jones" <[email protected]> wrote:
>
I am trying to send a mail using Email control in workshop. When I do
content-type="html" try content-type="text/html"
>
the mail does not go through. when I do content-type="text/plain", it
works fine.
Has anybody encountered this behavior? What do I need to be able to send
an html
mail?
thanks,
John Jones

Similar Messages

  • 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

  • How do I create HTML mail using Mac OS X Mail 2.0.7?

    I know how to create an HTML page. How do I send it as HTML e-mail? OS X Mail receives HTML e-mail. It's kind of hard to believe it can't send it as well. I've tried pasting it in and attaching it - neither works. Any ideas?
    Thanks,
    Jim Carruth
    iBook G4   Mac OS X (10.4.6)  

    I know how to create an HTML page. How do I send it
    as HTML e-mail?
    You open the page with Safari and use a menu option to send the page as email.
    10.5 is supposed to add html email to Mail.

  • Sending HTML mail using code in workflow

    Hi All
    I follow somerecomendation to create a program to send the mail out. using a program
    My code looks as the following.
        DATA:   l_docdata TYPE sodocchgi1,
                li_content TYPE TABLE OF solisti1,
                li_receiver TYPE TABLE OF somlreci1,
                l_ename     TYPE pa0002-cname,
                l_text(255),
                lw_receiver TYPE somlreci1.
        l_docdata-obj_name = 'Notification'.
        l_docdata-sensitivty = 'P'.
        l_docdata-proc_syst = sy-sysid.
        l_docdata-proc_clint = sy-mandt.
        l_docdata-obj_descr = 'TEST'.
    l_text  = 'Testing Content'.
    APPEND l_text TO li_content. CLEAR l_text.
    lw_receiver-receiver = 'MyMailtest@GM ail.com'.
    lw_receiver-rec_type = 'U'.
    APPEND lw_receiver TO li_receiver.
        CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
          EXPORTING
            document_data              = l_docdata
            commit_work                = 'X'
            DOCUMENT_TYPE              = 'HTM'
          TABLES
            object_content             = li_content
            receivers                  = li_receiver
          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.
    I try to use the code above and i manage to send the mail out. However when i change the l_text  = 'Testing Content'  to  l_text  = '<A HREF="http://www.google.com">Click Here</A>'  , it does not reach my mailbox even in in transaction SCOT, i can see that it was succesfully transmited.
    Anyone have any idea about this?
    Thanks.
    Regards,
    Bryan.

    Hey PJ,
    I manage to send out the email using the htm type. However, instead of having a hyperlink saying click here and it link to another page, i am getting something like this in the email.
    Click Here <http://www.google.com> 
    In my code, i write 
    <A HREF="http://www.google.com">Click Here</A>
    , but the content just turn to above. What i wan is a CLICK HERE link and will link to google.
    Thanks.
    Regards,
    Bryan.

  • How to send the body of mail in html format using servlet

    Hi
    i developed an servlet using sun.net.smtp.SmtpClient package,my servlet receiving data from an form,i can able to send mail successfully,but my mail body part is in the text format,but i would like to send it as an html format,for ex <input type="text" size="25" name="Name"> as an input field with value received from the form instead of showing tags as i mentioned<input type="text" size="25" name="Name"> ,any help would be appreciated.
    Regards.

    See this program
    But here whats the problem is ,
    some maiservers doesnot support html code if u send this mail to yahoo account it will show html code as it is,
    hotmail account encodes the html and shows proper fonts and headings
    import java.io.*;
    import java.util.*;
    import java.net.*;
    import sun.net.smtp.SmtpClient;
    public class SendMail {
              public static void main(String args[]){
              int i = 0;
              //while (true) {
              SmtpClient mail;
              try{
                   i++;
                   String email = "[email protected]";
                   String from="[email protected]";
                   mail=new SmtpClient("bizpivot.com");
                   mail.from(from);
              mail.to(email);
                   PrintStream msg=mail.startMessage();
                   msg.println("To: " +email);
                   msg.println("Subject: Hai" i "!!!");
                   msg.println("<html><head><title>Untitled</title></head><body bgcolor='red' text='#00ffff'><font face='Courier New' size='+3'>Hai How are you Man!!!</font></body></html>");
                   mail.closeServer();
              System.out.println(i);
              catch(Exception e){e.printStackTrace();}

  • How to send mail in  HTML  format using SMTP

    I want to send mail in HTML format using SMTP.Can anybody please suggest how to do it.Can anybody send me the code.
    Thnx.

    If you don't know how to send a message using JavaMail see here : http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html#JavaMailSending
    To send a html format mail you need to set the content type like this (msg is a javax.mail.internet.MimeMessage) :
    String subject = "An Email 4 U";
    String message = "<HTML><BODY>Here is a link<br><a href='http://javasoft.com'>Java</a></BODY></HTML>";
    msg.setSubject(subject);
    msg.setContent(message, "text/html");p.s This isn't really an advanced topic

  • Database control using emails

    dear DBAs,
    do you have an idea if it's possible to control the database by emails.
    let's say i want to send an email to start and export or to query a table ... etc.
    thx all
    Elie

    Elie wrote:
    do you have an idea if it's possible to control the database by emails.Not that difficult. POP3 (Post Office Protocol) is very easy to implement in PL/SQL using UTL_TCP. That allows PL/SQL code to read an e-mail box. I've posted a very basic example [in this thread|http://forums.oracle.com/forums/thread.jspa?messageID=2018101#2018101] that turns a POP3 account into a SQL "table" that can be SELECT'ed from.
    Then you have to add some basic command/instruction language for you to communicate with the database via e-mail.
    There are however other issues to consider. Security being a prime issue. How do you safeguard this e-mail feature against abuse? To what extend do you allow e-mails to control the database? Remember, that is it trivial to fake an e-mail to the database that seems to have come from you/the DBA.. Which means having to sign e-mails using a digital certificate - which in turns means a lot more complex PL/SQL code to write... etc.
    I would not consider such a feature myself for database management. Effective dba'ing only needs 2 tools - ssh and sqplus. Which means being able to sit in a coffee shop with a netbook, connect to a customer's network (VPN typically) and then using ssh to access the relevant servers to administrate. (Windows? what's that?)

  • Problem receiving email using database control

    Hi all,
    I'm new to using EM and trying to configure it so I can receive email notifications when tablespace is getting full. I'm only using "Database Control" not Grid control.
    Oracle Enterprise Manager Database Control     10.2.0.0     
    I was able to successfully receive email using "Test Mail Servers" in Notification Methods.
    I already defined my rule and was able to specify "Tablespace Used %" metrics.
    I already defined a schedule so that mails are sent to my email.
    To test, i created records on one table until it's 100%.
    I do get alerts with EM Database Control but no mail.
    I logged in as sysman into the database being monitored (there is no repository because this is database control), I don't see any rows in mgmg_notification_log.
    Does anybody know if email notification only works in "Grid Control" not "Database Control"?
    I'd appreciate any assistance.

    Grid Control has hundreds of email alerts already setup that you can use , but I pretty sure you need to buy
    that pack for email alerts to keep them in service after you evaluate.

  • HTML Mails from Safari using Mailing List from Excel sent by Mac Mail

    Hi.... Anybody got any ideas how I can use VCards or Excel as a database to send HTML mails from Mac Mail without having to add the names into my personal address book as I do not want client contacts in with my contacts... any ideas ? Thanks....

    This should not occur.
    As an experiment, I have some old saved received messages in a user created mailbox that were addressed to an old email account/address that was cancelled. When selecting Reply for any of these messages, my default Send New Mail from account is chosen as the sending email account/address.
    When doing the same for any messages located in a user created mailbox that were addressed to an existing valid email account/address that is not my default Sent New Mail from account selection, the account/email address the message was addressed to is the account chosen as the sending email account/address.
    I believe there is some minor corruption to your Mail.app preference file. Let me know if you need the instructions for targeting the preference file which will require re-entering all email account information.

  • A have new problem that has appeared in my Mac Mail.  When I type a frequently used email into the 'To: line' it populates the correct name but with 8 different email addresses not associated with that name.

    A have new problem that has appeared in my Mac Mail.  When I type a frequently used email into the 'To: line' it populates the correct name but with 8 different email addresses not associated with that name.  I have gone to the window pop-down to 'previous recipients' and deleted that addressee as well as all the email addresses it is assigning to that name.  I have also deleted the account entirely from my address book.  I have have run repair permissions and also full defrag in iDefrag.  Still the problem persists.  Any suggestions?

    Hello CarolineLongEaton,
    I noticed you posted this problem quite a while ago and wondered if you managed to have it fixed in an alternative way then posting here. It is too bad no one has posted a solution here. I have a similar problem and if you have had yours solved since this occurance how you accomplished it may help me with mine. I am interested to know what you have done about yours.
    If you are interested in comparing the problems to see if your solution (if you have found one) might help me also then here is the link to the discussion.
    https://discussions.apple.com/thread/6116927
    If your problem has not been solved then I will comment here again if/when my issue is resolved as it may help you too. My hope here is that we may help each other. To quote you "all ideas gratefuly recieved". I hope your problem was resolved, ernestly for your sake and selfishly for mine also. I wish you and yours a great day!
    dofromon

  • 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

  • Using Safari to send HTML Mail message but Mail keeps dropping images?

    I'd like to use Safari to send html Mail messages, but when I click on File>Mail Contents... Mail opens a new window but my graphics are gone. (I'm creating the html pages using MS Word for the Mac.) I get a flash of the graphics for a second, and then they are replaced by a little blue lego. Any ideas? I've tried all kinds of mail preferences but nothing seems to help.

    Figured it out (at least one way): had to load the image to a server and then add the image as a link only (uncheck "save picture with document" box).

  • How to send html messages using unix mail ?

    Hi,
    I'm wondering if it's possible to send html formated mail using Unix mail command ?
    Regards,
    Didier.

    It works fine for me right out of the box; I've done zero to configure anything. In my case, I presume the HTML is encoded in a file. Then I invoke a script which adds the following mail headers before the HTML, then calls sendmail:
    <pre class=command>MIME-Version: 1.0
    Content-type: text/html; charset=ISO-8859-1
    To: $address
    From: $MY_EMAIL
    Subject: File: $subject
    </pre>
    In the header, variables $address, $MY_EMAIL, and $subject are filled in by the shell script.
    HTH

  • I wanted to send some photos out but was told I need to create a new profile, use mail icon in control panel no icon there how do I get it done?

    I want to send some photos from Firefox, when I tried it said I need to create a new profile, use mail icon in control panel. I went to control panel and do not know what to do.'''bold text'''

    As all of the msuic came from your computer in the first place it should still be there.  Is it not?
    EVERYTHING on your ipod should also be on your computer and should be included in your regular backup copy of your computer.
    Make sure that everything is on your computer.  You can transfer itunes purchases from the ipod.  Without syncing:  File>Transfer Purchases.
    When everything is on your computer, then it can be synced back to the ipod after updating.

  • Using java mail api without servlets, I ve sent an html mail.  In that Ive

    Using java mail api without servlets, I ve sent an html mail. In that Ive specified action to the servlet. On click, it shows url as file:///C:/Documents%20and%20Settings/sirivanig/Local%20Settings/Temporary%20Internet%20Files/Content.IE5/CNFHMDIT/updatemailerform%5B2%5D.htm instead of www.servername.com/....
    May I know the reason why it shows like this.
    Do I ve to send htmlmail through servlet so that it does show proper url?

    Possibly your mailer is restricting your access to URLs to prevent
    various scams. Without the details, it's hard to know what's going
    wrong.
    Have you tried with a different mailer?

Maybe you are looking for