how create a mailtitem and write the sender name and receive time

C

Christoph Guentner

Hello,

I write an Outlook AddIn, that receives SMS via a cell phone. I want to add
the received SMS a new mails in the inbox.
I can create new mail items and set the body and/or subject to the SMS. That
works fine.

But I cannot set the Sendername to the senders phonenumber.
And I cannot set the ReceivedTime!
Because these properties are read only.

So is there a way to create a mailitem in the inbox, of which I can set the
SenderName and the ReceivedTime?

(I use VB 6 to create that addin)

Many thanks,
Chris
 
K

Ken Slovak - [MVP - Outlook]

Those properties are set by the transport and you can't change or set them
as far as I know. Why not just have the SMS messages sent to an email
address that is being polled by Outlook, that would avoid the entire
problem.
 
C

Christoph Guentner

thanks for the reply.
Good idea!
Is there a way to create a local email account that is beeing polled by
outlook (without an exchange server).
Would I need a local email server for this? Or do I have program one?

Regards,
Christoph
 
K

Ken Slovak - [MVP - Outlook]

You could use any SMTP server to send/receive POP3/SMTP messages, there's
one built into Outlook 2000 Pro for example. You just have to set it up,
which involves Windows so you'll have to get more information about that in
a Windows group or book.

If you do that you'd need a domain that was exposed to the Internet and
registered in DNS so people could send to it of course. What I really meant
was just setting up a standard POP3 account in Outlook with a standard ISP
and using that, or you could even set up a special mailbox in Exchange and
add that to an Outlook profile. There are a lot of ways to do what you seem
to want with no coding at all. You could even use a Hotmail account and set
that up in Outlook and send the SMS to the Hotmail account.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top