HTML in mailbodym

timsteeman

Member
Licensed User
Longtime User
I want to use html format in my emailbody (on the desktop)
Just wondering....Is it possible?
Thanks for the replies.
Tim
 

agraham

Expert
Licensed User
Longtime User

Erel

B4X founder
Staff member
Licensed User
Longtime User
Yes, using the door library:
B4X:
'obj is an Object (from the Door library).
Sub App_Start
    SMTP.New1(...)
    msg.New1
    obj.New1(false) 'initalize once.
    
    
    msg.AddTo("some@email.com")
    msg.Subject = "test"
    q = Chr(34)
    msg.Body = "this is a <a href="&q&"http://www.b4x.com"&q&">test</a>."
    msg.From = "me@me.com"
    obj.Value = msg.Value
    [B]obj.SetProperty("IsBodyHtml",true)[/B]
    SMTP.Send(msg.Value)
End Sub
 

timsteeman

Member
Licensed User
Longtime User
What i really want to do....

I want to create a mailprog, where you can create and send mails to a group. And i want to create that mail in htmlformat, so with fonts, background colors, pictures and so on...
Thanks for all your good tips.
 
Top