ruby on rails - Edit email views in shoppe -


i can't seem find shoppe tag in stackoverflow.


i'm using shoppe gem rails.

i want know if there way edit views emails being sent when order placed in shoppe.

i add attachment email when accept order.

thanks!

it seems can re-define shoppe's mailer method:

module shoppe   class ordermailer < actionmailer::base      def received(order)       @order = order       attachment(content_type: 'image/jpeg', body: file.read('image.jpg'))       mail :from => shoppe.settings.outbound_email_address, :to => order.email_address, :subject => i18n.t('shoppe.order_mailer.received.subject', :default => "order confirmation")     end   end end 

puts somewhere app/initializers. remember set content-type properly.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -