Hi lina,
On Mon, 2 Apr 2012 21:17:09 +0800
lina wrote:
> Hi,
>
> I don't know how to send email in perl with
> /usr/bin/mail
>
> Thanks ahead for any suggestions
You shouldn't use /usr/bin/mail to send E-mail in Perl, as there are better
(= more portable/etc.) solutions on CPAN. See:
https:/
On 2012-04-02 16:13, Samir Arishy wrote:
eval { $sender->send($email) };
die "Error sending email: $@" if $@;
Don't test $@, it is a global.
Make use of the return value of the eval:
eval {
$sender->send( $email );
1; # success
}
or do { # failure
my $ev
Here is the example i used to send emails from Perl scripts, might be
useful for you...!!!
sub sendEmail {
my ($file)=@_;
use Mail::Sender;
my $sender = new Mail::Sender {
smtp => '127.0.0.1',
from => 'ad...@domain.com'
} or die "unable to create the obj $!, $@.\n
This one worked for me...I am using gmail!!!
...
use Email::Send;
use Email::Send::Gmail;
use Email::Simple::Creator;
my $email = Email::Simple->create(
header => [
>From =>' x...@gmail.com',
To => 'y...@gmail.com',
Subject => 'msg from Perl',
],
body => 'send from Perl script.',
);
my $sender =
On Mon, Apr 2, 2012 at 9:34 PM, Shawn H Corey wrote:
> On 12-04-02 09:17 AM, lina wrote:
>>
>> Thanks ahead for any suggestions
>
>
> Have you tried searching CPAN for "mail"? http://search.cpan.org/
This short script is planned to use in remote server to check whether
has new file with "step*" n
On 12-04-02 09:17 AM, lina wrote:
Thanks ahead for any suggestions
Have you tried searching CPAN for "mail"? http://search.cpan.org/
--
Just my 0.0002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
[updated for today's pr
be I am not careful enough to find it.
>
> Is there any module easy to send attachments over ssl?
>
> -Original Message-
> From: Gurunandan R. Bhat [mailto:g...@dygnos.com]
> Sent: Tuesday, January 12, 2010 2:52 PM
> To: Thomas Yan
> Cc: beginners@perl.org
> Subjec
52 PM
To: Thomas Yan
Cc: beginners@perl.org
Subject: Re: Send mail using SSL
Use Email::Sender::Transport::SMTP
> a
> I want to send mail using ssl with smtp server. Does Mail::Sender support
> SSL? Or must I use Net::Smtp::SSL ?
>
> Regards,
> Thomas.
>
>
--
To u
Use Email::Sender::Transport::SMTP
> a
> I want to send mail using ssl with smtp server. Does Mail::Sender support
> SSL? Or must I use Net::Smtp::SSL ?
>
> Regards,
> Thomas.
>
>
Jenda Krynicky wrote:
> From: Gunnar Hjalmarsson
>> Steve Bertrand wrote:
>>> Fúlvio Figueirôa wrote:
I solved my problem using sendmail with the code below:
open (MAIL, "|/usr/sbin/sendmail -t ");
print MAIL "From: someaddr...@somedomain\n";
print MAIL "To: someaddre...@s
From: Gunnar Hjalmarsson
> Steve Bertrand wrote:
> > Fúlvio Figueirôa wrote:
> >> I solved my problem using sendmail with the code below:
> >>
> >> open (MAIL, "|/usr/sbin/sendmail -t ");
> >> print MAIL "From: someaddr...@somedomain\n";
> >> print MAIL "To: someaddre...@somedomain\n";
> >> print
Gunnar Hjalmarsson wrote:
> Steve Bertrand wrote:
>> Fúlvio Figueirôa wrote:
>>> I solved my problem using sendmail with the code below:
>>>
>>> open (MAIL, "|/usr/sbin/sendmail -t ");
>>> print MAIL "From: someaddr...@somedomain\n";
>>> print MAIL "To: someaddre...@somedomain\n";
>>> print MAIL "C
Steve Bertrand wrote:
Fúlvio Figueirôa wrote:
I solved my problem using sendmail with the code below:
open (MAIL, "|/usr/sbin/sendmail -t ");
print MAIL "From: someaddr...@somedomain\n";
print MAIL "To: someaddre...@somedomain\n";
print MAIL "Content-Type: text/plain\n";
print MAIL "Subject: Ve
Fúlvio Figueirôa wrote:
> Hi Octavian,
> I solved my problem using sendmail with the code below:
>
> open (MAIL, "|/usr/sbin/sendmail -t ");
> print MAIL "From: someaddr...@somedomain\n";
> print MAIL "To: someaddre...@somedomain\n";
> print MAIL "Content-Type: text/plain\n";
> print MAIL "Subject
Hi Octavian,
I solved my problem using sendmail with the code below:
open (MAIL, "|/usr/sbin/sendmail -t ");
print MAIL "From: someaddr...@somedomain\n";
print MAIL "To: someaddre...@somedomain\n";
print MAIL "Content-Type: text/plain\n";
print MAIL "Subject: Very simple email test\n\n";
print MAI
From: "Fúlvio Figueirôa"
Hi Octavian,
I solved my problem using sendmail with the code below:
open (MAIL, "|/usr/sbin/sendmail -t ");
print MAIL "From: someaddr...@somedomain\n";
print MAIL "To: someaddre...@somedomain\n";
print MAIL "Content-Type: text/plain\n";
print MAIL "Subject: Very simpl
Fúlvio Figueirôa wrote:
I don't need to use the SMTP procotol,
Well, you *do* need an SMTP server that you are allowed to use.
I need only send an email.
This is an example that makes use of my favorite module Mail::Sender
(written by Jenda, btw):
use Mail::Sender;
ref (new Mail
2009/1/6 Fúlvio :
> Hi Jenda,
>
> I try to debug the code and the error message was: "Bad file
> descriptor".
> I will try to use the other modules.
> I need only send an email.
>
If you are not familiar with SMTP protocal (RFC 821), you are hard to
use Net::SMTP.
I'd suggest you use another modul
From: "Fúlvio"
> Hi Octavian,
>
> I don't need to use this server. I need only to send an email, but as
> I don't know perl
> very well I get an example using SMTP and yahoo server.
You can't send an email without using an SMTP server, or sendmail, qmail...
Do you use an SMTP server for sending
Hi Octavian,
I don't need to use this server. I need only to send an email, but as
I don't know perl
very well I get an example using SMTP and yahoo server.
Thanks,
Fúlvio
On 5 jan, 17:16, orasn...@gmail.com (Octavian Rasnita) wrote:
> From: "Fúlvio"
> Hi all,
>
> I am trying to send an email
Hi Jenda,
I try to debug the code and the error message was: "Bad file
descriptor".
I will try to use the other modules.
I need only send an email.
Thanks,
Fúlvio
On 5 jan, 17:46, je...@krynicky.cz (Jenda Krynicky) wrote:
> From: Fúlvio
>
> > Hi all,
>
> > I am trying to send an email using
Hi Rob,
Thanks for your answer.
I change the code to try debug and put the correct SMTP address:
$smtp_test = Net::SMTP->new('smtp.mail.yahoo.com',
Timeout => 30,
Debug => 1,)|| print "ERROR creating SMTP obj: $! \n";
but the following message is displayed: "Bad file descriptor".
I don't need t
Fúlvio wrote:
>
> I am trying to send an email using the following code:
>
> use Net::SMTP;
>
> $smtp = Net::SMTP->new("smtp.yahoo.com");
> $smtp->mail('fulviocg');
>
> but the error below is happening:
>
> Can't call method "mail" on an undefined value at
>
> Can someone help me?
The d
From: Fúlvio
> Hi all,
>
> I am trying to send an email using the following code:
>
> use Net::SMTP;
>
> $smtp = Net::SMTP->new("smtp.yahoo.com");
> $smtp->mail('fulviocg');
>
> but the error below is happening:
>
> Can't call method "mail" on an undefined value at
Apparently the Net::SMTP->
From: "Fúlvio"
Hi all,
I am trying to send an email using the following code:
use Net::SMTP;
$smtp = Net::SMTP->new("smtp.yahoo.com");
$smtp->mail('fulviocg');
but the error below is happening:
Can't call method "mail" on an undefined value at
Can someone help me?
Hi,
Can you use Yah
>
> Hi All,
>
> I'm using perl module MIME::Lite to sent out email with attachments,
> may I know what "Type" should I define to attach any type of files,
> for instance .jpg, .xls, .doc, .pdf and etc without checking the
> attached file type. Is there any global variable to define instead of
>
From: <[EMAIL PROTECTED]>
> Hi All,
>
> I'm using perl module MIME::Lite to sent out email with attachments,
> may I know what "Type" should I define to attach any type of files,
> for instance .jpg, .xls, .doc, .pdf and etc without checking the
> attached file type. Is there any global variable
2008/10/22 <[EMAIL PROTECTED]>:
> Hi All,
>
> I'm using perl module MIME::Lite to sent out email with attachments,
> may I know what "Type" should I define to attach any type of files,
> for instance .jpg, .xls, .doc, .pdf and etc without checking the
> attached file type. Is there any global var
2008/9/26 aa aa <[EMAIL PROTECTED]>:
>
> Hi,
>
> I try to open several files, if one of them failed, my program will die and
> then send the died information to a file.
>
> eg.
> open(AA, "a.txt") or die "can't open file a.txt\n";
>
> But I want to this string "can't open file a.txt\n" print to a
> "aa" == aa aa <[EMAIL PROTECTED]> writes:
aa> Hi,
aa> I try to open several files, if one of them failed, my program will die and
then send the died information to a file.
aa> eg.
aa> open(AA, "a.txt") or die "can't open file a.txt\n";
aa> But I want to this string "can't open file
> -Original Message-
> From: Li, Jialin [mailto:[EMAIL PROTECTED]
> Sent: 26 September 2008 06:16
> To: aa aa
> Cc: beginners@perl.org
> Subject: Re: send die "" to a file
>
> On Thu, Sep 25, 2008 at 11:55 PM, aa aa <[EMAIL PROTECTED]> wrote:
>
On Thu, Sep 25, 2008 at 11:55 PM, aa aa <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I try to open several files, if one of them failed, my program will die and
> then send the died information to a file.
>
> eg.
> open(AA, "a.txt") or die "can't open file a.txt\n";
>
> But I want to this string "can't
Rob Dixon schreef:
> Dr.Ruud wrote:
>> Rob Dixon schreef:
>>> - Outlook is many years old, and even the email client on Vista is
>>> better.
>>
>> I guess you are mixing up Outlook and Outlook Express there.
>
> No I understand the difference. Outlook first came out in 1997 and
> has been tweake
Jeff Pang schreef:
> Outlook Express is just an email client, which even can't support
> IMAP protocal.
No, Outlook Express works fine with IMAP.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://le
6/08/08 07:26
> De : "Rob Dixon"
> A : "Perl Beginners"
> Copie à : "Dr.Ruud"
> Objet : Re: Send both parts of a multipart email
>
>
> Dr.Ruud wrote:
> > Rob Dixon schreef:
> >
> >> - Outlook is many years old, and even the
Dr.Ruud wrote:
> Rob Dixon schreef:
>
>> - Outlook is many years old, and even the email client on Vista is
>> better.
>
> I guess you are mixing up Outlook and Outlook Express there.
No I understand the difference. Outlook first came out in 1997 and has been
tweaked almost annually ever sinc
Rob Dixon schreef:
> - Outlook is many years old, and even the email client on Vista is
> better.
I guess you are mixing up Outlook and Outlook Express there.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
David Allender wrote:
>
> Thanks all, I think I have came up with a conclusion.
>
> I think I would just send the HTML as an attachment, but is there a way for
> me to do it in the cgi without having to put a ?
>
> Also, I dont believe I can use a module, so that would be sort of a
> hindrance.
>
On Aug 23, 12:53 am, [EMAIL PROTECTED] (Dr.Ruud) wrote:
> David Allender schreef:
>
> > I was wondering if i can send both parts of a multipart email.
> > Basically what im trying to do is,
>
> > send an email to a person with text/enriched text at the top of the
> > email, and text/html at the bot
David Allender schreef:
> I was wondering if i can send both parts of a multipart email.
> Basically what im trying to do is,
>
> send an email to a person with text/enriched text at the top of the
> email, and text/html at the bottom of the email. The reason being is
> so: Its a cgi that handle
On Fri, Aug 22, 2008 at 8:02 AM, David Allender <[EMAIL PROTECTED]> wrote:
>
> send an email to a person with text/enriched text at the top of the
> email, and text/html at the bottom of the email.
Yes, MIME::Lite can do that.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
It works fine!
Thanks
Marco C.
--- Original Message
Sent: Wednesday 01 March 2006 9:01:14 PM
To: "Perl Beginners"
From: "Michael Weber" <[EMAIL PROTECTED]>
Subject: send mail with authentication and secure connection
> How about this:
>
> Net::SMTP::TLS - An
How about this:
Net::SMTP::TLS - An SMTP client supporting TLS and AUTH
Found on CPAN.
-Michael
>>> Leif Ericksen <[EMAIL PROTECTED]> 3/1/2006 1:24:30 PM >>>
Are you trying to have a perl script send some mail for you? Your want
perl to do expect like conditions?
Look at using expect in perl
Are you trying to have a perl script send some mail for you? Your want
perl to do expect like conditions?
Look at using expect in perl.
--
Leif Ericksen
On Wed, 2006-03-01 at 17:13 +0100, Marco CENTEMERI wrote:
> Hi All,
> I need to send automatically e-mail using my account.
> Because mails h
Marco CENTEMERI wrote:
Hi All,
Hello,
I need to send automatically e-mail using my account.
Because mails have to be sent outside my company intranet
and I must be authenticated and use TLS connection to talk
to the server, the sendmail utility doesn't work.
Have You any hint how to do it?
> -Original Message-
> From: Charles Li [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 27, 2005 9:38 AM
> To: beginners@perl.org
> Subject: send email with Perl
>
> Hi,
> I am using "use Net::SMTP;" to send email to multiple
> people. But the recipients can not send the other
> rec
Charles Li wrote:
> Hi,
> I am using "use Net::SMTP;" to send email to multiple
> people. But the recipients can not send the other
> receiver emails. It just says undisclosed recipients.
> How do I send email to multiple people and let them
> see who is on the To list?
Include a To: header in
On Sat, 23 Jul 2005 13:07:51 +0100, Dan wrote:
> i don't even know if this is going to be possible, but i'll ask anyway.
> my perl program runs as a constant process in the background. is there
> anyway i can make another program/script send a HUP, or any kind of, signal
> to the process, to say, f
Am Samstag, 4. Juni 2005 08.38 schrieb Anish Kumar K:
> This is the program I am using for SENDMAIL. Surprisingly it is not dying.
It even does not compile.
> I could see an error message in the browser as "The System cannot find the
> path specified". I donno from where the message is coming..
>
>
> Hi All,
>
> I was able to send the file to the printer using: copy
> ($print_file, '//hp-exch/HP4100-IS');
> just like the documentation said .. :~) I just had to get
> the server name correct!
>
> Thanks!
>
> Brian
>
>
>
Well, I thought I knew what I was doing. Now I am havin
> -Original Message-
> From: Brian Volk [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 24, 2005 11:24 AM
> To: 'Bakken, Luke'; 'Perl Beginners'
> Subject: RE: Send file to printer
>
>
>
>
> >From: Bakken, Luke [mailto:[EM
>From: Bakken, Luke [mailto:[EMAIL PROTECTED]
> c:\>net use lpt1: "\\hp-exch\HP LaserJet 4100(IS)" /p:n
>
> Then from the command line:
>
> c:\>copy file_for_printer lpt1:
>
> If that works, then using File::Copy to lpt1: should work as well.
>
> Luke
>
Thanks Luke! When I type this at a
> > Another guess - maybe the problem is the whitespaces in the printer
> > name. Try escaping them using backslashes:
> > copy ($source_file, '//HP-EXCH/HP\ LaserJet\ 4100(IS)');
> >
> > I would also try changing the single quotes to double quotes.
> >
> > Hope this helps,
> > --
> > Offer Kaye
>
> Another guess - maybe the problem is the whitespaces in the printer
> name. Try escaping them using backslashes:
> copy ($source_file, '//HP-EXCH/HP\ LaserJet\ 4100(IS)');
>
> I would also try changing the single quotes to double quotes.
>
> Hope this helps,
> --
> Offer Kaye
>
I tried t
On Thu, 24 Mar 2005 08:11:42 -0500, Brian Volk wrote:
>
> To answer your question. "What makes you think that File::Copy's "copy"
> supports printing
> directly to a printer this way?" I was google'ing and found this
>
> Google "perlmonks.thepen.com/158993.html"
Well, that looks like your
>
> On Wed, 23 Mar 2005 16:05:53 -0500, Brian Volk wrote:
> > Hi All,
> >
> > I'm trying to send the output file to a network printer.
> The program is
> > working fine as far as producing the file, but it is not
> being sent to the
> > printer. Can someone pls take a look at my program and s
On Wed, 23 Mar 2005 16:05:53 -0500, Brian Volk wrote:
> Hi All,
>
> I'm trying to send the output file to a network printer. The program is
> working fine as far as producing the file, but it is not being sent to the
> printer. Can someone pls take a look at my program and see if everything
> lo
On Fri, 2005-02-18 at 06:49 -0500, Chris Devers wrote:
> On Fri, 18 Feb 2005, Hany Nagaty wrote:
>
> > I have a small question.
> >
> > Using Perl, I'd like to send an email to an exchange distribution
> > list. How can it be done. Is there a module that acts like an outlook
> > client to conne
On Fri, 18 Feb 2005, Hany Nagaty wrote:
> I have a small question.
>
> Using Perl, I'd like to send an email to an exchange distribution
> list. How can it be done. Is there a module that acts like an outlook
> client to connect to the exchange server. I've searched a lot on CPAN
> but couldn'
Hi.
I'm in the employ of Casey West, a list admin, to assist you with your
question. I've taken the liberty to search Google using the Subject line
you provided in your email to the list. I hope one of the links below
will be of service to you.
Sadly Google hasn't given us a nice, legal API for s
Ramprasad wrote:
Can someone send me some examples on how to
send multipart alternative mails using MIME::Entity
Check the distribution's examples, for instance:
http://search.cpan.org/src/ERYQ/MIME-tools-6.200_02/examples/mimepostcard
If that doesn't provide enough, what have you tried? Where ar
See inline.
On Wed, 04 Dec 2002 08:04:37 -0500, zentara <[EMAIL PROTECTED]> wrote:
> On 04 Dec 2002 11:48:54 +0200, [EMAIL PROTECTED] (Stelian Iancu)
> wrote:
>
> >Hello!
> >
> >I have this cgi script and I want to send mail to the users using the
On 04 Dec 2002 11:48:54 +0200, [EMAIL PROTECTED] (Stelian Iancu)
wrote:
>Hello!
>
>I have this cgi script and I want to send mail to the users using the
>local installed sendmail. Can you please explain how to do it? Or please
>point me to a doc that explains this?
There are alot of nice modules
on Tue, 02 Jul 2002 10:22:24 GMT, Sebastien Maret wrote:
> Hi there,
> I was wondering how to send commands on a distant machine via ssh in
> a perl script.
> I tryed this:
>
> open(REMOTE, " | ssh remote.domain.fr ");
> print REMOTE "firstcommand";
> print REMOTE "secondcommand";
Did you chec
Thanks to everyone who gave suggestions. They all were great. I've managed to get it
working smoothly and saved myself a lot of time.
Again, thanks to all.
Dennis
>
> Hi Dennis,
>
> I solved this using Javascript.
> The following will show you how to open a new window for you :
>
> my
Hi Dennis,
I solved this using Javascript.
The following will show you how to open a new window for you :
my $thanks = "http://..";;
print "
";
Maybe not exactly what you want.
But the following will submit your form and then change the location :
#
function T
I just did this, have fun ^^
you must install Mail-sendmail module
#CODE STARTS HERE
#!d:\perl\bin\perl.exe -w
use strict;
use Mail::Sendmail;
my %mymail;
# use =cut =cut for /* */
my ($To, $subject, $body);
$subject = "subject goes here";
$To = "[EMAIL PROTECTED]";
$body = "Hello friend, \nThi
following folder:
sea621/siebsrvr/BIN/site/lib/mail/sendmail.pm And got the same error. It
is bizarre.
Thanks
Lance
-Original Message-
From: Todd Wade,,,Room 108 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 12:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Send mail quesiton
Lance Prai
Lance Prais wrote:
> All,
>I am trying to "use Mail::Sendmail" to send mail. The problem is that
> the sendmail is in the right folder. The only thing that comes to mind is
> that I am doing this on NT
>
> The path for the sendmail.pm is perl/lib/mail/sendmail.pm
>
> I am getting the f
On Thu, 2002-05-23 at 05:18, Jackson, Harry wrote:
> I have tried the above code and got no joy whatsoever. I am getting the
> error
>
>
> Can't call method "mail" on an undefined value at H:\Perl\testing\mail.pl
> line 13.
>
>
> I have had a hunt around google and had little success. I have
> -Original Message-
> From: Felix Geerinckx [mailto:[EMAIL PROTECTED]]
#!/usr/bin/perl
use Net::SMTP;
use strict;
my $server = 'LONEXC0';
my $to = '[EMAIL PROTECTED]';
my $from_name = '[EMAIL PROTECTED]';
my $from_email = '[EMAIL PROTECTED]';
my $subject
on Thu, 23 May 2002 09:18:25 GMT, [EMAIL PROTECTED] (Harry
Jackson) wrote:
>> From: Michael Kelly [mailto:[EMAIL PROTECTED]]
>>
>>
>> #!/usr/bin/perl
>>
>> use Net::SMTP;
>>
>> $server = 'your-smtp-server';
>> $to = '[EMAIL PROTECTED]';
>> $from_name = 'You';
>> $from_email = '[
> -Original Message-
> From: Michael Kelly [mailto:[EMAIL PROTECTED]]
>
>
> #!/usr/bin/perl
>
> use Net::SMTP;
>
> $server = 'your-smtp-server';
> $to = '[EMAIL PROTECTED]';
> $from_name = 'You';
> $from_email = '[EMAIL PROTECTED]';
> $subject= 'hello, email';
>
> $
On 5/22/02 6:19 PM, Lance Prais <[EMAIL PROTECTED]> wrote:
> HOW CAN I SEND MAIL USING PERL ON NT? DOES ANYONE KNOW OF EXAMPLES THAT
> ARE OUT THERE ON THE WE?
YOU CAN USE THE Net::SMTP MODULE. IT WORKS QUITE WELL FOR THINGS LIKE THIS.
HERE IS A SNIPPET THAT MIGHT HELP. SEE THE DOCS ON THE Net
Bob Showalter wrote:
>>-Original Message-
>>From: Ahmed Moustafa
>>Sent: Sunday, April 28, 2002 2:47 PM
>>To: [EMAIL PROTECTED]
>>Subject: Send email with attachment
>>
>>
>>Hi All,
>>
>>Would you post an example of sending an email with
>>attachment(s) using
>>Net::SMTP, please?
>>
>
>
> -Original Message-
> From: Ahmed Moustafa [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 28, 2002 2:47 PM
> To: [EMAIL PROTECTED]
> Subject: Send email with attachment
>
>
> Hi All,
>
> Would you post an example of sending an email with
> attachment(s) using
> Net::SMTP, please?
>-Original Message-
>From: Ahmed Moustafa [mailto:[EMAIL PROTECTED]]
>
>
>Hi All,
>
>Would you post an example of sending an email with attachment(s) using
>Net::SMTP, please?
>
Send an example of one that you have tried to code, if you have one, and
someone will probably try and help
On Friday, April 5, 2002, at 12:16 , paul beckett (JIC) wrote:
> Does anybody know if you can send a binary file (eg. excel spreadsheet)
> via
> a socket connection (I'm using the IO::Socket::INET module); and if so
> how?
yes - I think the question is how to have the reader on the
socket und
On Wed, 20 Mar 2002 08:55:11 -0500, zentara <[EMAIL PROTECTED]> wrote:
>On Wed, 20 Mar 2002 13:07:56 +0100, [EMAIL PROTECTED] (Anthony) wrote:
>
>>is it possible to have a perl script sending e-mail with attachment without
>>using MIME::Lite since most host don't have MIME::Lite.?
>>
>
>You could
On Wed, 20 Mar 2002 13:07:56 +0100, [EMAIL PROTECTED] (Anthony) wrote:
>is it possible to have a perl script sending e-mail with attachment without
>using MIME::Lite since most host don't have MIME::Lite.?
>
You could try this script
#
#!/
> My apologies to everyone but this list does say
'beginners'.
Indeed it does, though some of us have lost our beginner
status :)
> My problem...I am trying to modify a script that a
co-worker
> wrote for us. He no longer works here.
Typical
The snippets of the script below
> #!/usr/bin/pe
In the HTML that refers to this perl script, you're going to need to add
this to the form section:
Then, in the perl script, you'll need to have $email_addresses equal the
input passed by that form.
There should be a section of the perl script that deals with HTTP GET or
POST data - that's the s
As was pointed out before, it's probably difficult (if not impossible) to
have perl access an already open telnet session.
However, I have accomplished a similar task by using perl to copy to/from
the Windows clipboard (of course, this precludes that you're using Windows).
Here's the process (in
> -Original Message-
> From: Agustin Rivera [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 16, 2002 4:27 PM
> To: Hanson, Robert; [EMAIL PROTECTED]
> Subject: Re: SEND
>
>
> Ok, thanks. But now you've made me curious about fork..
>
> You c
ww.pollstar.com
- Original Message -
From: "Hanson, Robert" <[EMAIL PROTECTED]>
To: "'Agustin Rivera'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 16, 2002 1:29 PM
Subject: RE: SEND
> All the module allows you to do is open up a
ssage-
From: Agustin Rivera [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 4:15 PM
To: Hanson, Robert; 'Oktay Ahmed'; [EMAIL PROTECTED]
Subject: Re: SEND
Is there a way with Net::Telnet that I can read data and send data
simultaneously? Or how about capturing the
>
To: "'Oktay Ahmed'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 16, 2002 1:12 PM
Subject: RE: SEND
> You can't send data through an open Telnet session if that is what you are
> thinking. (disclaimer: maybe you can, but good
You can't send data through an open Telnet session if that is what you are
thinking. (disclaimer: maybe you can, but good luck trying to do that).
What you want is to use the Net::Telnet module.
use Net::Telnet;
# Open a telnet session
my $t = new Net::Telnet (Timeout => 10);
$t->open("1.2.3.4")
nt: Tuesday, November 27, 2001 4:06 AM
To: [EMAIL PROTECTED]
Subject: Re: Send e-mail attachment
From: "paul beckett (JIC)" <[EMAIL PROTECTED]>
> Does anybody know how I can send a smallish binary file as an e-mail
> attachment, from perl (runn
Or, just use MIME::Lite or another module which does these things for you :)
Cheers,
Kevin
On Tue, Nov 27, 2001 at 09:20:35AM -0600, Tomasi, Chuck ([EMAIL PROTECTED]) said
something similar to:
> Here's one I can answer! I agonized over this for weeks, but finally got a
> decent solution that
--
From: Paul Jasa [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 10:09 AM
To: 'Bob Showalter'; [EMAIL PROTECTED]
Subject: RE: Send e-mail attachment
Good question. I think that is done so that you can write other things to
the LETTER prior to mailing it?
Paul
-
Here's one I can answer! I agonized over this for weeks, but finally got a
decent solution that I use every day!
For a binary file I would recommend "use MIME:Base64". An example is
provided.
Notes:
o You'll want to use multi-part MIME encoding (hence the use of
MIME::Base64). You cou
---Original Message-
From: Paul Jasa [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 10:09 AM
To: 'Bob Showalter'; [EMAIL PROTECTED]
Subject: RE: Send e-mail attachment
Good question. I think that is done so that you can write other things to
the LETTER prior to mailing i
> -Original Message-
> From: Paul Jasa [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 27, 2001 10:09 AM
> To: 'Bob Showalter'; [EMAIL PROTECTED]
> Subject: RE: Send e-mail attachment
>
>
> Good question. I think that is done so that you can wri
Good question. I think that is done so that you can write other things to
the LETTER prior to mailing it?
Paul
-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 8:02 AM
To: Paul Jasa; [EMAIL PROTECTED]
Subject: RE: Send e-mail
> -Original Message-
> From: Paul Jasa [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 27, 2001 9:53 AM
> To: 'paul beckett (JIC)'; [EMAIL PROTECTED]
> Subject: RE: Send e-mail attachment
>
>
> Paul,
> one of my favorite lines in my scripts is:
Paul,
one of my favorite lines in my scripts is:
open LETTER, "|mailx -s "SUBject Here!!" someone\@somewhere.com <
/some/file";
open LETTER, "|mail -s "SUBject Here!!" someone\@somewhere.com <
/some/file";
This sends an email with an whatever is in /some/file in the body. I don't
know if this
From: "paul beckett (JIC)" <[EMAIL PROTECTED]>
> Does anybody know how I can send a smallish binary file as an e-mail
> attachment, from perl (running on UNIX (OSFv.4.0))
Either MIME-lite or Mail::Sender. Both available from CPAN
Jenda
=== [EMAIL PROTECTED] == http://J
Peter Lemus wrote:
>
> Hi folks, how can I send the output of my script to a
> errorlog and to the screen at the same time. It is
> sending it only to the errorlog.
>
A simple stupid solution would be:
write all you want to print to a variable.
print the variable to screen and print the variable
On Tue, 8 May 2001, nakosu-budi wrote:
> i have try from john lee mail. but i got problem
> the message syntax error at ./test.pl line 2, near "use
> CGI."
> Execution of ./test.pl aborted due to compilation errors.
>
> --
> this nextPage.p
1 - 100 of 101 matches
Mail list logo