<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Or in simpler terms....</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>....my web app could just set a flag.</FONT></DIV>
<DIV><FONT size=2>And I could have another perl script going as a cron job, that 
just checks the flag every hour, to see if it needs to send out the emails or 
not.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>I'm curious in that case, how such a separate script gets 
bundled in with your Cataylst App, so you've got something you could&nbsp;move 
to another server easily if ever necessary.</FONT></DIV>
<DIV><FONT size=2>Best to keep it simple for now of course, without complicating 
the matter.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Have never written a perl script to run as a cron job 
before.</FONT></DIV>
<DIV><FONT size=2>I assume it's just like writing a perl cgi script&nbsp;- put 
your shebang at the top, and code like normal. The only difference is it's 
executed either as a cron job, or just whenever you fancy by typing&nbsp;the 
command line to run it.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Just thinking out loud.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Thoughts will eventually settle into a course of action, I'm 
sure, ^_^.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=catalystgroup@unitedgames.co.uk 
  href="mailto:catalystgroup@unitedgames.co.uk">Andrew</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=catalyst@lists.scsys.co.uk 
  href="mailto:catalyst@lists.scsys.co.uk">The elegant MVC web framework</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, December 04, 2015 4:35 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Catalyst] Sending 3000 
  emails.</DIV>
  <DIV><FONT size=2></FONT><FONT size=2></FONT><BR></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">one does not send any email directly as the 
    result of a browser interaction,</DIV>
    <DIV style="FONT: 10pt arial">but rather one notes that an email needs to be 
    sent (queues a job request),</DIV>
    <DIV style="FONT: 10pt arial">and a demon or cron job (a 
    queue&nbsp;processor) creates ands sends the mail.</DIV>
    <DIV style="FONT: 10pt arial">&nbsp;</DIV>
    <DIV style="FONT: 10pt arial">----&gt; So let's do this. How do we go about 
    it?</DIV>
    <DIV style="FONT: 10pt arial">Scenario - users want to be alerted via email 
    when a new job on a job board is posted.</DIV>
    <DIV style="FONT: 10pt arial">So we've a website that's a Catalyst 
app.</DIV>
    <DIV style="FONT: 10pt arial">At some point in the app, - when a new job 
    post is being created - we note that emails need to be sent to everyone who 
    wanted a head's up on this event.</DIV>
    <DIV style="FONT: 10pt arial">So what am I doing?</DIV>
    <DIV style="FONT: 10pt arial">Am I using Email::Stuffer to send via 
    sendmail, which on my system appears to be handled by exim (which can be 
    installed in place of sendmail)...? Or are you saying using Email::Stuffer 
    doesn't queue a job request - it just sends instantly - in which case - how 
    do you queue? Do I just write the source code for the email, and the mysql 
    statement to get the user's emails, to a text file somewhere, in some 
    directory, and let a Perl script running at set times via cron, read in the 
    files, and process them later?</DIV>
    <DIV style="FONT: 10pt arial">Or should I be looking&nbsp;for certain CPAN 
    mail queuing modules...?</DIV>
    <DIV style="FONT: 10pt arial">&nbsp;</DIV>
    <DIV style="FONT: 10pt arial">&nbsp;</DIV></BLOCKQUOTE>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>List: 
  Catalyst@lists.scsys.co.uk<BR>Listinfo: 
  http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst<BR>Searchable 
  archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/<BR>Dev site: 
  http://dev.catalyst.perl.org/<BR></BLOCKQUOTE></BODY></HTML>