# File daybook/mycgi/daybook/newpost/d_commentmail.rb, line 16 def comment_sendmail(para_data) body = ["\n\n",Time.now.to_s,"--\n"] para_data.each{|key ,value| body << ["[","#{key}", ",", "#{value}","]"].to_s } body << "\n" str_mail = p_make_body(body.to_s) require 'net/smtp' begin #Net::SMTP.start(@smtpserver, 25) {|smtp| #smtp.send_mail(str_mail, @sender, @recipient) #} rescue SocketError body << "++++++++++++SocketError++++++++++++" rescue Errno::ECONNREFUSED, Net::ProtocolError body << "++++++++++++Error++++++++++++++++" end m_log_write_file(@path_log_mail, body) end