I am trying to create an email adress. I have added the sendgrid plugin to my app.
Here is my application.rb
module Konkurranceportalen
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# all .rb files in that directory are automatically loaded.
config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "smtp.mydomain.com",
:port => 25,
:user_name => "mail@mydomain.com",
:password => "mypass",
:authentication => :login
}
end
end
To create an regular email like mail@yourdomain.com you need an Mail Exhange host.
When you have choicen your mail exhange host you can create emails like mail@yourdomain.com
Now you need to setup the Mx record on you DNS server
And vola you have a email like mail@yourdomain.com