HTML in mailbodym

timsteeman

Member
Licensed 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

Erel

Administrator
Staff member
Licensed 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.basic4ppc.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
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