Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6928441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:11:19+00:00 2026-05-27T11:11:19+00:00

I am building the Email where I am parsing the .csv file which consists

  • 0

I am building the Email where I am parsing the .csv file which consists of email id’s.Here is the code

File.open("#{Rails.root.to_s}/public/files/#{params["file"].original_filename}", "wb"){|file| file.write(params["file"].read) }

arr_of_arrs = CSV.read("#{Rails.root.to_s}/public/files/#{params["file"].original_filename}") 
 puts arr_of_arrs
    arr_of_arrs.each do |i|

Here is the Mail sending process which is called in my Controller

Class.method(i[0]).deliver)

And I call the ActionMailer to send emails which are in the .csv file.And I am using AWS SES to send the mails.

My problem is when ever it fails to send an email to a particular address the whole email sending stops and it would not send emails to the rest of the address. But even after it fails it should be able to send the email to the rest of the addresses, how can I handle this issue since I am newbie to the ruby on rails.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:11:20+00:00Added an answer on May 27, 2026 at 11:11 am

    This doesn’t seem to have anything to do with delayed_job.

    To not stop the remaining emails, catch the exception which breaks the loop:

    arr_of_arrs.each do |i|
      begin
        Class.method(i[0]).deliver
      rescue => e
        # perhaps you'd like to log e's detail here
      end
    end  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I spend a good deal of time building an email system for my Rails
I am building an application which will send status requests to users (via email
I'm building a complex, public web service in WCF that send email to a
We are building an email alert system which needs to send customized emails in
I am building a simple antibot for my email form. This is a code
I am building an email app in ruby on rails and I had a
I'm building a customer nurturing application which will send an email when some time
i am building query in kohana framework which looks like this: DB::select('users.email')->from('users', 'roles_users')-> where('users.id',
I've been building a HTML (email/page) composition tool in Ember.js as a way of
I am building an MVC3 app that will require sending a mass email from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.