Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error:
- ==========================================
- ArgumentError in Admin/emailController#create
- wrong number of arguments (0 for 1)
- Mail Model Method:
- ==========================================
- def contact_company(params)
- @recipients = params[:addressed_to]
- @cc = params[:cc_to]
- @bcc = params[:bcc_to]
- @subject = params[:subject]
- @from = params[:from]
- @sent_on = Time.now
- @body = params
- @content_type = "text/html"
- end
- Page params:
- ===========================================
- Request
- Parameters:
- {"commit"=>"Send Email(s)",
- "insert"=>"6",
- "id"=>"181138",
- "mce_editor_0_fontNameSelect"=>"",
- "mce_editor_0_fontSizeSelect"=>"0",
- "mce_editor_0_formatSelect"=>"",
- "email"=>{"custom_to"=>"adam@machinetools.com",
- "signature"=>"true",
- "logo"=>"89",
- "content_plain"=>"Date:\r\n\r\nInvoice #:\r\n\r\nTerms: Charged to Checking Account. No payment due.\r\n\r\nListing Fees (for Current Period) -\r\n\r\n# Machine Listings -\r\n# Highlight Listings ($0.50 ea) -\r\nWebsite Link:\r\n\r\nTotal Monthly Charge(s): $\r\n\r\nPrevious Balance: $ 0.00\r\nTotal Account Balance: $ 0.00\r\n\r\nBill To:\r\n\r\nHarvey Machine Tool Co.\r\n9722 E. 55th Place\r\nTulsa,
- OK 74146\r\n\r\n\r\nThank you for listing your machinery on MachineTools.com. View your account and history online when you login.\r\n\r\nPlease note: We require 30 days prior notice for cancellation of listings by either email,
- billing@machinetools.com,
- or fax at 815-717-7759.\r\n\r\n\r\nBest Regards,
- \t\t\t",
- "subject"=>"Monthly Statement from MachineTools.com (no payment due) ",
- "content_rich"=>"Date: <br /><br />Invoice #: <br /><br />Terms: Charged to Checking Account. No payment due.<br /><br />Listing Fees (for Current Period) - <br /><br /># Machine Listings - <br /># Highlight Listings ($0.50 ea) - <br />Website Link: <br /><br />Total Monthly Charge(s): $<br /><br />Previous Balance: $ 0.00<br />Total Account Balance: $ 0.00<br /><br />Bill To:<br /><br />Harvey Machine Tool Co.<br />9722 E. 55th Place<br />Tulsa,
- OK 74146<br /><br /><br />Thank you for listing your machinery on MachineTools.com. View your account and history online when you login.<br /><br />Please note: We require 30 days prior notice for cancellation of listings by either email,
- billing@machinetools.com,
- or fax at 815-717-7759. <br /><br /><br />Best Regards,
- ",
- "custom_cc"=>"adam@machinetools.com",
- "custom_bcc"=>"adam@machinetools.com"}}
Add Comment
Please, Sign In to add comment