You can also have the welcome mail stored in a file (using RFC 822 format) and have it added to the users mailbox in the same script you do the zmprov calls to create the account.
Something like:
Code:
zmmailbox -z -m newuser@example.com addMessage /Inbox message_file.txt
this will return the message id in the user's mailbox so you can do other things with it, like set it as
unread with
Code:
zmmailbox -z -m newuser@example.com markMessageRead MESSAGE_NUMBER 0
0 for
unread, 1 for
read.
((Note: I tried using the -F option with Unread in addMessage, but it didn't work on my test server, perhaps you'll get a different result.))