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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have useed flowing code to open

Status
Not open for further replies.

5340fazi

Programmer
Nov 4, 2003
5
0
0
DK

I have useed flowing code to open outlook new mail It works fine on my pc but does not wrok on client pc. can some one tell me why. Thanks in advance fazi

MAPISession1.UserName = "fayaz"
MAPISession1.Password = ""
MAPISession1.DownLoadMail = False
MAPISession1.LogonUI = False
MAPISession1.SignOn
MAPIMessages1.SessionID = MAPISession1.SessionID

MAPIMessages1.Compose
MAPIMessages1.RecipAddress = "fazi@hotmail.com"
MAPIMessages1.RecipDisplayName = "fazi@hotmail.com"
MAPIMessages1.MsgSubject = "Testing"

MAPIMessages1.Send True
MAPISession1.SignOff
 
What errors are being generated? I had a simmiler problem using an SMTP library - the problem was I needed to add the relevent dll onto the client machine
 
i think in client pc everything was/is not setup perfectly
 
Did you use the Package and Deployment Wizard, or just copy the .exe?

Andy
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
"A computer program does what you tell it to do, not what you want it to do." -- Greer's Third Law
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top