Page 1 of 1

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

Posted: Mon Jan 15, 2018 3:56 pm
by rnio
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?

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

Posted: Wed Jan 24, 2018 2:41 am
by rnio
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

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

Posted: Tue Feb 06, 2018 5:57 am
by Aaron
sys.Email now supports an additional flag for HTML emails, see https://www.sipsorcery.com/mainsite/Hel ... lans#Email.

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

Posted: Tue Feb 06, 2018 9:17 pm
by rnio
WOW, thanks for doing your MAGIC :)

Greatly appreciated!