Project

General

Profile

« Previous | Next » 

Revision 1edda628

Added by Marc Dequènes over 15 years ago

  • ID 1edda628d9067226b18360dcfc2a9ca7cc1122da

[cleanup] remove commented debug and remove count information from Array pack (always one element)

View differences:

lib/cyborghood/mail.rb
smtp_from = @mail.from_addrs.collect{|a| a.address}.join(", ")
smtp_to = @mail.to_addrs.collect{|a| a.address}
Net::SMTP.start(smtp_server, smtp_port) do |smtp|
#p @mail.to_s
smtp.send_message(@mail.to_s, smtp_from, smtp_to)
end
end
......
def quoted_printable_body=(txt)
@mail.transfer_encoding = "quoted-printable"
@mail.body = [normalize_new_lines(txt)].pack("M*")
@mail.body = [normalize_new_lines(txt)].pack("M")
end
private

Also available in: Unified diff