views:

15

answers:

1

Can someone tell me how to configure rails to get an smtp log.

thanks, ash

A: 

There is no special methods in Ruby to deal with SMTP logs, I suppose, so:

log = `tail /path/to/your/smtp/logs -n 100`.split(/[\r\n]+/)
floatless