On 03/11/2010 11:59, Chris Lynham wrote:
Been playing around with the petitions project and managed to get it up and running in PHP on a Ubuntu box.
Woo. Please do contribute any installation stuff you did/ needed to do that might be helpful to others :)
The only bit that has me confused is the sending of emails (verification etc.). When you run the /petitions/bin/send-messages script it goes off to call the mysociety/eval web service.
The send-messages script sends out emails to admins and creators prompted by admins (e.g. "your petition has been approved"). Confirmation emails are sent by the petemaild daemon in bin.
Is there a way to set this service up locally? The preferences seem to suggest web services is optional but haven’t found a way of turning it off.
You can set it up locally - source code is still in CVS (sorry!) at https://secure.mysociety.org/cvstrac/dir?d=mysociety/services/EvEl . It shouldn't do anything tricky. Alternatively, you could alter the code in fns.php (and bin/send-messages has one call, looks like), to try and send the mail directly if OPTION_EVEL_URL isn't set. The only snag is that EvEl doesn't just send the mail it also does email formatting/ templating, using the mySociety::Email Perl module. You could perhaps adapt that, or call out to it somehow. Sorry it's not trivial.
ATB, Matthew _______________________________________________ Mailing list [email protected] Archive, settings, or unsubscribe: https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public
