List Info

Thread: RE: How to send mail from command line on solaris 10




RE: How to send mail from command line on solaris 10
country flaguser name
United States
2007-05-11 07:00:36

Paul,

Requirement is to write a perl script that can send out mails.

I don't have liberty to use sendmail as we do not use it and the

sendmail package will not be available on love box.

So I need to use some Solaris command like mail or mailx in

Perl script to achieve the target. (This is as far as I can think).

Since I am not aware of perl much. I am looking out for some

tips or working/implemented examples to send mail that people

in this group might be willing to share.

Regards,

Ramesh.

________________________________

From: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com
[mailto: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com] On Behalf Of Paul Archer
Sent: Friday, May 11, 2007 5:03 PM
To: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com
Cc: solaris_adm%40yahoogroups.com">solaris_admyahoogroups.com; solaris10%40yahoogroups.com">solaris10yahoogroups.com
Subject: Re: [PBML] How to send mail from command line on solaris 10

First of all, what does this have to do with Perl, and so why did you
send
it to the Perl Beginner Mailing List?
Second, what kind of problem are you having with mail & mailx? Or would
you
prefer we just guess?

Paul

12:06pm, Ramesh Polepalli wrote:

> Hi,
>
>
>
> How to send mail from command line on solaris 10 without using any
> applications like "sendmail"?
>
>
>
> I have heard of mail, mailx but did not work with some examples found
> online.
>
>
>
> Is there any configuration to be done to enable the commands to work?
>
>
>
>; Thanks in advance for the help.
>
>
>
>;
>
> Ramesh Polepalli
>
>
>
>
>;
>
>
>
>
> mFormation Technologies Inc.
>; Direct Line: +91 80 6620 5939
>; Switchboard: +91 80 6620 5900
>;
> http://www.mformation.com <http://www.mformation.com>
>
>
>
>
&gt;
>
>
&gt;
>
>
>; Visit WWW.MFORMATION.COM and see how the MFORMATION SERVICE MANAGER
can help you to transform your business.
>
&gt; [Non-text portions of this message have been removed]
>
>;

------------------------------------------------
Whenever you feel anger, you should say,
&quot;May I be free of this anger!&quot;
This rarely works, but talking to yourself in
public will encourage others to leave you alone.
--------------David M. Bader--------------------

Visit WWW.MFORMATION.COM and see how the MFORMATION SERVICE MANAGER can help you to transform your business.

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
Re: How to send mail from command line on solaris 10
country flaguser name
United States
2007-05-11 07:20:35

>>&gt;>> "Ramesh" == Ramesh Polepalli < ramesh.polepalli%40mformation.com">ramesh.polepallimformation.com> writes:

Ramesh&gt; So I need to use some Solaris command like mail or mailx in

Ramesh> Perl script to achieve the target. (This is as far as I can think).

Or use Net::SMTP and talk to an SMTP port directly. And there are modules
built on top of that as well.

Invoking an MUA (sendmail, mailx, etc) from Perl is ripe with potential
problems for security, as well as being generally wasteful of resources.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<; merlyn%40stonehenge.com">merlynstonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )