RE: Wants to know about outlook with perl

2002-10-23 Thread Michael Hooten
You can do this from Perl if you wish. What follows is VBA code that does
almost everything you want. You will have to convert it to Win32 Perl. (Hey,
I can't do everything for you.)

What is excluded is info regarding the username and password. This info is
definitely in the Outlook VBA help file. See how to do it in Outlook VBA
then simply convert the code to Win32 Perl. I have done the same thing with
Access VBA and it is fairly simple. Please refer to the link "Using OLE with
Perl" in the ActivePerl help file. There are many examples.

---BEGIN OFFENSIVE M$ CODE HERE-
Sub SendFile()
Dim ol As Outlook.Application
Dim olMail As Outlook.MailItem

Set ol = New Outlook.Application
Set olMail = ol.CreateItem(olMailItem)

With olMail
.Recipients.Add "[EMAIL PROTECTED]"
.Subject = "My subject goes here."
.Body = "This is a test."
.Attachments.Add "E:\Documents\attachment.doc", olByValue
.Send
End With

Set ol = Nothing
Set olMail = Nothing
End Sub
END OFFENSIVE M$ CODE HERE--

-Original Message-
From: Hello Buddy [mailto:hello_buddy_001@;yahoo.com]
Sent: Tuesday, October 22, 2002 9:44 PM
To: [EMAIL PROTECTED]
Subject: Wants to know about outlook with perl


Hi,
 I am totally beginner in Perl and programming. I
have no experience before. I want to know that "is it
possible to do with perl script to write and send the
mail for outlook without opening outlook
application?".
 What I mean is I just enter user name and
password for outlook account and give the text file of
message to perl and I want perl to do it
automatically. Thanks in advance for your answers.

Best regards
Aung

__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Wants to know about outlook with perl

2002-10-22 Thread Beau E. Cox
Wow -

First, I don't think you want to go to/from
Outlook - rather you want to access the mail
server that Outlook accesses. Check the tools->
accounts area to see what outlook is accessing.

Next, you _can_ use perl, by way of some modules
available on CPAN (www.cpan.org). You will most
likely need pop3 and smtp mail components.

This is a lot easier on Unix/Linux systems rather
than on M$ windows.

You have a steep learning curve adhead of you,
but it should be fun.

I would suggest you get your feet wet with some
less weighty projects to learn something about
perl an programming in general, but, you can
always just plunge in!

Please do some research: CPAN, how internet mail
works (pop3/smto, etc) mail formats, etc. Jump
into www.google.com and look!

Aloha => Beau.

-Original Message-
From: Hello Buddy [mailto:hello_buddy_001@;yahoo.com]
Sent: Tuesday, October 22, 2002 3:44 PM
To: [EMAIL PROTECTED]
Subject: Wants to know about outlook with perl


Hi,
 I am totally beginner in Perl and programming. I
have no experience before. I want to know that "is it
possible to do with perl script to write and send the
mail for outlook without opening outlook
application?". 
 What I mean is I just enter user name and
password for outlook account and give the text file of
message to perl and I want perl to do it
automatically. Thanks in advance for your answers.

Best regards
Aung

__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Wants to know about outlook with perl

2002-10-22 Thread Hello Buddy
Thanks Beau,
  Just one more questions, how about other
mail application like Novell GroupWise, Lotus Notes...

  The main objective for me is doing job
automatically without launching client mail
application. Will it be possible? What CPAN modules
should I study? I am on Win32 platform. My main
objective is to send mail users according to server
mail log file. 

Best regards
Aung
--- "Beau E. Cox" <[EMAIL PROTECTED]> wrote:
> Wow -
> 
> First, I don't think you want to go to/from
> Outlook - rather you want to access the mail
> server that Outlook accesses. Check the tools->
> accounts area to see what outlook is accessing.
> 
> Next, you _can_ use perl, by way of some modules
> available on CPAN (www.cpan.org). You will most
> likely need pop3 and smtp mail components.
> 
> This is a lot easier on Unix/Linux systems rather
> than on M$ windows.
> 
> You have a steep learning curve adhead of you,
> but it should be fun.
> 
> I would suggest you get your feet wet with some
> less weighty projects to learn something about
> perl an programming in general, but, you can
> always just plunge in!
> 
> Please do some research: CPAN, how internet mail
> works (pop3/smto, etc) mail formats, etc. Jump
> into www.google.com and look!
> 
> Aloha => Beau.
> 
> -Original Message-
> From: Hello Buddy [mailto:hello_buddy_001@;yahoo.com]
> Sent: Tuesday, October 22, 2002 3:44 PM
> To: [EMAIL PROTECTED]
> Subject: Wants to know about outlook with perl
> 
> 
> Hi,
>  I am totally beginner in Perl and programming.
> I
> have no experience before. I want to know that "is
> it
> possible to do with perl script to write and send
> the
> mail for outlook without opening outlook
> application?". 
>  What I mean is I just enter user name and
> password for outlook account and give the text file
> of
> message to perl and I want perl to do it
> automatically. Thanks in advance for your answers.
> 
> Best regards
> Aung
> 
> __
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.yahoo.com/
> 
> -- 
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> 
> -- 
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Wants to know about outlook with perl

2002-10-22 Thread Timothy Johnson

Along the same lines of what Beau was saying, check your settings to see if
you are using Exchange or SMTP (Internet Mail).  If you are using Exchange,
then you can still try using the SMTP modules, many Exchange servers support
SMTP from internal clients as long as you are on the LAN.  It depends on how
much security your Network Admin has on the Exchange server.  Trying to
automate Outlook would be a lengthy and complicated task that I wouldn't
recommend for anybody.  

There is a Win32::Exchange module out there that you can use to interface
with the Exchange directory services, but I would recommend that for someone
who was a little more comfortable with Perl, and in particular the idea of
references to data structures.  To get an idea of what I mean, type these at
the command prompt:
  perldoc perlreftut
  perldoc perllol
or even better, if you're using ActiveState (which I recommend), check out
the HTML documentation and look under "Perl Core Documentation" for
perlreftut and perllol.

Anyway, check out these modules if you can swing it so that you can use
SMTP:

  Mail::Sender (good for sending attachments)
  Net::SMTP(this module is actually a good way to get a basic
understanding of how SMTP works)
  MIME::Lite
  Mail::Sendmail



-Original Message-
From: Beau E. Cox [mailto:beau@;beaucox.com]
Sent: Tuesday, October 22, 2002 7:08 PM
To: Hello Buddy; [EMAIL PROTECTED]
Subject: RE: Wants to know about outlook with perl


Wow -

First, I don't think you want to go to/from
Outlook - rather you want to access the mail
server that Outlook accesses. Check the tools->
accounts area to see what outlook is accessing.

Next, you _can_ use perl, by way of some modules
available on CPAN (www.cpan.org). You will most
likely need pop3 and smtp mail components.

This is a lot easier on Unix/Linux systems rather
than on M$ windows.

You have a steep learning curve adhead of you,
but it should be fun.

I would suggest you get your feet wet with some
less weighty projects to learn something about
perl an programming in general, but, you can
always just plunge in!

Please do some research: CPAN, how internet mail
works (pop3/smto, etc) mail formats, etc. Jump
into www.google.com and look!

Aloha => Beau.

-Original Message-
From: Hello Buddy [mailto:hello_buddy_001@;yahoo.com]
Sent: Tuesday, October 22, 2002 3:44 PM
To: [EMAIL PROTECTED]
Subject: Wants to know about outlook with perl


Hi,
 I am totally beginner in Perl and programming. I
have no experience before. I want to know that "is it
possible to do with perl script to write and send the
mail for outlook without opening outlook
application?". 
 What I mean is I just enter user name and
password for outlook account and give the text file of
message to perl and I want perl to do it
automatically. Thanks in advance for your answers.

Best regards
Aung

__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Wants to know about outlook with perl

2002-10-22 Thread Beau E. Cox
Oh -

If you just want to send mail, try

Mail::Sendmail v. 0.78 - Simple platform independent mailer 

on CPAN. Check out the documentation.

Sorry - I don't know anything about your other apps,
but somewhwere down deep they _must_ be using one
or more of the internet swite of mail protocols
(pop,pop3,smtp,imap, etc.).

Good luck!

Aloha => Beau.

-Original Message-
From: Hello Buddy [mailto:hello_buddy_001@;yahoo.com]
Sent: Tuesday, October 22, 2002 4:32 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Wants to know about outlook with perl


Thanks Beau,
  Just one more questions, how about other
mail application like Novell GroupWise, Lotus Notes...

  The main objective for me is doing job
automatically without launching client mail
application. Will it be possible? What CPAN modules
should I study? I am on Win32 platform. My main
objective is to send mail users according to server
mail log file. 

Best regards
Aung
--- "Beau E. Cox" <[EMAIL PROTECTED]> wrote:
> Wow -
> 
> First, I don't think you want to go to/from
> Outlook - rather you want to access the mail
> server that Outlook accesses. Check the tools->
> accounts area to see what outlook is accessing.
> 
> Next, you _can_ use perl, by way of some modules
> available on CPAN (www.cpan.org). You will most
> likely need pop3 and smtp mail components.
> 
> This is a lot easier on Unix/Linux systems rather
> than on M$ windows.
> 
> You have a steep learning curve adhead of you,
> but it should be fun.
> 
> I would suggest you get your feet wet with some
> less weighty projects to learn something about
> perl an programming in general, but, you can
> always just plunge in!
> 
> Please do some research: CPAN, how internet mail
> works (pop3/smto, etc) mail formats, etc. Jump
> into www.google.com and look!
> 
> Aloha => Beau.
> 
> -Original Message-
> From: Hello Buddy [mailto:hello_buddy_001@;yahoo.com]
> Sent: Tuesday, October 22, 2002 3:44 PM
> To: [EMAIL PROTECTED]
> Subject: Wants to know about outlook with perl
> 
> 
> Hi,
>  I am totally beginner in Perl and programming.
> I
> have no experience before. I want to know that "is
> it
> possible to do with perl script to write and send
> the
> mail for outlook without opening outlook
> application?". 
>  What I mean is I just enter user name and
> password for outlook account and give the text file
> of
> message to perl and I want perl to do it
> automatically. Thanks in advance for your answers.
> 
> Best regards
> Aung
> 
> __
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.yahoo.com/
> 
> -- 
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> 
> -- 
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]