ActionMailer not send email and not generate error in log

hello guys… i was trying configuring SMTP with GMail n my rails
appliaction. when running everything seems alright but the mails not
getting delivered. also the logs show the action as successful .

in environment.rb:

ActionMailer::Base.delivery_method =:smtp
ActionMailer::Base.smtp_settings = {
:address => “”,
:port => “587”,
:domain => “”,
:authentication => :plain,
:user_name => “my_gmail_account”,
:password => “my_password”

Emailer controller :

class EmailerController < ApplicationController
def sendmail

  recipient = params[:email][:recipient]
  subject = params[:email][:subject]
  message = params[:email][:message]
  Emailer.deliver_contact(recipient, subject, message)

  return if request.xhr?
  render :text => 'Message sent successfully'


def index
render :file => ‘app/views/emailer/index.html.erb’


View :

Send Email

<% form_tag :action => 'sendmail' do %>

Subject: <%= text_field 'email', 'subject' %>

Recipient: <%= text_field 'email', 'recipient' %>

<%= text_area 'email', 'message' %>

<%= submit_tag "Send" %> <% end %>

please help me out and point out the details.

On Fri, Mar 27, 2009 at 1:18 AM, Nurzed L.
[email protected] wrote:

:port => “587”,
:domain => “”,
:authentication => :plain,
:user_name => “my_gmail_account”,
:password => “my_password”

How are you providing sasl_auth support in this setup? GMail requires
it for smtp use.

I usually setup my actual smtp server for use with GMail, something
like this for example:

Greg D.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs