Change font in e-mail body

Hi All,
I need to know whether it is possible to use multiple font styles in the body of an e-mail sent through a report program.
I am using the FM 'SO_DOCUMENT_REPOSITORY_MANAGER' as I want to send a document from the desktop as an e-mail attachment.
The FM 'SO_DOCUMENT_SEND_API1' does not serve the primary purpose of my requirement. So, it is eliminated.
Please suggest any method to achieve the requirement of using multiple font styles in e-mail body.
Thanks,
Dawood

If you set the document to be a HTML type, then you can use HTML scripting to set
the font.
Create send request
   send_request = cl_bcs=>create_persistent( ).
Create html content:
    mail_line = '.mail TBODY,{font-family:verdana;font-size:10pt;}'.
    append mail_line TO mail_text.
    ... (your text)
Create document with type 'HTM' and provide your HTML scripting
      document = cl_document_bcs=>create_document( i_type    = 'HTM'
                                                   i_text    = mail_text
                                                   i_subject = 'Subject' ).
Add document to send request
      CALL METHOD send_request->set_document( document ).
Send document
      CALL METHOD send_request->send( ).

Similar Messages

  • How to change font in SMPT mail

    How can I change the mailing font while i send the mail using oracle SMPT mailing utility.
    Thanks
    Vishal

    1.if you are sending the mail (body of the mail) in txt format you cannot do it.
    2. You can do it if you sent the mail in HTML format.

  • Change font size in mail app

    Can I change the font size and/or color in mail app?

    Change color:  No
    Change font size:  In the App, No
    But you can change the font size for everything in iPad:  Settings > General > Text Size use slider to increase or decrease text size.

  • Change font size in mail

    How can you change the the font size in mail when not using the "(classic) style, particularly the column that lists all your emails (2nd column).

    Change color:  No
    Change font size:  In the App, No
    But you can change the font size for everything in iPad:  Settings > General > Text Size use slider to increase or decrease text size.

  • Changing font in iCloud mail

    How do I permanently change the font & font size for outgoing emails on iCloud?
    I can do it manually, but then iCloud mail never "remembers" that change - grr. frustrating! Anyone solve this?

    Well, from a Mac's email app you can set font and size. 
    If using icloud.com, since that's browser based, hit comand-+ to see a message in a larger font.  Is this what you mean?  I wouldn't be surprised that using a browser, settings like font/size aren't stored.

  • Need Help Changing Font Size on Mail Program

    OS X 10.8.3
    My mail list under "sort by date" column has a small font which I would like to make bigger.
    I have gone to Mail>Preferences> Fonts & Colors but none of those cseem to change the font in the second mail column under (Sort by date).

    There generally is no way to change the font, or font size. TinkerTool is one of a few utilities that will allow the change of some items, but for the most part, the OS ignores any settings you use in TinkerTool.
    The default font for the system is Lucida Grande. You absolutely cannot change it. If you delete the font from the System folder, the OS will immediately replace it with a copy from a deeply hidden location. If you delete the font from both locations, the Mac will instantly become completely unusable, requiring a reinstall of the OS from your OS X installation disks. Unless you have another drive with OS X on it so you can copy Lucida Grande back to the drive you removed it from.
    About the only easy way to increase the font size overall is to select a lower resolution in the Displays section of the System Preferences.

  • Outlook script to change font format on mail sent to a specific recipient

    I'm trying to learn VBA for a number of more appropriate uses, but this one is kind of an inside joke.   My standard email font color is purple and the text is small and 'girly" (10 point Georgia).   My warehouse manager is always picking
    on me about  my email font and how his 'old eyes' can't read it.  Is there a way to write a script, or combine the rule that runs a script in order to change the font on emails sent to one specific person?  If anyone is going to bother to write
    it out for me (THANK YOU in advance btw), the font I'd like to use is 14 pt Candara in black.
    This is indeed more of a joke, but it will help me learn this VBA stuff.  I'm mostly using it in excel for now.
    Thank you thank you thank you.

    If you add the following macro to the ThisOutlookSession module, it will intercept your messages and if they are to '[email protected]' they are reformatted as requested - though frankly bold (included) looks better
    Option Explicit
    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
    Dim olInsp As Inspector
    Dim wdDoc As Object
    Dim oRng As Object
    If Item.To = "[email protected]" Then
    With Item
    .BodyFormat = olFormatHTML
    Set olInsp = .GetInspector
    Set wdDoc = olInsp.WordEditor
    Set oRng = wdDoc.Range
    .Display
    With oRng
    .Font.Name = "Candara"
    .Font.Bold = True
    .Font.Color = &H0
    .Font.Size = 14
    End With
    .Save
    End With
    End If
    lbl_Exit:
    Exit Sub
    End Sub
    Graham Mayor - Word MVP
    www.gmayor.com

  • I cannot change fonts in my mail.

    in the preference fonts and colors the select buttons don't work.
    i have checked forum.  none of the discussion have helped me solve this

    Susan,  When you click the select button, it pops up an additional window.  Look around for something that looks like this:

  • How can I change font color on mail?

    How can I make it so all emails start with an altered font color? Thanks!

    i just trialed it out, and under the prefs you have to select what font you want, and above it theres are little icons with the different font colours, theres like the colour spectrum circle thing, you should be able to take a selection, apply it and its all done.
    sorry i cant help more

  • How do i change the font color in mail message

    I am trying to change the Font colour in Mail message to Blue as a permanent preference in Mail - Preferences. The system does not accept the settings and goes back to black. Is there a way to change the same.

    The color of the font is determined by the recipient's email client. So you could change it, but it would depend on the recipient's settings.
    And besides, blue is harder to read.

  • Mail - OSX Lion - Can't change font in mail list

    OSX Lion seems incapable of changing the font in the mail list on the left side. The default is a horrendous, teeny tiny font. Going to Preferences > Fonts and Colors and choosing message list font reveals a font picker. All the other font settings work in this view except the message list font.
    If you go to the "Classic" (aka ugly) view, your message list font changes work.
    I am a big believer in software aesthetics, particularly in an app you are staring at all day.
    Please, oh please, Apple tell me this is not a default behavior! At the very least, if is truly is impossible to change this, and the over-50 crowd must squint at mail all day, indicate somewhere in the prefs panel that this will not work in the new view.
    I'm really hoping there's a solution for this. As cool as the new mail app is, this would be a deal breaker that would send me running back to Sparrow.

    "changing the font in the mail list on the left side"
    You can change the size of the font (just not the font type) here: Preferences - General - Sidebar icon size.

  • Change e-mail body in mail adapter using module.

    Hi All,
    I am woking with one mail adapter and I prepared one code to change the attachement name and body content. The attachement is working good but the body e-mail is not working.
    After to check a lot of blog my code now is creating two attachements one with the Payload (xml) and other with the text that suppose to come as a body e-mail.
    Someone could help me ?
    Thanks a lot.
    Michael Peretto

    Hi Michael,
    Can you check if your main attachment (the one that should be the mail text) does not carry the wrong content-disposition header?
    The easiest way to check is to use some message capturing tool (e.g., TCPGateway attached in the SOAP FAQ Note). If this header is present, it should have value inline to inform the mail client to display the content in inline. If the value is set wrong, the MessageTransformBean module can be misused to repair this content header.
    Best regards, Yza

  • How to change font type in java mail script?

    Hi,
    I wrote a bean shell script to send mail on particular event. I want mail message body text font style to be modified.
    Please provide help on this.
    Thanks,
    Saloni

    Hi Saloni ,
    You can add the text in the following way by using font tags for message body in your custom mail.
    Message msg = new MimeMessage(session);
    MimeMultipart mp = new MimeMultipart();
    MimeBodyPart mbp1= new MimeBodyPart();
    String htmlText = "<b> This is formatted</b>"+
    "<font size =\"5\" face=\"arial\" >This paragraph is in Arial, size 5</font>";
    mbp1.setContent(htmlText,"text/html");
    mp.addBodyPart(mbp1);
    msg.setContent(mp);
    It worked for me. Let me know if you face any issue.
    Regards,
    Uday.

  • Changing font case in Apple mail

    Cannot figure out how to change font case in apple Mail. For example if I accidentally typed my message in all CAPS how can I change my typed message to lower case ?
    Any ideas ?
    Thanks
    Ian

    Cannot figure out how to change font case in apple Mail. For example if I accidentally typed my message in all CAPS how can I change my typed message to lower case ?
    I think WordService might be able to do that:
    http://www.devon-technologies.com/products/freeware/services.html

  • Change font in mail?

    How can I change the font in my mail?

    You cannot change the font (you can't change the fonts at all on the iPad) but you can format the Helvetica font for bold, underline and italics.
    Select the type that you want to format - then tap the arrow on the right side of the options bar that pops up - that will take you to another options bar that has BUI on the left side. Tap that BUI (bold, underline, italics) and you can format the type for those options.

Maybe you are looking for