level 5
is_lidya
楼主
ActionMailer::Base.smtp_settings = {
:address => "......",
:port => 2,
:domain => "smtp.......com",
:authentication => :login,
:user_name =>...,
:password => ".......",
}
attachments[shippment.ship_attachment_file_name] = File.read("#{Rails.root}"+File::SEPARATOR+"public"+shippment.ship_attachment_file.url)
mail(:from =>...,:to=>[email protected],:subject => "ORDER")