Hello,

  This is my users controller create method.

 def create
     @user = User.new(params[:user])
     if @user.save
        UserMailer.welcome_email(@user).deliver
        flash[:success] = "Please check your mail to activate your
account"
        redirect_to root_path
     else
        @title = "Sign up"
        render 'new'
     end

  end

but it is not sending any mail when i create a new user. but it is
creating flash message.

If i use UserMailer.welcome_email(@user).deliver in rails console it
is working fine.

am i missing anything ?? I am using gmail SMTP.

Please help me out.

Thanks,
Sagar

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to