Handling Email Bouncebacks in Rails -


I have created a very basic CRM system for my rail app, with custom text to send me weekly user activity. Creates a multi-part marketing message that I can configure and send through a basic admin interface. I am happy with the things I put on the side of the party (at least the fact is that I have not tried to test my abilities), but I am worried how to handle bounce-back.

I came across this plugin with related script:

I am using Google Apps to handle my mail and in fact there is not enough information about Pearl For this, I want to mess with the above plugin - I have enough headache.

I am looking for a simple solution to process bounce-back in rail. My email will come from an address like this which will be managed in Google Apps: "news@mydomain.com."

What is the best workflow for this? Can someone post a solution that they are using in keeping with the fact that I am using Google Apps for mail?

To handle this, appreciate any guidance, links or basic workflow best practices.

Thank you! -A

OK, it has been proven to be easy, then using the plugin I'm bringing you It seems that you can find that it seems to work on Github that for those interested in an attitude, here's what I have done:

1) Install such follow-up plugin: Script / plugin install git: //github.com/look/fetcher Git

2) Suggestions that you run a generator to create a daemon like this: Script / Generated fetcher_daemon MailerDaemon I suggest doing this because it will generate a YML file in the config / which you can convert to your mail server information (Gmail in my case).

This also generates a daemon to run the fashionable. I tried to use it, but consistently found the following error: MySQL :: Error: MySQL server has gone: Show field from email_blacklists This was the result of the daemon process that could record the MySQL record, so I left using the daemon and set a cron instead.

3) Configure the config.iml file which I have named mail.yml with your mail settings. For Gmail pop, they look like this:

  development: type: pop server: pop.gmail.com port: 995 SSL: true usernames: myemailaddress@gmail.com Password: mypassword  

The code you will need to process is:

Model / mail_processor. RB

  class mail processor & lt; ActionMailer :: Base Dig (e-mail) email = email blacklist.find_core_air_email (email to.first) enddef self.grab_bounces config = yamail.load_file ("# {RAILS_ROOT} /config/mail.iml") config = config [RAILS_ENV]] .to_options fetcher = Fetcher.create ({: receiver => mailprocessor}. Merge (config)) fetcher.fetch end and  

lib / tasks / mail.rake

  Name Location: Email "sends bouncebacks to different types of marketing and automated emails and processes" (work: process_bounces =>: Environment) MailProcessor.grab_bounces end end  

You have your script / free Melr_demni_fetcr were auto-generated Deshika. Rb file can toss.

Hope it helps someone else if you want to test again, then only call MailProcessor.grab_bounces from the console. Make sure you have some email in the inbox that you have configured to access.


Comments