On Mon, Dec 10, 2012 at 2:39 PM, Alvin Ramos wrote:
> I was curious, how could I write into the script to send me the
> information one time instead of every 5 minutes after it does find a lock?
You could touch/create a file and use the time stamp as a semaphore - if
the file is not there or ol
How about storing the date & time you have sent and email in a file then
deleting the file when you detect problem has cleared?
This way you could also add logic to send periodic alerts based on the time
John
On Mon, Dec 10, 2012 at 3:39 PM, Alvin Ramos wrote:
> I have a perl script that is
I have a perl script that is running every 5 minutes to see if the mysql server
has a locked query, once it does, it sends me an email with thread_connected
and the query. I was curious, how could I write into the script to send me the
information one time instead of every 5 minutes after it doe
The discussion in this thread made me realize that I'd better update my
own mail related module, CGI::ContactForm, as regards MIME encoding. An
updated version has been uploaded to CPAN.
http://search.cpan.org/dist/CGI-ContactForm/
On February 24, 2009 Octavian Râsnita wrote:
Mail::Sender does
Dennis G. Wicks wrote:
We now return you to the original problem!
What's that about? Oh, yeah... ;-)
I got the sample that Gunnar posted using Mail::Sender to work after I
played around with cpan and got it installed.
Now I have discovered a new problem. The SMTP server does not respond on
We now return you to the original problem!
I got the sample that Gunnar posted using Mail::Sender to
work after I played around with cpan and got it installed.
Now I have discovered a new problem. The SMTP server does
not respond on the first try all the time. (I think this is
a local proble
Octavian Râs,nit,a( wrote:
From: "Gunnar Hjalmarsson"
This is an example program where "use utf8;" makes a difference:
use utf8;
$igår = '2009-02-24';
print "Yesterday: $igår\n";
("igår" is Swedish for "yesterday")
Well I have tried the scripts from the 2 messages, but I must
From: "Gunnar Hjalmarsson"
[ new attempt - encoding is tricky... ]
Gunnar Hjalmarsson wrote:
Octavian Râsnita wrote:
If I used it in a UTF-8 encoded perl program and was also using "use
utf8;" in it, I expected that it understand that it should be encoded to
UTF-8.
I don't think that's wha
[ new attempt - encoding is tricky... ]
Gunnar Hjalmarsson wrote:
Octavian Râsnita wrote:
If I used it in a UTF-8 encoded perl program and was also using "use
utf8;" in it, I expected that it understand that it should be encoded
to UTF-8.
I don't think that's what the utf8 pragma is about. (
Gunnar Hjalmarsson wrote:
Octavian Râsnita wrote:
If I used it in a UTF-8 encoded perl program and was also using "use
utf8;" in it, I expected that it understand that it should be encoded
to UTF-8.
I don't think that's what the utf8 pragma is about. (But, as I'm sure
you understand, my UTF
Octavian Râsnita wrote:
From: "Gunnar Hjalmarsson"
Octavian Râsnita wrote:
I have tried to use the same code but I've changed the charset to
UTF-8 (also tried utf8) and the subject to:
subject => 'Östra Vägen astâîASTÂÎ',
If you change the charset to UTF-8, you'd better also pass UTF-8
From: "Gunnar Hjalmarsson"
I have tried to use the same code but I've changed the charset to UTF-8
(also tried utf8) and the subject to:
subject => 'Östra Vägen astâîASTÂÎ',
If you change the charset to UTF-8, you'd better also pass UTF-8 encoded
strings to the module. That's not a UTF-8
Octavian Râsnita wrote:
From: "Gunnar Hjalmarsson"
Well, if I understand it correctly, Mail::Builder::Simple *enforces*
the use of UTF-8, which is something I don't like.
Well, I like that, because it is more simple to send special chars from
more languages, but without needing to know nor t
From: "Dennis G. Wicks"
[Cleaned out previous stuff]
Greetings;
Well, I tried to attach the port to the server address,
Host => 'smtpout.secureserver.net:3535',
but that doesn't work either. Maybe there is something else setup wrong
that I'm not seeing.
I see the word "secure" in the
From: "Gunnar Hjalmarsson"
Well, if I understand it correctly, Mail::Builder::Simple *enforces* the
use of UTF-8, which is something I don't like.
Well, I like that, because it is more simple to send special chars from more
languages, but without needing to know nor to specify the charset exp
Octavian Râsnita wrote:
From: "Gunnar Hjalmarsson"
however until that new module will be ready... I need to use
Email::Send, because it allows sending in many ways, using SMTP,
Sendmail, Qmail, Google and a few others.
Why is it important to have a mail sending module hunt for various
maile
[Cleaned out previous stuff]
Greetings;
Well, I tried to attach the port to the server address,
Host => 'smtpout.secureserver.net:3535',
but that doesn't work either. Maybe there is something else
setup wrong that I'm not seeing.
I also was going to try Mail::Sender but I can't get a cl
From: "Gunnar Hjalmarsson"
however until that new module will be ready... I need to use Email::Send,
because it allows sending in many ways, using SMTP, Sendmail, Qmail,
Google and a few others.
Why is it important to have a mail sending module hunt for various mailer
programs?
It is impor
Octavian Râsnita wrote:
From: "Gunnar Hjalmarsson"
Octavian Râsnita wrote:
There could be the following problems:
- If you have the SMTP server locally, it doesn't require
authentication, or
- The username should not be t...@mgssub.com but only tfrg, or
- The server requires SSL encryption (
From: "Dennis G. Wicks"
But I think I have discovered the problem. The SMTP server requires a
non-standard port. I have searched the doc and I don't find anything that
tells me how to pass a port # to the module. Anybody know how to do that?
(BTW: Everything else is set up exactly as in Tbird.
Dennis G. Wicks wrote:
But I think I have discovered the problem. The SMTP server requires a
non-standard port. I have searched the doc and I don't find anything
that tells me how to pass a port # to the module. Anybody know how to do
that?
I don't; the below suggestion is merely a shot in th
etty strange that even though Perl is great, there is no "great"
module for sending email that can do at least what Outlook Express can do
under Windows, that doesn't have errors, work with SMTP over TLS, SSL and
other ways of sending email.
If somebody knows a better module fo
Gunnar Hjalmarsson wrote the following on 02/24/2009 12:41 PM:
Octavian Râsnita wrote:
From: "Dennis G. Wicks" > Greetings;
Lacking any problems with the code, does anybody have any ideas about
what may be stopping this from working?
The code looks fine. There could be the following probl
Octavian Râsnita wrote:
From: "Dennis G. Wicks" > Greetings;
Lacking any problems with the code, does anybody have any ideas about
what may be stopping this from working?
The code looks fine. There could be the following problems:
- If you have the SMTP server locally, it doesn't require
From: "Dennis G. Wicks" > Greetings;
#!/usr/bin/perl
use strict;
use warnings;
use Mail::Builder::Simple;
my $mail = Mail::Builder::Simple->new;
# Send the email with an SMTP server:
$mail->send(
mail_client => {
mailer => 'SMTP',
mailer_args => [
Host => '
Greetings;
Here's the code:
-
#!/usr/bin/perl
use strict;
use warnings;
use Mail::Builder::Simple;
my $mail = Mail::Builder::Simple->new;
# Send the email with an SMTP server:
$mail->send(
mail_client => {
mailer =
al Message-
From: Wagner, David --- Senior Programmer Analyst --- CFS
[mailto:david.wag...@fedex.com]
Sent: Wednesday, February 04, 2009 4:29 PM
To: beginners@perl.org
Subject: Delay in sending email via Perl
Within Outlook, one can create an email and then not send it
until a date and tim
Within Outlook, one can create an email and then not send it until a
date and time has been met. Can this also be done via Perl and either Sendmail
or Sender? I looked at the doc and did not see anything about delay of sending.
Found delay on retires, etc., but nothing on delay in actual
Tony Marquis wrote:
Hi everyone,
The problem is really simple. When i try to send a message with this
function with a wrong sender email address, my script just stops...
as an exemple : sender address [EMAIL PROTECTED] the error message
is - user not found on this server and the sc
Hi everyone,
The problem is really simple. When i try to send a message with this
function with a wrong sender email address, my script just stops...
as an exemple : sender address [EMAIL PROTECTED] the error message
is - user not found on this server and the script stops.
--
I guess if you don't use cygwin, sendmail won't work for you... That's
what I usually do...
open(SENDMAIL, "|/usr/lib/sendmail -oi -t -odq")
or die "Can't fork for sendmail: $!\n";
print SENDMAIL <<"EOF";
From: $login <[EMAIL PROTECTED]>
To:
Subject:
Use MIME::Lite to send the mail and you can use any standard File
writing packages(For example O::Tee) to log all the messages.
-Original Message-
From: Fontenot, Paul [mailto:[EMAIL PROTECTED]
Sent: Monday, August 16, 2004 11:01 AM
To: [EMAIL PROTECTED]
Subject: Sending Email
I'
Mail::Send and Mail::Mailer are a couple, though I'm sure there are others.
-David
On Mon, 16 Aug 2004 09:00:33 -0700, Fontenot, Paul
<[EMAIL PROTECTED]> wrote:
> I'm in need of a way to send the output of a script from a windows
> server via email and I'm drawing a blank. What is the module call
I'm in need of a way to send the output of a script from a windows
server via email and I'm drawing a blank. What is the module called?
Not sure what your trying to do but check out
MIME::Lite from cpan.
Great mod to easily send out emails via perl.
Paul
On Thu, Jun 24, 2004 at 03:43:53PM -0500, Mike Blezien wrote:
> Hello,
>
> I'm looking at using the Net::SMTP module to send email as opposed to the
> standard method of "sendm
On Thursday 24 June 2004 22:43, Mike Blezien wrote:
> Hello,
>
> I'm looking at using the Net::SMTP module to send email as opposed to the
> standard method of "sendmail".
>
> Been reading through the docs on the module, but not real clear on how to
> setup the "To:", "From:", "Reply-to:", "Subject
MIME::Lite was the one I was trying to remember!
thx's
Wiggins d Anconia wrote:
Wiggins d Anconia wrote:
Hello,
I'm looking at using the Net::SMTP module to send email as opposed
to the
standard method of "sendmail".
Been reading through the docs on the module, but not real clear on how
to setup
> Wiggins d Anconia wrote:
> >>Hello,
> >>
> >>I'm looking at using the Net::SMTP module to send email as opposed
to the
> >>standard method of "sendmail".
> >>
> >>Been reading through the docs on the module, but not real clear on how
> >
> > to setup
> >
> >>the "To:", "From:", "Reply-to:", "
Wiggins d Anconia wrote:
Hello,
I'm looking at using the Net::SMTP module to send email as opposed to the
standard method of "sendmail".
Been reading through the docs on the module, but not real clear on how
to setup
the "To:", "From:", "Reply-to:", "Subject:". and other headers, and
actual bod
> Hello,
>
> I'm looking at using the Net::SMTP module to send email as opposed to the
> standard method of "sendmail".
>
> Been reading through the docs on the module, but not real clear on how
to setup
> the "To:", "From:", "Reply-to:", "Subject:". and other headers, and
actual body
> of the
Hello,
I'm looking at using the Net::SMTP module to send email as opposed to the
standard method of "sendmail".
Been reading through the docs on the module, but not real clear on how to setup
the "To:", "From:", "Reply-to:", "Subject:". and other headers, and actual body
of the email to be sent
You just attach the html page?
If you want to actually send an html email that is different and you should
perldoc MIME::Lite.
Html mail is blocked on a lot of peoples systems. I for one will not even open
a message that is not plain text. Just a suggestion.
Paul
On Monday 29 March 2004 02:59
I want to send HTML file via
MIME::Lite
Is that practicable?
Hmm, I'm not 100% sure whether or not it comes with this in Mandrake or not,
but if you download postfix and compile it (or install the package I suppose)
it comes with a binary called 'sendmail' which is basically used for this
purpose. So, you might want to just do a 'locate sendmail'. Maybe yo
Hello all,
I have a Mandrake 8.1 box running Postfix. I have a few CGI's that need to
send email. I have always used Sendmail and have been come stumped with
this line in my script after swtiching to postfix:
# * NAME (AND LOCATION) OF THE SERVER MAIL PROGRAM *
# Enter the name of your
I need to send notifications from a perl script I am building. I can use a system call
for mailx. But I am wondering if there is a better way. Are there am\ny modules or
packages which would address this?
Thanks,
Russell
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
> Well I'm just wondering if there is much difference between Sender and
> Sendmail:
>
I guess, the simplicity of sending mail attachments is laudable with
Mail::Sender, whereas you have to work out a bit more in Mail::Sendmail to
make attachments work!
The same reason behooves well for sending
> http://search.cpan.org/doc/JENDA/Mail-Sender-0.7.10/Sender.pm.html
>
> and sending mail took a bit of code like this:
Implied... use Mail::Sender;
> ref ($sender = new Mail::Sender({from => '[EMAIL PROTECTED]', smtp
> => 'company.com'})) or die "$Mail::Sender::Error\n";
>
> (ref ($sender->Mail
From: Rohesia Hamilton Metcalfe <[EMAIL PROTECTED]>
> I'm not much less new than you, but I went through this recently and
> used Sendmail for UNIX server and Mail::Sender for SMPT mail on a
> Windows NT server.
I'm glad my module gets recomended :-)
There are other mail relate
Anthony,
I'm not much less new than you, but I went through this recently and
used Sendmail for UNIX server and Mail::Sender for SMPT mail on a
Windows NT server.
The documentation for Mail::Sender is at:
http://search.cpan.org/doc/JENDA/Mail-Sender-0.7.10/Sender.pm.html
and sending mail took
Hello all,
I just started Perl this week. I am looking to do a simple module
to send mail over Unix and Windows, with a little bit of error checking if
possible. Can anyone point me in the right direction with a link or module?
I've begun looking through cpan a bit, but most of t
51 matches
Mail list logo