Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Login to MS Exchange to send e-mail

Reply
Thread Tools

Login to MS Exchange to send e-mail

 
 
Y W Wong
Guest
Posts: n/a
 
      05-27-2004
Dear all,

Anyone know that how can I login to a MS Exchange server using my corporate
e-mail account to send a e-mail.
I use to do some automatic job and send the result to my colleagues in my
corporation.
I am using a RH9 Linux box and prefer to use Perl or shell script to do
that.

Many thanks,

YW


 
Reply With Quote
 
 
 
 
Petri
Guest
Posts: n/a
 
      05-27-2004
In article <c956nn$23eb$>, Y W Wong says...
> Anyone know that how can I login to a MS Exchange server using
> my corporate e-mail account to send a e-mail.
> I use to do some automatic job and send the result to my
> colleagues in my corporation.
> I am using a RH9 Linux box and prefer to use Perl or shell
> script to do that.


Ask your exchange admin to start the SMTP-, and IMAP- or POP3-connectors on the
Exchange Server.
Then use the usual mail-modules available from CPAN.

If the connectors aren't already active, that is.
Have you checked if they are?


Petri

 
Reply With Quote
 
 
 
 
Y W Wong
Guest
Posts: n/a
 
      05-28-2004
I just want to act as a simple script type MS Outlook to send text mail.
Anyone know how ?


"Petri" <> 在郵件 news:
中撰寫...
> In article <c956nn$23eb$>, Y W Wong says...
> > Anyone know that how can I login to a MS Exchange server using
> > my corporate e-mail account to send a e-mail.
> > I use to do some automatic job and send the result to my
> > colleagues in my corporation.
> > I am using a RH9 Linux box and prefer to use Perl or shell
> > script to do that.

>
> Ask your exchange admin to start the SMTP-, and IMAP- or POP3-connectors

on the
> Exchange Server.
> Then use the usual mail-modules available from CPAN.
>
> If the connectors aren't already active, that is.
> Have you checked if they are?
>
>
> Petri
>



 
Reply With Quote
 
Grant Edwards
Guest
Posts: n/a
 
      05-28-2004
On 2004-05-28, Y W Wong <> wrote:

>>> Anyone know that how can I login to a MS Exchange server using
>>> my corporate e-mail account to send a e-mail. I use to do some
>>> automatic job and send the result to my colleagues in my
>>> corporation. I am using a RH9 Linux box and prefer to use Perl
>>> or shell script to do that.

>>
>> Ask your exchange admin to start the SMTP-, and IMAP- or
>> POP3-connectors on the Exchange Server. Then use the usual
>> mail-modules available from CPAN.

>
> I just want to act as a simple script type MS Outlook to send
> text mail. Anyone know how ?


Yes. You've just been told how. What part of the answer
didn't you understand?

--
Grant Edwards grante Yow! Hey, waiter! I want
at a NEW SHIRT and a PONY TAIL
visi.com with lemon sauce!
 
Reply With Quote
 
Y W Wong
Guest
Posts: n/a
 
      05-29-2004
I understood the SMTP and POP3 description.
But it doesn't answer my question.
I am asking how to login like MS Outlook, not by POP3 or SMTP.
Hope that someone know what I am asking for.


"Grant Edwards" <> 在郵件
news: 中撰寫...
> On 2004-05-28, Y W Wong <> wrote:
>
> >>> Anyone know that how can I login to a MS Exchange server using
> >>> my corporate e-mail account to send a e-mail. I use to do some
> >>> automatic job and send the result to my colleagues in my
> >>> corporation. I am using a RH9 Linux box and prefer to use Perl
> >>> or shell script to do that.
> >>
> >> Ask your exchange admin to start the SMTP-, and IMAP- or
> >> POP3-connectors on the Exchange Server. Then use the usual
> >> mail-modules available from CPAN.

> >
> > I just want to act as a simple script type MS Outlook to send
> > text mail. Anyone know how ?

>
> Yes. You've just been told how. What part of the answer
> didn't you understand?
>
> --
> Grant Edwards grante Yow! Hey, waiter! I

want
> at a NEW SHIRT and a PONY

TAIL
> visi.com with lemon sauce!



 
Reply With Quote
 
Grant Edwards
Guest
Posts: n/a
 
      05-29-2004
In article <c9adch$1sjv$>, Y W Wong wrote:

>> >>> Anyone know that how can I login to a MS Exchange server using
>> >>> my corporate e-mail account to send a e-mail. I use to do some
>> >>> automatic job and send the result to my colleagues in my
>> >>> corporation. I am using a RH9 Linux box and prefer to use Perl
>> >>> or shell script to do that.
>> >>
>> >> Ask your exchange admin to start the SMTP-, and IMAP- or
>> >> POP3-connectors on the Exchange Server. Then use the usual
>> >> mail-modules available from CPAN.
>> >
>> > I just want to act as a simple script type MS Outlook to send
>> > text mail. Anyone know how ?

>>
>> Yes. You've just been told how. What part of the answer
>> didn't you understand?

>
> I understood the SMTP and POP3 description. But it doesn't
> answer my question. I am asking how to login like MS Outlook,
> not by POP3 or SMTP.


