search for: deliver_send_report

Displaying 2 results from an estimated 2 matches for "deliver_send_report".

2009 Feb 09
1
mail return value
Hi I''m using this method to send emails def send_report(name, email, content) recipients email subject "My subject" from "no-reply-UG3EKd521ZA@public.gmane.org" body :content => content content_type "text/html" end I''d like to know if the email has been sent or not
2006 Mar 05
0
Converted tattle.pl to ruby - anyone want to be a tester?
...the wider community under GPL. Basic code looks like this: puts "open logs" helper = SecurityHelper.new notif = Notifier.new offenders = helper.getoffenders( logfile ) offenders.each { |key, offender| puts offender.rhost + " (" + offender.abuse + ")" Notifier::deliver_send_report(offender) } with class SecurityHelper def getoffenders( logfile ) @off = Hash.new File.open(logfile).each { |line| if( line =~ /sshd/ and line =~ /rhost/ ) records = line.split( /\s/).collect records.each { |record| if record[''rhost'']...