Text Format in Mail Templates

Hi Experts,
I have a requirement , wherein I need to make certain word in my custom mail template( palin text) as bold or underline( or both) , I tried Mail template Macros FORMAT for this but it didnt work , If anyone knows how can we achieve this please share.
regards,
VIshal Goel

Hi Vishal,
Please try below format, so that it may work.
FORMAT("b", "Title:") %TOKEN1%
FORMAT("b", "Posted By:") %TOKEN2%
LINK("View Full Message", "%LINK123%")
The above mentioned will work only when HTML Mail option is selected on the user account level under Account properties.
Please let me know if the issue still exists.
Also Please go through the below link, it will be useful for you.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/001d645f-008f-3010-7b8f-e7935e46733a?overridelayout=true
Thanks,
Raj.

Similar Messages

  • DECODING MAIL FROM WEB SERVER IN PLAIN TEXT FORMAT(THE MAIL BEING SENT BY LABVIEW APPLICATION)

    Hi All
    I have a labview application that send mail every hour automatically.
    But actually the mail has to be decoded from the web server(by another application).But now when that application decode the data in the mail(that is send by labview application)its getting some funny characters inside that can not be detected by the decoding application
    (When open the mail no problem.)But actually our goal is to decode the mail from the web server.
    Why the extra characters are appearing when decoding from the server?Is it because of the HTML format?
    Is there option to send the mail in plain text format(not like attachment)?
    In outlook we can change the setting (tools->options->send->mail sending format->....here we can set as HTML format/Plain Text format)
    Like that at the sending time can i chenge the sending option as plain text format in my labview application?
    Thanks...

    smercurio_fc wrote:
    Then it sounds to me like this other application is not decoding the attachment correctly, especially if you looked at the attachment yourself after you received it and verified it's correct.
    No, no, smercurio. This is charcter encoding here. In older versions of LabVIEW you could specify what character encoding to use when sending an email through the SMTP VIs. But that gave problems since people in certain locales used certain characters that where not transfered right when the wrong encoding was specified, and that encoding stuff is not understood by most people at all, so the wrong selected encoding was rather the rule than the exception. In newer versions of LabVIEW do the SMTP VIs handle the encoding automatically based on the currently used locale on the system.
    This change is documented in the Upgrade Notes of LabVIEW and probably happened around LabVIEW 7.1 or 8.0.
    A decent mail client will recognize the encoding and convert it back to whatever is necessary before presenting it to the user. The OPs posters server application obviously isn't a smart mail client but probably just some crude text file parser that has no notion of proper mail character encoding and how to deal with it.
    I would suppose that there is a chance to dig into the SMTP VIs itself and try to manipulate or disable that encoding altogether in there but that may open a whole can of worms somewhere else. The proper way would be to process the incoming mail by a character encoding aware mail client before passing it to the text parser. On Unix setting up something like this would be fairly trivial.
    Rolf Kalbermatter
    Message Edited by rolfk on 01-23-2008 10:21 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Reading Word attachments (with Rich Text Format) in Mail

    I have difficulty opening "Word email attachments" that contain "Rich Text Format" using my ipod touch under the MAIL function. For normal Word documents, I have no issue at all. Can anyone help here? Thank you.

    RTF contains alot of extra formatting junk that you need to be aware of, depends what you want to do with the files afte reading them in but JAVA has its own RTF parser standard. Be warned its not full proof.....
    import java.io.*;
    import java.util.StringTokenizer;
    import javax.swing.text.rtf.RTFEditorKit;
    import javax.swing.text.Document; 
      try {
          FileInputStream stream = new FileInputStream("C:/Document.rtf");
          RTFEditorKit kit = new RTFEditorKit();
          Document doc = kit.createDefaultDocument();
          kit.read(stream, doc, 0);
          String plainText = doc.getText(0, doc.getLength());
          BufferedReader br = new BufferedReader(new StringReader(plainText));
          String line = br.readLine();
          while (line != null) {
            StringTokenizer tok = new StringTokenizer(line, " ");
            while (tok.hasMoreTokens()) {
              System.out.print(tok.nextToken() + " ");
            System.out.println();
            line = br.readLine();
        } catch (Exception ex) {}

  • Text format E-Mail to Vendor (PO) using BADI BBP_OUTPUT_CHANGE_SF

    Hi all,
    I am using BAdI BBP_OUTPUT_CHANGE_SF to use an own SMARTFORM for the e-mailText when a PO is sent to Vendor.
    I just want to change the e-mail Text.
    I set Parameter CV_SMARTFORM_MAIL
    Everythign fine so far.
    My problem:
    How can I define own text formats within the body?
    Every style or text format within my SMARTFORM is not used when EMAIL is sent to vendor.
    Format seems to be RAW, even if I change the e-mail FORMAT within BAdI (using cs_parameters-mail_format) my e-mail does not accept any styles or Text formats.
    Any ideas?
    Thanks and regards
    Andreas

    Hi Andreas,
    the format of the Mail Body is hardcoded set to RAW and so the Output of the Mail Body Smatrform is converted to plain text (displayed in Courier by the mail program you use for reading).
    This happens in Method PROCESS_BBP_PO_MAI of class CL_PD_PO_PROCESSING_BBP which is per default customized as the processing class for PO output via email.
    We haven't changed the Format of the mail Body but to do that you will have to copy that class into customer namespace, change the config with transaction BBP_PO_ACTION_DEF and change the Mail_format parameter in structure LS_PARAMETER to bbpex_conttype_html.
    Hope that helps!
    Cheers
    Oliver

  • Text formatting in mail!!!!!!!!! URGENT

    hello,
    i am using JavaMail API.
    i want to format my text which will be in body of mail.
    e.g if if enter <b></b> then it should make that text bold.
    basicaaly i want support for <b><br><u><i> etc..........
    now wht is happening is if i enter <b>Hello </b> inteaf of printing Hello in bold it prints tags as it is.
    pls help me.
    thanks.

    What you need to do is in your MimeBodyPart set the content to text/html:
    String bodyText = "What I want <b>bolded</b>.";
    MimeBodyPart text = new MimeBodyPart();
    text.setDisposition(Part.INLINE);
    text.setContent(bodyText, "text/html");
    you could also try:
    text.setContent(bodyText, "text/richtext");
    Al

  • Can anyone tell me why I am unable to download a template word doc from webmail onto my mac without it opening in text format? I just need the original document format.

    Can anyone tell me why I am unable to download a template word doc from webmail onto my mac without it opening in text format? I just need the original document format.

    Where to begin... and why would you ask here? (workstation owners)
    Places I can think to try, after google of course....
    Forum devoted to something like Word / Mactopia or Pages.... whether you are using Office 2011, and no idea what browser or webmail (IMAP, Gmail, other)
    And then there really are notebook with subforum for MacBook Pro
    Apple Site Map
    Apple Support Mail
    Apple Support

  • E-Mail template format with example

    Hi All,
              Could someone provide me with mandatory things to consider when creating e-mail templates in SAP Cloud for Customer ? I want the specific format and tool used to create it.
    An example HTML document will help me to look into HTML tags used and the way its designed.
    Will appreciate with reward points for best support.

    Hi Gowri,
    here is the template:
    <html>
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    </head>
    <body>
    <span class="variable">/FormCampaignExecutionPlaceholder/ContactPerson/FormattedName</span>
    <p>Please join us for the conference!</p>
    <p><a href="mailto:{/FormCampaignExecutionPlaceholder/MailingPermissionDenyMailToURI}">Click here to be removed from future marketing mailings.</a></p>
    <p><a href="http://{/FormCampaignExecutionPlaceholder/LinkTracking/TrackingURI}www.sap.com/HANA">News about SAP HANA</a></p>
    </body>
    </html>
    Kind regards, Janina

  • Mail Template (SO10 Text)

    Name of the Award     <VALUE>     Award Code                               <VALUE>
    Product Code     <VALUE>     Product Description         <VALUE>
    Nominator Name     <VALUE>     Nominator ID                              <VALUE>
    Nominator Email     <VALUE>     Nominator Designation         <VALUE>
    Nominee Name     <VALUE>     Nominee ID                               <VALUE>
    Delivered To           <VALUE>     Onsite / Offshore Status         <VALUE>
    Signatory's Name     <VALUE>     Signatory's Designation         <VALUE>
    I need a mail template in this format.. Is this possible to do??? If so how???
    Regards,
    Vidhya S

    Hi..
             It can be done using SO10 ..Define the variables in the SO10 text. In the program in which u need to create the body of the mail.
    1. Read the text from the SO10.
    2. Create the variables with the same name in ur program.
    3. Use FM TEXT_SYMBOL_REPLACE to replace the symbol(Variable) to values.
    Ranganathan.

  • Mail in attachment in text format

    hi,
    As per my requirement I need to send the errored records of file into mail in text format.
    I have used the link to develop the code suggested by someone in sdn only to to so.
    http://www.sapdevelopment.co.uk/reporting/email/attach_xlsmod.htm.
    But now the problem is that the attatchment is in excel format.
    But I want it in text format.
    How to proceed?
    Please help.
    Thanks and Regards,
    Smriti Singh

    Hi,
    here a short example like i do it:
    * Mehr Beispile unter BCS_EXAMPLE_* mit se38
    * Mehr Beispile unter BCS_TEST*     mit se38
    DATA: SEND_REQUEST       TYPE REF TO CL_BCS.
    DATA: SUBJECT            TYPE SO_OBJ_DES.
    DATA: ATT_TYPE           TYPE SOODK-OBJTP.
    DATA: IT_TEXT            TYPE BCSY_TEXT.
    DATA: WA_TEXT            LIKE SOLI.
    DATA: IT_BIN             TYPE SOLIX_TAB.
    DATA: WA_BIN             TYPE SOLIX.
    DATA: DOCUMENT           TYPE REF TO CL_DOCUMENT_BCS.
    DATA: SENDER             TYPE REF TO CL_SAPUSER_BCS.
    DATA: RECIPIENT          TYPE REF TO IF_RECIPIENT_BCS.
    DATA: BCS_EXCEPTION      TYPE REF TO CX_BCS.
    DATA: SENT_TO_ALL        TYPE OS_BOOLEAN.
    * Bytes der Datei
    DATA: IT_LENGHT          TYPE SO_OBJ_LEN.
    DATA: N10(10)            TYPE N.
    START-OF-SELECTION.
      PERFORM MAIN.
      PERFORM RSCONN01_EXECUTE.
    END-OF-SELECTION.
    FORM MAIN.
      TRY.
    * Dokument erstellen (mit Anhang)
          SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
          PERFORM HEAD_CONT.
          PERFORM RAW_ATT.
    * Dokument (mit Anhang) setzen
          CALL METHOD SEND_REQUEST->SET_DOCUMENT( DOCUMENT ).
    * Absender setzen
          SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ).
          CALL METHOD SEND_REQUEST->SET_SENDER
            EXPORTING
              I_SENDER = SENDER.
    * Empfänger setzen
          RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(
                                            'email@address' ).
          CALL METHOD SEND_REQUEST->ADD_RECIPIENT
            EXPORTING
              I_RECIPIENT = RECIPIENT
              I_EXPRESS   = 'X'.
    * Dokument senden
          CALL METHOD SEND_REQUEST->SEND(
            EXPORTING
              I_WITH_ERROR_SCREEN = 'X'
            RECEIVING
              RESULT              = SENT_TO_ALL ).
          COMMIT WORK.
    * Sende-Error abfangen
        CATCH CX_BCS INTO BCS_EXCEPTION.
          WRITE: 'Fehler aufgetreten.'(001).
          WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
          EXIT.
      ENDTRY.
    ENDFORM.                    "main
    FORM HEAD_CONT.
      CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
      ATT_TYPE = 'RAW'.
      SUBJECT = 'Betreffzeile'.
      WA_TEXT = 'First Line'. APPEND WA_TEXT TO IT_TEXT.
      WA_TEXT = 'Second Line'. APPEND WA_TEXT TO IT_TEXT.
      DESCRIBE TABLE IT_TEXT LINES N10.
      N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
      IT_LENGHT = N10.
      TRY.
          DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
                    I_TYPE    = ATT_TYPE
                    I_TEXT    = IT_TEXT
                    I_LENGTH  = IT_LENGHT
                    I_SUBJECT = SUBJECT ).
    * Error abfangen
        CATCH CX_BCS INTO BCS_EXCEPTION.
          WRITE: 'Fehler aufgetreten.'(001).
          WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
          EXIT.
      ENDTRY.
    ENDFORM.                    "HEAD_CONT
    *&      Form  RAW_ATT
    *       text
    FORM RAW_ATT.
      CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
      ATT_TYPE = 'RAW'.
      SUBJECT = 'Text Anhang'.
      WA_TEXT = 'First Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
      WA_TEXT = 'Second Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
    * Lenght of Att_Text
      DESCRIBE TABLE IT_TEXT LINES N10.
      N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
      IT_LENGHT = N10.
      TRY.
          CALL METHOD DOCUMENT->ADD_ATTACHMENT
            EXPORTING
              I_ATTACHMENT_TYPE    = ATT_TYPE
              I_ATT_CONTENT_TEXT   = IT_TEXT
              I_ATTACHMENT_SIZE    = IT_LENGHT
              I_ATTACHMENT_SUBJECT = SUBJECT.
    * Error abfangen
        CATCH CX_BCS INTO BCS_EXCEPTION.
          WRITE: 'Fehler aufgetreten.'(001).
          WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
          EXIT.
      ENDTRY.
    ENDFORM.                    "ATT_RAW
    *&      Form  RSCONN01_EXECUTE
    *       text
    FORM RSCONN01_EXECUTE.
    * Besser 2 Sekunden warten, damit alles versendet ist
      WAIT UP TO 2 SECONDS.
      SUBMIT RSCONN01 WITH MODE   = 'INT'
                      WITH OUTPUT = ' '
                      AND  RETURN.
    ENDFORM.                    "RSCONN01_EXECUTE
    See also the mentioned examples.
    Hope it helps.
    Regards, Dieter

  • Mail.app - Moving email with attachment to a subfolder causes the email to convert to text format and lose the attachment

    I am Lion on Mac Book pro.
    When I move a mail with attachement to a folder, sometimes, it loses its mime-type and becomes a text formatted message. Hence the contents of the attachments are added as text to the mail and I cannot download the attachments then.
    This does not happen always, but almost 3/10 times.
    Thanks.
    Regards,
    Viraj

    What type of mail account is this (POP, IMAP, .Mac)? If IMAP or .Mac, what are your Preferences > Accounts > Mailbox Behaviors > Drafts settings?
    Go to Apple Menu > System Preferences > Network, choose Network Port Configurations from the Show popup menu, and make sure that the configuration used to connect to Internet appears at the top of the list. Turn OFF all the port configurations except the one needed to connect to Internet and see whether that helps — if it doesn’t, turn ON again the ones you want enabled.
    Open Keychain Access > Keychain First Aid and verify/repair the keychain.
    Try also turning OFF the Search For Certificates options in Keychain Access > Preferences if any of them is ON — take a look at the following articles for more information on this particular issue:
    http://www.hawkwings.net/2006/07/18/apple-mail-phones-home-too/
    http://www.macgeekery.com/tips/mailapp_doesnt_phone_homeeither/

  • Text format problem when sending mails

    Hi all,
    I am using the FM SO_DOCUMENT_SEND_API1 to send mail in text format, but the problem now is iam getting the space between each characters and also for each lines the alignment differs. can any one tel me how to solve this issue ?
    D o c u m e n t   N o       L o g   D e s c r i p t i o n                                                                               
    4 5 0 0 0 0 1 4 1 0       PO  d o n e   f o r   G o o d s   r e c e i p t   o f   P O   4 5 0 0 0 0 1 4 1 0                                                                               
    4 5 0 0 0 0 1 4 1 1                   PO   d o n e   f o r   G o o d s   r e c e i p t   o f   I n t e r C o P O   4 5 0 0 0 0 1 4 1 1                                                                               
    4 5 0 0 0 0 1 4 1 2          PO   d o n e   f o r   G o o d s   r e c e i p t   o f   I n t e r C o P O   4 5 0 0 0 0 1 4 1 2 .
    Thanks.

    Hi Siva,
    Seems problem with the types.Define following paramaters as shown below.
      DATA: DOCDATA    LIKE SODOCCHGI1 OCCURS 0,
           OBJPACK    LIKE SOPCKLSTI1 OCCURS 0,
            OBJHEAD    LIKE SOLISTI1   OCCURS 0,
            L_OBJTXT1     TYPE SOLISTI1,
            RECLIST    TYPE SOMLRECI1,
            DOC_CHNG TYPE  SODOCCHGI1,
            OBJPACK  TYPE SOPCKLSTI1.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            DOCUMENT_DATA                    = DOC_CHNG
         PUT_IN_OUTBOX                    = 'X'
         COMMIT_WORK                      = 'X'
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
          TABLES
          PACKING_LIST                     = L_OBJPACK
         OBJECT_HEADER                    = L_OBJHEAD
      CONTENTS_BIN                     =
           CONTENTS_TXT                     = L_OBJTXT
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
            RECEIVERS                        = L_RECLIST
       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.
    Regards,
    Ravinder

  • Convert spool in the text format and send mail

    Hi All
    Can anyone tell me
    how to convert the spool into the text format and send that in email as an attachment..
    Points will be rewarded
    URGENT

    Hi,
    Read spool using FM  RSPO_RETURN_ABAP_SPOOLJOB
    CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
        EXPORTING
          rqident                  = v_rqident   "Spool Number
      FIRST_LINE                 = 1
      LAST_LINE                  =
        TABLES
          buffer                     = i_spool "Internal table output
    You will get spool in internal table and then its your game, play the way you want.
    Regards,
    Mandeep

  • Which format for my template file? INI, XML or whatever?

    Hi all,
    I hope this is the right place for a basic help like this. I'm really unexperienced coder.
    I'm trying to create a program that allow me to create template of pre-formatted mail.
    An example is:
    To: sdasad
    CC: sadsa
    CCN: dsadsa
    Dear [customer],
    dsadsadsa
    dsadsadsa in [date] sdsadsadsa
    sadsadas our [product] dsadsa [price]
    cheers mate
    i'll use this template in my program to easily send mail with just editing the fields in [].
    How do you suggest me to save this template? INI maybe? or XML? or there is any other format that could suite best? plain txt file maybe?
    thanks
    Nico

    This is neither ini nor xml formatted data. Of course it is plain text, but since you are defining some templating rules, it a custom text format. You might want to use an extension like .template. If you absolutely must use something that already exists, you can look for an existing templating library for your chosen programming language, for c there is e.g. ctpl in the community repository.
    Edit: For a simple bash script Trilby has the right idea.
    Last edited by progandy (2014-09-30 17:53:21)

  • How do I enable bold/italic text formatting in blog module on website?

    For some reason I can't figure out how to enable more text formatting options on our blog. We used the blog module on a muse template. I customized the module to apply fonts we used on our website. The main text on the blog is Lato.
    Link to blog: Coupar Consulting
    When we go in to write a post you can use the bold/italics options and it shows up in the edit window as shown in the screenshot below:
    The font is not correct, but because I set the font in the module to use Lato it does show as lato when you publish, see preview below (notice no bold or italic text):
    What am I missing??
    Thanks in advance!!

    Use your browsers console and inspect tool. This stuff becomes very easy.
    address,caption,cite,code,dfn,em,strong,th,var,optgroup
      font-style: inherit;
      font-weight: inherit;
    Line 34 ish in - http://www.couparconsulting.com/css/site_global.css?3869595648
    This overides the font bold style on strong.

  • How do I Expand the Text Box in Mail Stationery?

    I have a question about using stationery in Mail. Is there anything I can do to make the text box in certain templates to hold more content? It seems that, in some templates (like Bamboo, for example), the text box expands automatically as more content is keyed in. Yet, in the Tack Board template, for example, the text box does not expand beyond what seems to be a fixed length for content. How can I get the text box in Tack Board to expand for additional content?

    Please check text input state defined , also if the form is inserted in any container then try to test out the form with different text input boxes in a new page.
    Additionally , check the mid-hieght of text inserted in frame.
    Thanks,
    Sanjit

Maybe you are looking for

  • Somebody knows what effect was used in this video on the text?

    somebody knows what effect was used in this video on the text? im talking about this "extreme drop shadow" he was using please help me i must have it for a project. thanks to anyone who can help me. Crown the Empire - Initiation - YouTube

  • How do I convert a jpg file to pdf file

    how do I convert a jpg file to pdf file

  • Problem with entering hieroglyphs!!!

    iPhone 5s iOS 8.0.2 Hello, since updating to iOS 8 and iOS 8.0.2 later, there is no possibility to enter hieroglyphic texts anymore! Particulary, it's impossible to enter texts in Japanese anymore!! It seems like iOS' makers just forgot to add to the

  • [CS3][JS] endBaseline

    Can anyone shine some light on how 'endBaseline' is different to just 'baseline'?

  • How to search a record in tlist

    Hi http://img158.exs.cx/img158/8268/tlist9fa.jpg as u can see in the screenshot..there is a textitem above the tlist...i want that text item to perform in such a way that when I enter 'ID' (which is the first column as shown in the tlist) of the matc