Hi, I actualy use this code in foxpro...but there are some users interaction....could someone help me??
SESSION=CREATEOBJECT('mapi.session')
SESSION.LOGON("outlook","cyril"
NEW=SESSION.OUTBOX.MESSAGES.ADD && Create a new message.
NEW.SUBJECT = "Test Mail with OLE Messaging" && Add a message subject.
NEW.TEXT="xxxxxxxxxxxx"
SENDTO=NEW.RECIPIENTS.ADD && Add a recipient object
SENDTO.NAME="mailadress"&& Email address to mail messageto
SENDTO.TYPE=1 && 1= "TO:"; 2="CC:"; 3="BCC:"
SENDTO.RESOLVE() && Looks up address in addressbook.
NEW.UPDATE && Required to save changes to a message object.
NEW.SEND(1,0,0)
SESSION.LOGOFF && Release the MAPI object.
Thanks.
Cyril
SESSION=CREATEOBJECT('mapi.session')
SESSION.LOGON("outlook","cyril"
NEW=SESSION.OUTBOX.MESSAGES.ADD && Create a new message.
NEW.SUBJECT = "Test Mail with OLE Messaging" && Add a message subject.
NEW.TEXT="xxxxxxxxxxxx"
SENDTO=NEW.RECIPIENTS.ADD && Add a recipient object
SENDTO.NAME="mailadress"&& Email address to mail messageto
SENDTO.TYPE=1 && 1= "TO:"; 2="CC:"; 3="BCC:"
SENDTO.RESOLVE() && Looks up address in addressbook.
NEW.UPDATE && Required to save changes to a message object.
NEW.SEND(1,0,0)
SESSION.LOGOFF && Release the MAPI object.
Thanks.
Cyril