Hi,
we used IMAP_mail_compose() once and have very bad experience with it. Sometimes it produced a result, sometimes not. Somebody told me that it is still considered to be a "beta". We are going to write own function, because this one was very unreliable.
Martin