2009 Mail Codeunit and Formatting

MauddibMauddib Member Posts: 269
Does anyone know where I can get a developer guide for the Mail Codeunit for using OSendMail, BSTRConverterBody and so on?

I am having formatting problems while using this code. Line breaks appearing where they should not for example in HTML format. I also do not know how to set or choose the FONT when using something like Rich Text.

Has anyone also suffered from Random Client failures while using this Email? A few users have reported the client crashing while trying to create an outlook email.

Comments

  • vremeni4vremeni4 Member Posts: 323
    Hi,

    I would suggest to use codeunit 400 SMTP Mail to send emails.
    OSendMail is based on outlook synchronization and in my experience is very "touchy" = it is difficult to make it work.
    If you can try to avoid this codeunit and use SMTP to send your emails.

    I hope this helps.
Sign In or Register to comment.