Page 1 of 1 1
Topic Options
#69610 - 2002-09-02 02:40 PM Automatic mail
locos54 Offline
Lurker

Registered: 2002-09-02
Posts: 2
I want to use the following script to generate an automatic mail:

$OutlookMailItem = 0
$recipient = "recipient"
$subject = "subject"
$message = "message"
$outlook= OleCreateObject("outlook.application")
$namespace= Val("&"+OleCallFunc($outlook, "getnamespace", "s", "MAPI"))
$= OleCallFunc($namespace, "logon")
$mailitem= Val("&"+OleCallFunc($outlook, "createitem", "s", "0"))
$recipients= Val("&"+OleGetProperty($mailitem,"recipients"))
$= OleCallFunc($recipients,"add","s","$recipient")
$= OlePutProperty($mailitem, "subject", "s", "$subject")
$= OlePutProperty($mailitem, "body", "s", "$message")
$= OleCallFunc($mailitem, "send")
$= OleCallFunc($namespace, "logoff" )
$= OleReleaseObject($recipients)
$= OleReleaseObject($mailitem)
$= OleReleaseObject($outlook)

Unfortunately, this only works in older versions of kix32. Can anyone help me with this piece of scripting to adjust it? I would like to use it with the newest version 4.11 ! I don't know how this COM automation works!

Thnx in advance

Top
#69611 - 2002-09-02 09:00 PM Re: Automatic mail
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hi,

Might want to check out this thread,

Topic: Tester needed - Outlook and Outlook Express Automation

Think there is a UDF for this as well, here:

Topic: Sendmail() - Sends a Email

Hope this helps,

-Shawn

Top
#69612 - 2002-09-03 10:28 AM Re: Automatic mail
locos54 Offline
Lurker

Registered: 2002-09-02
Posts: 2
Thanks, That just did the job for me !!!
Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 867 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.18 seconds in which 0.154 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org