Page 2 of 2 <12
Topic Options
#84777 - 2002-01-07 02:55 AM Re: Tester needed - Outlook and Outlook Express Automation
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
attiahia,

Make the following modifications to the script, and you should be good to go!

code:

$MailItem.Attachments.Add("C:\TEST\TEST.LNK")
$MailItem.Send

HTH,

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#84778 - 2002-01-07 06:54 AM Re: Tester needed - Outlook and Outlook Express Automation
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
Alex, Kdyer Thank you a lot .

Can I place shortcut or URL in the e-mail?

Thanks

Top
#84779 - 2002-01-07 07:58 AM Re: Tester needed - Outlook and Outlook Express Automation
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I believe it depends on the SP of Outlook. For example, Outlook 2000 up to SP-2 allows "dangerous" extensions to be sent through (like EXE). I believe there are patch work-arounds for this too, however Outlook XP has settings to turn these features on or off.

HTH,

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#84780 - 2002-01-07 11:34 PM Re: Tester needed - Outlook and Outlook Express Automation
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I've UDF'ed this, since it works in my work environment...

code:

;*************************************************************************************************************************
;example Email("Wheelerc","Test of email","This will send an email to a valid ahca email address")

Function email($Recipient, $Subject, optional $Body, optional $Attachment)
$Root = CreateObject("Outlook.Application")
$MailItem = $Root.CreateItem(0)
$MailItem.Importance = 2
$MailItem.Subject = "Automation Test"
$MailItem.To = "$Recipient@@fdhc.state.fl.us"
if $Body $MailItem.Body = $Body endif
if $Attachment $MailItem.Attachments.Add("$Attachment") endif
$MailItem.Send
$Root = ""
EndFunction

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#84781 - 2002-02-04 01:03 PM Re: Tester needed - Outlook and Outlook Express Automation
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
I want to send an exe shortcut (\\Server_name\Shared_Name\Program.exe) as body of the e-mail.

I tried: $MailItem.HTMLBody = "\\Server_name\Shared_Name\Program.exe"

But did not work.

Please Help

Thank you.

[ 04 February 2002: Message edited by: attiahia ]

Top
#84782 - 2002-02-04 01:50 PM Re: Tester needed - Outlook and Outlook Express Automation
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
attiahia,
try this one instead :
$MailItem.HTMLBody = "\\Server_name\Shared_Name\Program.exe.lnk"

Also, did you manage to get something with AD ? I completely lost (and forgot, i have to say) the thread about it.

_________________________
? getobject(Kixtart.org.Signature)

Top
#84783 - 2002-02-05 08:30 AM Re: Tester needed - Outlook and Outlook Express Automation
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
I am really receiving great support from you and some time I feel that I owe you.

$MailItem.HTMLBody = "\\Server_name\Shared_Name\Program.exe.lnk"
Did Not work, I received the e-mail but the shortcut was not active, it was just TXT.

According AD & LDA your first function worked excellent and it save me a lot.

But when I tried to use it to handle our internet user, it did not work.

I know that some time (maybe all time) my questions become boring, therefore I do not like to repeat my LDAP question/problem here again. Please extend your usual help and refer to it in the scripts forum http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=2&t=002711

I am waiting your or shawn help to answer my last question (in above link) which I posted on 21 January 2002

Thank you.

[ 05 February 2002: Message edited by: attiahia ]

[ 05 February 2002: Message edited by: attiahia ]

[ 05 February 2002: Message edited by: attiahia ]

Top
Page 2 of 2 <12


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

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.063 seconds in which 0.024 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