Project

General

Profile

« Previous | Next » 

Revision 4311d63d

Added by Marc Dequènes over 15 years ago

  • ID 4311d63df6a37a8baa348344919aa2555135f11b

[evol] new Mail facility create_simple_reject_reply(msg)

View differences:

postman
next
elsif not order.ok
logger.info "Sending reply for rejected message (#{order.msg})"
mail_reply = mail.create_reply
mail_reply.set_content_type("text", "plain", {'charset' => "utf-8"})
mail_reply.set_disposition("inline")
mail_reply.quoted_printable_body = "A message (ID: #{mail.message_id}) apparently from you was rejected for the following reason:\n #{order.msg}"
mail_reply.sign
mail_reply = mail.create_simple_reject_reply("A message (ID: #{mail.message_id}) apparently from you was rejected for the following reason:\n #{order.msg}")
mail_reply.crypt(order.user.keyFingerPrint) unless order.user.nil?
mail_reply.deliver
msg.delete

Also available in: Unified diff