You can't. Outlook uses a proprietary, undocumented protocol
to talk to Exchange server. The only way to send mail w/o
using SMTP is to run you application under Windows and use the
COM interface to Outlook and send mail using Outlook itself.

You said that what you want to do is use a simple script
interface to send text e-mails. That is about as far from
being "like Outlook" as you can get.

--
Grant Edwards grante Yow! HOORAY, Ronald!! Now
at YOU can marry LINDA
visi.com RONSTADT too!!
 
Reply With Quote
 
Joe
Guest
Posts: n/a
 
      05-29-2004
In message <40b8c454$0$17252$>, Grant
Edwards <> writes
>In article <c9adch$1sjv$>, Y W Wong wrote:
>
>>
>> I understood the SMTP and POP3 description. But it doesn't
>> answer my question. I am asking how to login like MS Outlook,
>> not by POP3 or SMTP.

>
>You can't. Outlook uses a proprietary, undocumented protocol
>to talk to Exchange server. The only way to send mail w/o
>using SMTP is to run you application under Windows and use the
>COM interface to Outlook and send mail using Outlook itself.
>

The protocol is called MAPI. Search for this on the Net to get a feel
for the ease of interfacing with it.
--
Joe
 
Reply With Quote
 
Grant Edwards
Guest
Posts: n/a
 
      05-29-2004
On 2004-05-29, Joe <> wrote:

>>> I understood the SMTP and POP3 description. But it doesn't
>>> answer my question. I am asking how to login like MS Outlook,
>>> not by POP3 or SMTP.

>>
>>You can't. Outlook uses a proprietary, undocumented protocol
>>to talk to Exchange server. The only way to send mail w/o
>>using SMTP is to run you application under Windows and use the
>>COM interface to Outlook and send mail using Outlook itself.

>
> The protocol is called MAPI. Search for this on the Net to get a feel
> for the ease of interfacing with it.


MAPI (Messaging Application Program Interface) is the library
API rather than the protocol:

http://www.outlookcode.com/d/mapi.htm

--
Grant Edwards grante Yow! It don't mean a
at THING if you ain't got
visi.com that SWING!!
 
Reply With Quote
 
Petri
Guest
Posts: n/a
 
      05-29-2004
In article <c9adch$1sjv$>, Y W Wong says...
>>>> Ask your exchange admin to start the SMTP-, and IMAP- or
>>>> POP3-connectors on the Exchange Server. Then use the usual
>>>> mail-modules available from CPAN.


>>> I just want to act as a simple script type MS Outlook to
>>> send text mail. Anyone know how ?


>> Yes. You've just been told how. What part of the answer
>> didn't you understand?


> I understood the SMTP and POP3 description.
> But it doesn't answer my question.
> I am asking how to login like MS Outlook, not by POP3 or SMTP.
> Hope that someone know what I am asking for.


Do you know, yourself?
Use POP3 or IMAP to login to your exchange mailbox, just like Outlook does.
What's the problem?

Actually, you probably don't even have to login at all, since you claim you only
want to send email, and SMTP authentication is not on by default in Exchange
Server.
use Net::SMTP; # Or anyone of the numerous free email modules on CPAN.


Petri

 
Reply With Quote
 
Y W Wong
Guest
Posts: n/a
 
      05-30-2004
How about POP3 cannot be enabled by some reason ?
I think we have to send to a smarthost by SMTP, is it ?
My requirement is not to using POP3 nor SMTP to send mail through MS
Exchange.
Hope u really understand what I am asking for.

Yan

"Petri" <> 在郵件 news: 中
撰寫...
> In article <c9adch$1sjv$>, Y W Wong says...
> >>>> Ask your exchange admin to start the SMTP-, and IMAP- or
> >>>> POP3-connectors on the Exchange Server. Then use the usual
> >>>> mail-modules available from CPAN.

>
> >>> I just want to act as a simple script type MS Outlook to
> >>> send text mail. Anyone know how ?

>
> >> Yes. You've just been told how. What part of the answer
> >> didn't you understand?

>
> > I understood the SMTP and POP3 description.
> > But it doesn't answer my question.
> > I am asking how to login like MS Outlook, not by POP3 or SMTP.
> > Hope that someone know what I am asking for.

>
> Do you know, yourself?
> Use POP3 or IMAP to login to your exchange mailbox, just like Outlook

does.
> What's the problem?
>
> Actually, you probably don't even have to login at all, since you claim

you only
> want to send email, and SMTP authentication is not on by default in

Exchange
> Server.
> use Net::SMTP; # Or anyone of the numerous free email modules on CPAN.
>
>
> Petri
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MCSE 2003 w/Exchange or MCITP 2008 w/Exchange Juan MCITP 3 06-19-2009 07:29 PM
Cannot send mail from Exchange 2007 mailbox to Exchange 2003 mailb =?Utf-8?B?am9zdWU=?= MCSE 3 08-15-2007 12:02 PM
Exchange Links < Western Cartoon Cards > Exchange Links www.westerncartooncards.ca HTML 2 07-12-2004 07:59 PM
Exchange 5.5 with Exchange 2000 Cluster problem Jose Luis Microsoft Certification 0 02-13-2004 10:23 AM
help: My exchange lost M: and exchange can not start winman MCSE 9 07-30-2003 04:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57