I'm trying to write some specs for my application aimed to process and resend incoming emails. It's built with Mailman App. I didn't find any good examples on how to do that. What am I actually trying is to create email (with Mail gem) and process…
I'm trying the following guide on mailman
http://dansowter.com/mailman-guide/
up until the incoming_mail.rb part I was finding it really easy. But where do I put that file?
am developing ruby on rails3 application where i am sending an email to user and if user replies that email then that reply content, date should be updated to the database. For this i have ProductComment model. when admin sends comment to the user…
I get mail with gem mailman but after working for a while it either hangs or dies.
I have it running in the loop already because of periodical connection error:
begin
Mailman::Application.run
rescue IOError
retry
end
But this is not enough,…
I've got the mailman gem integrated into my rails project. It fetches emails from gmail successfully. In my app there is a model Message for my emails. The emails are properly saved as Message model.
The problem is that the emails are saved multiple…
My app creates a unique email for each user, and users send email to that address for processing. Using Sendgrid, I've piped incoming emails to my domain (hosted on Heroku) to an address:
site.com/receive_email
I use the TO field to determine the…
Starting my mailman app by running rails runner lib/daemons/mailman_server.rb works fine.
When starting with my daemon script and command bundle exec rails runner script/daemon run mailman_server.rb, the script generates an…
Is there a way to receive email from multiple accounts in mailman gem?
Here is my mailman_server.rb which processes mail from a single account
require "rubygems"
require "mailman"
Mailman.config.pop3 = {
server: 'pop.gmail.com', port: 995, ssl:…
I am trying to display an email body in my RoR project.
class IncomingMail
def initialize(message, params)
if person = Person.find_by_email(message.from)
changeMessage = Message.where({person_id: person.id})
#message =…
I am using mailman for receiving of emails and I need to put received emails to DB. As long as mailman is a separate app, I can not use ActivRecord directly. Could you advice how manually to connect to Rails DB without ActivRecord.
I am trying to deploy my rails application with dokku on Digital Ocean (I have $20 plan, which has 2 CPU) with new feature i.e. mailman, which is suppose to check/retrieve mail every 5 mins.
Below are the configurations I am having:
Procfile
web:…
I am having a problem - mailman crashes each time after POP3 authentication failure occurs. I have an exception catcher as below but this appear doesn't work:
Mailman::Application.run do
default do
begin
**Some code here**
…
i have code like this
Mailman::Application.run do
to 'email@local.com' do
## how to get subject, from and body in here
end
end
how to get subject, from and body from email in rails?
I have a Rails app that uses the mailman gem (link) to collect inbound pop3 mails and do stuff with them. It all works just fine, but now I wish to have multiple users sign up and receive mails from their pop3 configuration. Mailman is run in…