actionmailer - Not Able to send PDF Attachments with Rails -
hi trying send email pdf attachment using sendmail
and added below line in configuration file raise delivery errors
config.action_mailer.raise_delivery_errors = true
and here code written attachemnt
def site_launch(email,name) @name = name attachments["checkinforgood_manual_deck.pdf"] = file.read(rails.root.join('public/images/posters/cmanual_deck2.pdf')) mail(:from => "info@yopmail.com", :to => sent@yopmail.com, :subject => 'make fundraiser amazing.') end
not able understand doing wrong here. email not delivering me , neither raise errror too. in log showing delivered.
actually, you're application running in development mode. send mail in actual application must in production mode. so, in development mode you'll log generated, only. hope explain something.
Comments
Post a Comment