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

Similar Messages

  • 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

  • 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 send the email to different email addresses from Workflow

    Hello,
    i an not getting that how to send the email from Workflow in SAP.
    plz give the steps to do that.
    i have done lots of time but system is not sending the email to different email address.

    Hi,
    lot of configuration is invloved in sending
    mail to external email id. check BASIS to
    configure for external mails ans also check
    debug FM and see which conditions exceptions
    (Document not sendis raised)
    also check below code
    CLEAR: DOC_CHNG, OBJTXT, OBJBIN, OBJPACK, OBJHEAD, RECLIST,
    RECIPIENT_INT, DOC_SIZE,TAB_LINES.
    REFRESH: OBJTXT, OBJBIN, OBJPACK, OBJHEAD, RECLIST.
    OBJBIN[] = CONTENT_OUT[].
    Populate e-mail title
    DOC_CHNG-OBJ_NAME = 'MAIL'.
    CONCATENATE 'EETS for Contract #'(245)
    OIA01_TAB-EXGNUM
    INTO DOC_CHNG-OBJ_DESCR SEPARATED BY SPACE.
    DESCRIBE TABLE OBJTXT LINES TAB_LINES.
    READ TABLE OBJTXT INDEX TAB_LINES.
    DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    It is a text document
    CLEAR OBJPACK-TRANSF_BIN.
    The document needs no header (head_num = 0)
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 0.
    but it has a body
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = TAB_LINES.
    of type RAW
    OBJPACK-DOC_TYPE = 'RAW'.
    APPEND OBJPACK.
    Create the attachment (the list itself)
    DESCRIBE TABLE OBJBIN LINES TAB_LINES.
    It is binary document
    OBJPACK-TRANSF_BIN = 'X'.
    we need no header
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 0.
    but a body
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = TAB_LINES.
    of type PDF
    OBJPACK-DOC_TYPE = 'PDF'.
    OBJPACK-OBJ_NAME = 'Attachment'(239).
    CONCATENATE 'EETS_' OIA01_TAB-EXGNUM '_'
    IT_ZMMTACCUID-ACCTUSRID
    '_' SY-DATUM '_' SY-UZEIT '.PDF'
    INTO OBJPACK-OBJ_DESCR.
    READ TABLE OBJBIN INDEX TAB_LINES.
    DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJBIN ).
    OBJPACK-DOC_SIZE = DOC_SIZE.
    APPEND OBJPACK.
    Get e-mail address
    CLEAR IT_ADDRESS.
    READ TABLE IT_ADDRESS WITH KEY ACCTID = IT_ZMMTACCUID-ACCTUSRID
    BINARY SEARCH.
    IF SY-SUBRC = 0.
    RECIPIENT_INT-ADDRESS = IT_ADDRESS-SMTP_ADR.
    ENDIF.
    *Send email to external mail address
    RECLIST-RECEIVER = RECIPIENT_INT.
    RECLIST-REC_TYPE = 'U'.
    APPEND RECLIST.
    CLEAR RECLIST.
    *Send email to SAP Office mail address
    RECLIST-RECEIVER = IT_ZMMTACCUID-ACCTUSRID.
    RECLIST-REC_TYPE = 'B'.
    APPEND RECLIST.
    CLEAR RECLIST.
    SEND THE DOCUMENT BY CALLING THE SAPOFFICE API1 MODULE
    FOR SENDING DOCUMENTS WITH ATTACHMENTS
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    exporting
    document_data = doc_chng
    put_in_outbox = 'X'
    importing
    sent_to_all = sent_to_all
    tables
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    receivers = reclist
    exceptions
    too_many_receivers = 1
    document_not_sent = 2
    operation_no_authorization = 4
    others = 99.
    also check
    https:/Re: mail sending problem
    Regards
    amole

  • How to send the output to PDF format in reports 6i?

    Hi,
    How to send the output to PDF format in reports 6i? I given Mode = BITMAP.
    DESTYPE = File, DESFORMAT = PDF, DESNAME = C:\x.pdf.
    Report is running fine. But PDF file not generated. I don't know what i missed. Any one can help this?
    Thanks
    Kavitha

    Hello,
    Do you get this problem only for DESFORMAT=PDF ?
    Test with :
    DESFORMAT = RTF, DESNAME = C:\x.rtf
    or
    DESFORMAT = HTMLCSS, DESNAME = C:\x.html
    does it work ?
    Check if DESNAME is modified in the reports itself.
    Regards

  • How to send the email alert to some users (defined users hasn't post document to a library within a specified time frame)

    Hi,
    Native alert on a document library can setup to email to the predefined user when any changes on the document.
    However, I would like to setup a document library and alert me when
    [email protected] [email protected]
    [email protected] hasn't yet put a document to the library by 2014-07-01 (e.g today is 2014-06-26). The reminder email will send to
    [email protected] [email protected] on 2 days before the dead line (ie. 2014-06-29) because
    [email protected] and [email protected] hasn't put their file to the library on or after 2014-06-29..
    Thanks

    Hi,
    http://stackoverflow.com/questions/17571562/creating-email-alert-workflow-for-sharepoint-file-libraries
    http://stackoverflow.com/questions/18868479/how-to-send-automatic-email-notification-to-user-two-days-before-expiry-date
    http://social.msdn.microsoft.com/Forums/en-US/acb12dd2-d6a5-4b7e-b233-037558bfa2e5/start-workflow-x-days-before-expiry-date?forum=sharepointcustomizationlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to send the email without using server side (Php, java)

    How to send the (Run time image or file) Email & Attachment in Flex web application. without using php, java.

    Well, at some point your email needs to be handed over to an SMTP server. It's a fair amount of work, but if you want to just send an email you could open a socket to a mail server's SMTP port and follow the SMTP protocols to send your email.
    ActionScript sockets: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7cf7.html
    SMTP protocol: http://tools.ietf.org/html/rfc821
    -- Tom

  • 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

  • Hi, i'm suffering how to send the email to reset the security question seen im enter to passwrd

    hi, im suffering on how to send an email to reset the security question
    this is because i have been already log in to the page and in the password & security there but there have no any link such as "send an rescue email to xxx mail" for me to click. so what i need to do?urgent

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (105183)

  • How  to send the email

    Hi Experts,
    I want to send the email from the order_status badi, I have the email address handy.What is the FM to use to send the email.
    Is there any other way to send the emails form CRM 2007, please let me know.
    Thanks in Advance for your help,
    Prave

    Prave,
    This really isn't a CRM 2007 question, because sending e-mails from CRM works generally the same through the background between the releases.
    You should look at scheduled action configuration and you might find a solution based on your problem.  I would recommend looking at the standard help or searching the CRM General and Framework forum on this issue.
    Take care,
    Stephen

  • How to send the email without using SOST

    Hiiiiii Every1,
    What i m usiing is SO_NEW_DOCUMENT_SEND_API1 FM to send the email to internet add. as well as SAP User.
    The Problem is that i have to go to SOST to send the  Pending mails. and send the jobs manually.
    Then it works all right.
    What i want that i don't wnat to send this jobs/ emails mannually by going to SOST..
    Is it possible to do it without using SOST.

    hi
    i am not sure but give this code a try
    REPORT YEMAIL.
    TABLES: USR02.
    DATA: C(15).
    DATA: SENT LIKE SONV-FLAG.
    DATA: EMAIL_ID LIKE SOFOLENTI1-OBJECT_ID.
    DATA: BEGIN OF EMAIL_DATA.
            INCLUDE STRUCTURE SODOCCHGI1.
    DATA: END OF EMAIL_DATA.
    DATA: BEGIN OF EMAIL_SEND OCCURS 10.
            INCLUDE STRUCTURE SOMLRECI1.
    DATA: END OF EMAIL_SEND.
    DATA: BEGIN OF EMAIL_TEXT OCCURS 10.
            INCLUDE STRUCTURE SOLISTI1.
    DATA: END OF EMAIL_TEXT.
    PARAMETERS: ALL__CLI RADIOBUTTON GROUP RADI.
    PARAMETERS: THIS_CLI RADIOBUTTON GROUP RADI.
    PARAMETERS: SELECT__ RADIOBUTTON GROUP RADI.
    SELECT-OPTIONS SEND_TO FOR C NO INTERVALS.
    SELECTION-SCREEN SKIP.
    PARAMETERS: SUBJECT(30).
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN COMMENT /1(20) TEXT-999.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L1(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L2(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L3(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L4(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L5(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L6(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L7(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L8(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L9(84).
    SELECTION-SCREEN END OF LINE.
    EMAIL_TEXT-LINE = L1.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L2.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L3.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L4.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L5.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L6.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L7.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L8.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L9.
    APPEND EMAIL_TEXT.
    EMAIL_DATA-OBJ_NAME = 'MESSAGE'.
    EMAIL_DATA-OBJ_DESCR = SUBJECT.
    EMAIL_DATA-OBJ_LANGU = 'E'.
    EMAIL_DATA-SENSITIVTY = 'P'.
    EMAIL_DATA-OBJ_PRIO =  '1'.
    EMAIL_DATA-NO_CHANGE = 'X'.
    EMAIL_DATA-PRIORITY = '1'.
    BREAK-POINT.
    IF SELECT__ = 'X'.
      LOOP AT SEND_TO.
        EMAIL_SEND-RECEIVER = SEND_TO-LOW.
        EMAIL_SEND-REC_TYPE = 'U'.
        EMAIL_SEND-EXPRESS = 'X'.
        APPEND EMAIL_SEND.
      ENDLOOP.
    ELSEIF THIS_CLI = 'X'.
      SELECT * FROM USR02.
        IF USR02-USTYP = 'A' AND USR02-BNAME NE 'SAP*'
        AND USR02-BNAME NE 'DDIC'.
          EMAIL_SEND-RECEIVER = USR02-BNAME.
          EMAIL_SEND-REC_TYPE = 'U'.
          EMAIL_SEND-EXPRESS = 'X'.
          APPEND EMAIL_SEND.
        ENDIF.
      ENDSELECT.
    ELSEIF ALL__CLI = 'X'.
      SELECT * FROM USR02 CLIENT SPECIFIED.
        IF USR02-USTYP = 'A' AND USR02-BNAME NE 'SAP*'
        AND USR02-BNAME NE 'DDIC'.
          EMAIL_SEND-RECEIVER = USR02-BNAME.
          EMAIL_SEND-REC_TYPE = 'U'.
          EMAIL_SEND-EXPRESS = 'X'.
          APPEND EMAIL_SEND.
        ENDIF.
      ENDSELECT.
    ENDIF.
    BREAK-POINT.
    EXIT.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
         EXPORTING
              DOCUMENT_DATA              = EMAIL_DATA
              DOCUMENT_TYPE              = 'RAW'
              PUT_IN_OUTBOX              = 'X'
         IMPORTING
              SENT_TO_ALL                = SENT
              NEW_OBJECT_ID              = EMAIL_ID
         TABLES
              OBJECT_CONTENT             = EMAIL_TEXT
              RECEIVERS                  = EMAIL_SEND
         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.
    regs
    Arun

  • 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

  • How to export the report in HTML format for desktop application

    Hi,
    i have wrote the JRC desktop application to export the report and i am able to export it in PDF and other formats as mentioned in "ReportExportFormat" API.
    i would like to know is there any API there which can export the report in HTML format.
    i know it would be possible with web based application of JRC, but how can i do it in desktop application?

    There's no mechanism for static HTML pages that displays the report.
    You can use the CrystalReportViewer DHTML viewer, but that's 'interactive'.
    Sincerely,
    Ted Ueda

  • 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

  • Urgent help: How to remove the accumaltion when show movies step by step with buttons

    I want to show the movie step by step by clicking the next
    button. Inside each frame, many movie clips are generated
    dynamically at runtime, and they can be played interactively.
    I achieves the step-by-step display of those frames by adding
    another layer with the action stop(). But I got one trouble: all
    the movie clips from previous frames are accumalted. How to remove
    the accumulation from previous frames?
    For the continuous display of the movie, I tried to use
    onEnterFrame() and change the _visible property of all the movie
    clips to false in this function. But it doesn't work for the
    step-by-step display. Once I click the next button, the movie clips
    at the current frame just show very quickly, then disappear. What
    should I do?
    I need to fix this immediately.
    Your help would be greatly appreciated.
    - zcx

    you can use the removeMovieClip() method for those movieclips
    added dynamically.

Maybe you are looking for

  • How can I brighten my screen when on the internet?

    Under most usage, the screen on my S III is quite bright.  However, when I go to the internet, the screen brightness dims dramatically and I can barely see the images or text.  I have turned off the auto-brightness, but it doesn't do a thing for my i

  • HT4528 How do I set up separate icloud accounts on two phones with one apple id?

    My husband and I have two iPhone 5s and one Apple ID.  I set up my iCloud account and we want to set up a separate one for him so we don't share each other's contacts, etc. 

  • CALL TCODE FROM MENU BUTTONS IN ALV OOPS

    Hi friends,   I have a report with ALV GRID display with oops . According to the requirement I have to cretae three buttons in the menu bar which will cal thre different transactions . Cn anyone tell me HOw to call the transaction from a report ? I t

  • Creative cloud problem for loading

    Hello, in creative cloud, when I click on App , there is the round for "loading" and never end . I have Pc and I would to up load Illustrator . thanks for your help

  • How to run execute immdiate with variables

    Hi friends, How to run execute immdiate with variables in v_stmt below? I dont know how to declare the value of i here. Set serveroutput on; DECLARE    i        VARCHAR (20);    v_stmt   VARCHAR2 (100);    CURSOR c    IS       SELECT sqlid FROM temp1