Ask a Question related to PERL Miscellaneous, Design and Development.
-
Ning li #1
Send email using Perl
Hi,
I am new to Perl and I would like to know the Perl equivalent of this
Unix mail command:
mailx -s "My Subject Here" [email]jdoe@mail.com[/email] < my_file_name
Thanks in advance.
Nick Li
Ning li Guest
-
Send email from FMS?
Is it possible to send an email from FMS? If not, how would I go about creating a connection from FMS to a http server running PHP? Just use... -
Group email doesn't send because of bad email
Hi, say I have to email 100 people at once, but one of the email addresses is bad, meaning formatted right but does not exist anymore. Right now,... -
send email
I am trying to build an intranet portal using asp. In this application I have a subsscribe button using which user can can subscribe. I wanted to to... -
Unable to send email via perl script
Hi all, I have a perl script that does the sending of email. However i keep getting the same error when i run the script: Failed to connect to... -
how to send html email from perl
I just had the same question, and found that the following works. If you're using the "sendmail" package (see... -
Mina Naguib #2
Re: Send email using Perl
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ning li wrote:system qq|mailx -s "My Subject Here" [email]jdoe@mail.com[/email] < my_file_name|;> Hi,
>
> I am new to Perl and I would like to know the Perl equivalent of this
> Unix mail command:
>
> mailx -s "My Subject Here" [email]jdoe@mail.com[/email] < my_file_name
or
`mailx -s "My Subject Here" [email]jdoe@mail.com[/email] < my_file_name`;
or
open (FH, "| mailx") or die . .;
print to FH
or the best, perl-ish way :
perldoc Net::SMTP
Best of luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - [url]http://enigmail.mozdev.org[/url]
iD8DBQE/Y9pMeS99pGMif6wRAggqAKCLN9K5lM5fzboinKZpr9WrymPeBg CgjBhT
wcLgZCyIeLgdcTK2tCyIaF8=
=EVL3
-----END PGP SIGNATURE-----
Mina Naguib Guest
-
Abigail #3
Re: Send email using Perl
Ning li (ningli2000@worldnet.att.net) wrote on MMMDCLXVI September
MCMXCIII in <URL:news:I6P8b.140824$3o3.10064623@bgtnsc05-news.ops.worldnet.att.net>:
-- Hi,
--
-- I am new to Perl and I would like to know the Perl equivalent of this
-- Unix mail command:
--
-- mailx -s "My Subject Here" [email]jdoe@mail.com[/email] < my_file_name
system 'mailx -s "My Subject Here" [email]jdoe@mail.com[/email] < my_file_name';
Abigail
--
# Perl 5.6.0 broke this.
%0=map{reverse+chop,$_}ABC,ACB,BAC,BCA,CAB,CBA;$_= shift().AC;1while+s/(\d+)((.)
(.))/($0=$1-1)?"$0$3$0{$2}1$2$0$0{$2}$4":"$3 => $4\n"/xeg;print#Towers of Hanoi
Abigail Guest
-
Bill Zhao #4
Re: Send email using Perl
"Ning li" <ningli2000@worldnet.att.net> ¼¶¼g©ó¶l¥ó
news:I6P8b.140824$3o3.10064623@bgtnsc05-news.ops.worldnet.att.net...in perl:> Hi,
>
> I am new to Perl and I would like to know the Perl equivalent of this
> Unix mail command:
>
> mailx -s "My Subject Here" [email]jdoe@mail.com[/email] < my_file_name
if (`mailx -s "My Subject Here" [email]jdoe@mail.com[/email] < my_file_name`) {
die "Mail Send Fail ";
}
>
> Thanks in advance.
>
> Nick Li
>
>
>
>
Bill Zhao Guest
-
Sam Holden #5
Re: Send email using Perl
On Mon, 15 Sep 2003 15:51:08 +0800, Bill Zhao <bzhaoa@yahoo.com.cn> wrote:
Did you even think about that for a second? Did you really want to>
> "Ning li" <ningli2000@worldnet.att.net> ¼¶¼g©ó¶l¥ó
> news:I6P8b.140824$3o3.10064623@bgtnsc05-news.ops.worldnet.att.net...> in perl:>> Hi,
>>
>> I am new to Perl and I would like to know the Perl equivalent of this
>> Unix mail command:
>>
>> mailx -s "My Subject Here" [email]jdoe@mail.com[/email] < my_file_name
> if (`mailx -s "My Subject Here" [email]jdoe@mail.com[/email] < my_file_name`) {
> die "Mail Send Fail ";
> }
interpolate the array @mail into that command?
Why does mailx indicate failure by outputting to stdout? That seems like
a remarkably stupid way of indicating failure.
Of course it probably doesn't. It's far more likely you just don't know
how to execute a command correctly in perl...
--
Sam Holden
Sam Holden Guest



Reply With Quote

