Questions tagged [actionmailer]

Action Mailer is a framework for designing email service layers. Original ActionMailer is written in Ruby, but there is also implementation for ASP.NET MVC.

Action Mailer is a framework for designing email service layers. These layers are used to consolidate code for sending out forgotten passwords, welcome wishes on signup, invoices for billing, and any other use case that requires a written notification to either a person or another system.

Action Mailer is in essence a wrapper around Action Controller and the Mail gem. It provides a way to make emails using templates in the same way that Action Controller renders views using templates.

Additionally, an Action Mailer class can be used to process incoming email, such as allowing a blog to accept new posts from an email (which could even have been sent from a phone).

2387 questions
0
votes
1 answer

rails 3: How would I write a link_to for a ActionMailer to a just created object

I have Recommendations has_many Approvals. When one approval is made, the user provides an email address for the next user who needs to approve. In my Approval Model after_save :create_next_approval, :approval_notification attr_accessor…
TJ Sherrill
  • 2,465
  • 7
  • 50
  • 88
0
votes
1 answer

Rails 3 mailer for a model without an email attribute

I want to create a PageMailer which emails users when someone interacts with one of their pages. The User has_many pages, and so the page email is defined as user.email I have tried attr_reader in the Page model, and also I've declared an email…
Paul Nelligan
  • 2,015
  • 2
  • 18
  • 18
0
votes
1 answer

Sender address rejected error while sending emails

I am developing a ruby on rails application which sends out emails. When I try to send emails from mailer is says 553 : Sender address rejected: not owned by user X. But I try to send an email manually using Net::SMTP it goes well. I am kind of…
Pravin
  • 6,592
  • 4
  • 42
  • 51
0
votes
3 answers

Sending mail through an Exchange server with ruby on rails/actionmailer

I'm trying to get ActionMailer to send email through my MS Exchange server. I am able to use a mail client (on the same machine) to send/receive mail through the Exchange server. One thing I had to do with the mail client is set the "mail account"…
recursive_acronym
  • 2,981
  • 6
  • 40
  • 59
0
votes
1 answer

Action Mailer Invites Rails 3.1

Using Ryan Bate's RailsCasts #124 Beta Invites (as well as the updated rails 3.1 api) as a crutch, I'm trying to put together my first piece of Action Mailer functionality: inviting someone to collaborate with you on a project. My issue is that the…
vladiim
  • 1,862
  • 2
  • 20
  • 27
0
votes
1 answer

How do I join two models together for reference in an email using Actionmailer

I'm trying to create an email which is sent when a Parent (equivalent to a User) creates a new Baby. I've been trying lots of things but can't quite figure out what I'm doing wrong. Parents have many babies. Babies belong to parents. I'm sending…
Paul
  • 51
  • 6
0
votes
2 answers

No errors in development.log, but mail wouldn't be sent

I use ActionMailer to send my email through Rails, but I can't receive anything. My development.log said: Sent mail to mymail@gmail.com (2107ms) Date: Wed, 07 Dec 2011 17:14:30 +0800 From: no-reply To: mymail@gmail.com Message-ID:…
Lai Yu-Hsuan
  • 27,509
  • 28
  • 97
  • 164
0
votes
1 answer

Rails 3: can't send emails with custom :from => address

I'm trying to send emails but the emails will never use my :from => code, instead the email always arrives using the 'from' of my gmail smtp settings. So for example the email arrives and says FROM: email@gmail.com instead of FROM:…
trying_hal9000
  • 4,343
  • 8
  • 43
  • 62
0
votes
1 answer

ROR : send email using different mail id at different time?

I m new at ROR, so it may be a silly ques. I'm using ActionMailer to send a mail to any reciepient. Initially i have tried it using gmail smtp setting. But in that everytime the mail is sent, it is from the same mail_id. But in my application I want…
Krishna Kumar
  • 511
  • 1
  • 9
  • 21
0
votes
1 answer

Rails - Generating email attachments that work in Apple Mail

I have a Rails app that sends a PDF to the user. I am producing this email with the following mailer code: def new_file_notification mail(:to => 'test@test.com', :subject => "File for #{Time.now.to_s(:uk)}") do |format| format.html …
Neil Middleton
  • 22,105
  • 18
  • 80
  • 134
0
votes
1 answer

Delay_job gem not delivering mails

I'm trying to use Delayed_job to send mails asynchronously from my rails 3.1 app. I followed the instructions on the github page but my mails aren't being sent (they were before i tried using this gem). I see they are being put on the jobs table,…
dcastro
  • 66,540
  • 21
  • 145
  • 155
0
votes
1 answer

ActionMailer fails

I get a no method error when trying to send out email with ActionMailer NoMethodError in OrdersController#deliver undefined method `client' for # My Mailer class OrdersMailer < ActionMailer::Base def…
Gaelle
  • 599
  • 2
  • 6
  • 24
0
votes
1 answer

Rails: Mailer show no error but email goes nowhere

First time every trying to send an email from Rails. It seems to be working all expect the email never get delivered. So here's the mailers class: class UserMailer < ActionMailer::Base default :from => "contact@triplingo.com" def…
Ross R
  • 387
  • 1
  • 5
  • 21
0
votes
1 answer

rails 3 mailer_action

Any idea how can I send my model params to mail? Here is the problem: I have a cardealler application and in car.show page I made a link called "Send email request" <%= link_to 'Send email request', send_to_mail_car_path(@car) %> in…
rmagnum2002
  • 11,341
  • 8
  • 49
  • 86
0
votes
1 answer

how can I set up the mail host so I can user one for production and one for development Rails

I have the following in my mailer: #activate board first using a different email? def welcome_manager(participant) @participant = participant @user = participant.user @board = participant.board @url = birthday_url(@participant.token,…
chell
  • 7,646
  • 16
  • 74
  • 140