| 
| 
| 
| #84757 - 2001-12-31 03:51 PM  Tester needed - Outlook and Outlook Express Automation |  
| Alex.H   Seasoned Scripter
 
 Registered:  2001-04-10
 Posts: 406
 Loc:  France
 | 
Since i don't have Outlook Express installed (to be honest, I'm allergic to O and OE), can someone test this script with it ? (don't forget to change the destination address)
 code:
 $Root = CreateObject("Outlook.Application")
 $MailItem = $Root.CreateItem(0)	; olMailItem object
 $MailItem.Importance=2
 $MailItem.Subject = "Automation Test"
 $MailItem.To = "Please edit me@I_really_want_it"		; Multiple element can be separated with ;
 $MailItem.Body = "this is a test sample of a future SendMail UDF()"
 $MailItem.Send
 
 
 TIA [ 31 December 2001: Message edited by: Alex.H ] 
_________________________? getobject(Kixtart.org.Signature)
 |  
| Top |  |  |  |  
| 
| 
| #84758 - 2001-12-31 04:12 PM  Re: Tester needed - Outlook and Outlook Express Automation |  
| Anonymous 
Anonymous Unregistered
 
 
 
 | 
I had tested it with OE5.5 SP2.I got the following error:
 Script error : unknown command !
 $MailItem.Importance=2
 UPDATE: By every command who starts with $Mailitem. I get this error. [ 31 December 2001: Message edited by: awinkel ] |  
| Top |  |  |  |  
| 
| 
| #84760 - 2001-12-31 04:17 PM  Re: Tester needed - Outlook and Outlook Express Automation |  
| Anonymous 
Anonymous Unregistered
 
 
 
 | 
Maybe it's handy to know that I haven't Outlook installed only Outlook Express.
 |  
| Top |  |  |  |  
| 
| 
| #84761 - 2001-12-31 04:18 PM  Re: Tester needed - Outlook and Outlook Express Automation |  
| Anonymous 
Anonymous Unregistered
 
 
 
 | 
I get the following error yet.Script error : unknown command !
 $MailItem = $Root.CreateItem(0) ; olMailItem object
 
 |  
| Top |  |  |  |  
| 
| 
| #84762 - 2001-12-31 04:27 PM  Re: Tester needed - Outlook and Outlook Express Automation |  
| Alex.H   Seasoned Scripter
 
 Registered:  2001-04-10
 Posts: 406
 Loc:  France
 | 
I've got my answer, thanksIn fact, I was wondering if Outlook Express had the same automation object than Outlook, and the result you got show that it's not the case. Damn M$
 Add this to be sure just after the createobject:? "" + @serror
 [ 31 December 2001: Message edited by: Alex.H ] 
_________________________? getobject(Kixtart.org.Signature)
 |  
| Top |  |  |  |  
| 
| 
| #84763 - 2001-12-31 04:35 PM  Re: Tester needed - Outlook and Outlook Express Automation |  
| Anonymous 
Anonymous Unregistered
 
 
 
 | 
It returns: Invalid class string
 |  
| Top |  |  |  |  
| 
| 
| #84765 - 2001-12-31 04:39 PM  Re: Tester needed - Outlook and Outlook Express Automation |  
| Anonymous 
Anonymous Unregistered
 
 
 
 | 
So it's clear that it will work with Outlook but doesn't work with Outlook Express.Maybe a new project?
   |  
| Top |  |  |  |  
| 
| 
| #84766 - 2001-12-31 04:42 PM  Re: Tester needed - Outlook and Outlook Express Automation |  
| Alex.H   Seasoned Scripter
 
 Registered:  2001-04-10
 Posts: 406
 Loc:  France
 | 
Outlook is installed with Ms Office.Outlook Express is his little brother, completely free(!) and without some (most of ?) features
 On the other hand, i didn't know that Ms add this messagebox. Well, a sendkeys("Enter") will be enough.
 Thanks guys [ 31 December 2001: Message edited by: Alex.H ] 
_________________________? getobject(Kixtart.org.Signature)
 |  
| Top |  |  |  |  
| 
| 
| #84768 - 2002-01-02 01:56 PM  Re: Tester needed - Outlook and Outlook Express Automation |  
| Alex.H   Seasoned Scripter
 
 Registered:  2001-04-10
 Posts: 406
 Loc:  France
 | 
LolJust a way to send a mail only with usual mail utilities.
 
_________________________? getobject(Kixtart.org.Signature)
 |  
| Top |  |  |  |  
| 
| 
| #84773 - 2002-01-03 02:07 AM  Re: Tester needed - Outlook and Outlook Express Automation |  
| Kdyer   KiX Supporter
 
       
   Registered:  2001-01-03
 Posts: 6241
 Loc:  Tigard, OR
 | 
Alex,Works great! Couple of suggestions.. After the send piece, I added:$Root.Quit
 $Root = ""
 To cleanly close out of Outlook. Have a look at - http://www.mvps.org/word/FAQs/InterDev/SendMail.htm  and there is a "test function" to see if Outlook is open and if not, it closes it otherwise, it remains open. Thanks! - Kent |  
| Top |  |  |  |  
| 
| 
| #84776 - 2002-01-06 03:39 PM  Re: Tester needed - Outlook and Outlook Express Automation |  
| Alex.H   Seasoned Scripter
 
 Registered:  2001-04-10
 Posts: 406
 Loc:  France
 | 
I didn't really get a look to this part, only the possbility to send a mail when all is getting wrong, something like : Hey sucker, your f$^ù script don't work at all unless the sendmail for this user : ... Now go and correct this and don't ever mind to sleep this night.
 But you should get a look to the link kdyer provide, the attachment part is at the end (in VB, but easy to transcribe). 
_________________________? getobject(Kixtart.org.Signature)
 |  
| Top |  |  |  |  
 Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
 
 | 
| 
 
| 0 registered
and 360 anonymous users online. 
 | 
 |  |