Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8846183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:55:03+00:00 2026-06-14T11:55:03+00:00

I am using this link http://guides.rubyonrails.org/action_mailer_basics.html to send the mail notifications to user upon

  • 0

I am using this link http://guides.rubyonrails.org/action_mailer_basics.html to send the mail notifications to user upon the creation,deletion and edition of the user and will get the mail.It works fine for me.

Now What i want is when the user is created at the time of the creation we will have the radio button for enabling the mail notification if it is enabled then only it will get the notification mail.So what i need to do????

Any help would be appreciated..

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:55:04+00:00Added an answer on June 14, 2026 at 11:55 am

    In the UserController code only send an e-mail if the user attribute to opt into email is set:

        if @user.save
          # Tell the UserMailer to send a welcome Email after save 
          # IF MAIL NOTIFICATIONS ARE ENABLED
          if @user.enable_mail_notification then
             UserMailer.welcome_email(@user).deliver
          end
        end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the link for the site: http://amfotography.com/newsite/clients.html I am only using this folder
I am using jCarouselLite and fancybox together, please see this link http://travianstation.com/index.html script: http://travianstation.com/scripts/script.js
As given on http://guides.rubyonrails.org/routing.html , creating a resourceful route will also expose a number
I think the docs http://guides.rubyonrails.org/asset_pipeline.html need some clarification. They state: For example, if a
I have installed Qt for windows CE using this link http://qt.nokia.com/products/platform/qt-for-windows-ce for visual studio8,
am using the application in this link http://www.jeasyui.com/tutorial/app/crud2.php .I have added one more column
There is a document from 2006 http://docs.jboss.org/jbossas/guides/installguide/r1/en/html_single/ that describes using a GUI to select
i compiled myself apache2 and php5.2 using this guide http://dan.drydog.com/apache2php.html i tested php with
I am trying to use the example in this link http://sharpdevpt.blogspot.com/2009/10/deserialize-json-on-c.html?showComment=1265045828773#c2497312518008004159 But my project
I am following this link http://eagle.phys.utk.edu/guidry/android/apiKey.html to generate MD5 fingerprint of the certificate. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.