From: Glen Holcomb Date: 2007-09-05T01:19:38+09:00 Subject: Re: Trouble Sending Emails ------=_Part_42419_9685352.1188922775391 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Is your irb session running as the same user the script is being run as? On 9/4/07, Matt White wrote: > > Hello, > > One of my scripts that used to send e-mails on successful completion > has stopped sending e-mails. Using ruby-debug, I found that it is > indeed reaching those lines of code but no e-mail ever gets sent. I > can send e-mails using the exact same code from irb. Here's what I > have: > > body = "Subject: Product Import succeeded for supplier #{supplierid} > at #{Time.now.to_s}\r\n\r\n" > Net::SMTP.start(mailserver, 25, helo_domain, email_address, > password, :login) do |smtp| > smtp.send_message(body, from_address, to_address) > end > > Any ideas where I can look or what I can try to solve this problem? > Like I said, it works from irb when I cut-and-paste this code... > Thanks! > > > -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_42419_9685352.1188922775391--