[SOLVED] EMAIL-BODY format ... (MailFormat.Html?!)

Found something wrong ?
Post Reply
rnio
Posts: 77
Joined: Tue Jul 03, 2012 4:56 pm

[SOLVED] EMAIL-BODY format ... (MailFormat.Html?!)

Post by rnio » Mon Jan 15, 2018 3:56 pm

Hi Aaron,

I like to FORMAT (e.g. bold / different FONT e.g. courier) items inside the email body

sys.Email(string to, string subject, string body)

Looking at the source it appears you do not set the HTML flag:

Code: Select all

email.IsBodyHtml = true; 
ALSO can you INCREASE the "private const int MAX_EMAIL_BODY_LENGTH = 2048;" to maybe 4096?
Last edited by rnio on Tue Feb 06, 2018 9:17 pm, edited 1 time in total.

rnio
Posts: 77
Joined: Tue Jul 03, 2012 4:56 pm

Re: EMAIL-BODY format ... (MailFormat.Html?!)

Post by rnio » Wed Jan 24, 2018 2:41 am

Hi Aaron,

looking at the code I see that the email body is SIMPLE TEXT only.

Any HOPE that we will get HTML enabled email bodies sometime in the future?

Robert

User avatar
Aaron
Site Admin
Posts: 4569
Joined: Thu Jul 12, 2007 12:13 am

Re: EMAIL-BODY format ... (MailFormat.Html?!)

Post by Aaron » Tue Feb 06, 2018 5:57 am

sys.Email now supports an additional flag for HTML emails, see https://www.sipsorcery.com/mainsite/Hel ... lans#Email.

rnio
Posts: 77
Joined: Tue Jul 03, 2012 4:56 pm

Re: EMAIL-BODY format ... (MailFormat.Html?!)

Post by rnio » Tue Feb 06, 2018 9:17 pm

WOW, thanks for doing your MAGIC :)

Greatly appreciated!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest