I found a great article on how to use the RubyOnRails.org action mail program Action_Mailer_Basics This walkthrough gives examples of how to create emails using scripts. You can also store your mail user accounts in a database on the email server documentation. A script can be used to create user accounts in the database, and then send the user credentials to the user who has registered on your site. This structure will help you solve your problem.
source share