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