Hello!

Currently, I have the need to send a SMS programmatically. I got it
working with using the SmsSendMessage function, but unfortunately no
copy gets stored in the sent items folder.

So I thought about switching to MAPI. I opened the message store with
the display name "SMS", created a new message in the message store's
drafts folder, set the properties PR_EMAIL_ADDRESS and PR_SUBJECT and
finally called the message's SubmitMessage-Method. All this works as
expected (neither method returns an error or a warning). Unfortunately,
all it does is copying the message to the outbox folder, the message
does not get sent.

So what am I doing wrong? Maybe I have to set some more properties on
the message object? Additionally, SubmitMessage does not seem to block.
Is there a simple way to wait until the message got sent or, if the
message can not been sent, to return an error? Or can the SmsSendMessage
function be used to store a copy of the message in the sent items
folder? Or am I completely on the wrong track?

I know, this are many question, but maybe someone has some enlightenment
for me. :-)

Thanks,
Rene