Re: Mime::Lite sending email

2012-12-10 Thread Andy Bach
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

Re: Mime::Lite sending email

2012-12-10 Thread John Mason
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

Mime::Lite sending email

2012-12-10 Thread Alvin Ramos
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

MIME encoding and Mail::Sender (was: Sending email ...)

2009-03-04 Thread Gunnar Hjalmarsson
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Gunnar Hjalmarsson
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Dennis G. Wicks
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Gunnar Hjalmarsson
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Octavian Râşniţă
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread 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 what the utf8 pragma is about. (

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Gunnar Hjalmarsson
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Gunnar Hjalmarsson
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Octavian Râsnita
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Gunnar Hjalmarsson
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Octavian Râsnita
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Octavian Râsnita
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Gunnar Hjalmarsson
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread 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 also was going to try Mail::Sender but I can't get a cl

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Octavian Râsnita
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Gunnar Hjalmarsson
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 (

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Octavian Râsnita
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.

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Gunnar Hjalmarsson
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Octavian Râsnita
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Dennis G. Wicks
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Gunnar Hjalmarsson
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

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Octavian Râsnita
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 => '

Sending email w/Mail::Builder::Simple -- need help

2009-02-24 Thread Dennis G. Wicks
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 =

RE: Delay in sending email via Perl

2009-02-05 Thread Bob McConnell
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

Delay in sending email via Perl

2009-02-05 Thread Wagner, David --- Senior Programmer Analyst --- CFS
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

Re: sending email problem....

2006-03-31 Thread JupiterHost.Net
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

sending email problem....

2006-03-31 Thread Tony Marquis
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. --

Re: Sending Email

2004-08-16 Thread Lincoln Rutledge
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:

RE: Sending Email

2004-08-16 Thread NandKishore.Sagi
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'

Re: Sending Email

2004-08-16 Thread David Greenberg
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

Sending Email

2004-08-16 Thread Fontenot, Paul
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?

Re: Sending email via SMTP

2004-06-25 Thread Paul Kraus
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

Re: Sending email via SMTP

2004-06-25 Thread Philipp Traeder
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

Re: Sending email via SMTP

2004-06-24 Thread Mike Blezien
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

Re: Sending email via SMTP

2004-06-24 Thread Wiggins d Anconia
> 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:", "

Re: Sending email via SMTP

2004-06-24 Thread Mike Blezien
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

Re: Sending email via SMTP

2004-06-24 Thread Wiggins d Anconia
> 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

Sending email via SMTP

2004-06-24 Thread Mike Blezien
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

Re: Sending email a HTML page

2004-03-29 Thread Paul D. Kraus
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

Sending email a HTML page

2004-03-29 Thread John
I want to send HTML file via MIME::Lite Is that practicable?

Fwd: Re: Sending email via Postfix

2002-02-20 Thread James Taylor
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

Sending email via Postfix

2002-02-20 Thread Kevin Old
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

Sending email from Perl Script

2002-02-20 Thread Russell Boyd
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-

Re: sending email - Mail::Sender and Mail::Sendmail

2002-01-25 Thread Rex Arul
> 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

RE: sending email - Mail::Sender and Mail::Sendmail

2002-01-25 Thread Gary Hawkins
> 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

Re: sending email

2002-01-24 Thread Jenda Krynicky
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

Re: sending email

2002-01-24 Thread Rohesia Hamilton Metcalfe
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

sending email

2002-01-24 Thread Jones, Anthony T
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