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
2024-02-09 [RSLHA] No access possible!
2024-02-09 [RSLHA] Database Error!
2024-02-18 [Dr_Rick] What happened to Bruno
2024-03-08 [mole] Thanks for getting the posts back again.
2024-04-17 [MarineV] db errors
2024-04-18 [MarineV] will the db errors get fixed????
2024-04-26 [Tonny] database error, please!
2024-05-09 [NTDOC] I'm not seeing any errors
2024-05-31 [chojin] DB is down again \:\(
2024-06-04 [selsner] Still no access, please help!
2024-06-07 [mole] Looks like DB is back again. Thanks.
2024-06-17 [It_took_my_meds] We encountered a problem. The reason reported was Database error only visible to forum administrators Please click back to return to the previous page.
2024-07-04 [Armin73] There is still a database error 🤷‍♂️
2024-07-09 [0neZero] There is still a database error 🤷‍♂️
2024-07-10 [Allen] DB working a few times in between the messages above. Working again as of 7/10. Thanks Doc
2024-08-31 [NetGnostic] Bummer, the Database error is back.
2024-09-04 [NTDOC] Fourms are back up without error for the moment
2024-10-02 [Arend_] Wll still have database errors ;-)
2024-10-03 [Allen] Thanks to Doc... it's back.
2024-12-09 [chojin] could we move kixtart to a new place in order to keep it living ? maybe create a github page and a subreddit?
2024-12-10 [Allen] do know about moving it, but I know Doc is aware of the DB issue. Should be back online soon.
2024-12-10 [Allen] don't know...
2025-02-09 [Comet] Greetings. I installed KiX on my new Windows 11 computer, and joined this foum. Hello World!
2025-02-10 [Allen] Welcome
2025-02-15 [Glenn Barnas] Discord? Reddit? New URL?
2025-03-07 [Comet] UBB Error We encountered a problem. The reason reported was Database error only visible to forum administrators
2025-06-30 [mole] Thanks for getting this working again.
2025-07-28 [mole] UBB Error We encountered a problem. The reason reported was Database error only visible to forum administrators
2025-08-01 [Arend_] I think it's fixed, I don't have the problem.
2025-10-06 [Comet] The UBB Error no longer happens for me.

Who's Online
0 registered and 925 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.245 seconds in which 0.164 seconds were spent on a total of 13 queries. Zlib compression enabled.

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