Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set property .MsgOrigAddress of class MS_Message (MSMAPI32)?

Status
Not open for further replies.

Fabmoda

Programmer
Jun 13, 2002
14
IT
I've write a vfp procedure that send a mail using classes of MSMAPI32.OCX. It works correctly but when I try to force the value of the property MsgOrigAddress (of the class MS_Message) it returns me an error:

"the property is read-only"

any suggestion?

tnx a lot

Fabiano

 
Thats because it is read only.

You're looking at a property of the currently read message specified by .msgindex. You're not composing a new message, and even when you are, use the .RecipIndex and .RecipDisplayName to set the message recipients.



Sweep
...if it works dont mess with it
 
Of course, I know that .RecipIndex and .RecipDisplayName set the message recipients but I need to force the ORIGIN ADDRESS. I need to specify the address of the sender in order to force an address different from the one of the account that actually send the mail.

Example: suppose that bob@mail.com is the default account that send the mail (the default account of Outlook Express). I want that the recipient will read tom@mail.com as mail-sender instead of bob@mail.com (the one that send the message)


please tell me if it is possible.
fabiano
 
Fabmoda,

No it's not possible. The messaging system will sets MsgOrigAddress property internally.

-- AirCon --
 
Ok I lost!
Does someone know any way to choose the account(that will send the message) during the run-time?


tnx
fabiano
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top