Android Question Send formatted text in email

le_toubib

Active Member
Licensed User
Longtime User
Hi all
I'm using Smtp , sending pain text ( not statement) , but I'd like to set a left margin to that text .
Probably also to set done of it as bold .
Where do I start?
 

DonManfred

Expert
Licensed User
Longtime User
Create a html mail instead of plaintext
 
Upvote 0

Ohanian

Active Member
Licensed User
Longtime User
Hi all
I'm using Smtp , sending pain text ( not statement) , but I'd like to set a left margin to that text .
Probably also to set done of it as bold .
Where do I start?

Hi,

try this :

B4X:
Dim oSMTP As SMTP
    oSMTP.HtmlBody = True
    oSMTP.Body = "<span style='margin-left: 10px;'>Hello, <b>Bold Text</b></span>"
    ...
    oSMTP.Send
 
Upvote 0
Top