Ruby on Rails Mailer not sending email in development mode -


I have a Rail application with a normal mailer that looks like this:

  class Event Myeler & lt; ActionMailer :: Base default: "example.com" def welcome_email (event, customer) @ event = event @ customer = customer mail: subject => "Test" ,:: from = & gt; @ Customer interval end   

My action_mailer settings look like this:

  config.action_mailer.smtp_settings = {: address = & gt; "Smtp.mandrillapp.com" ,: port = & gt; 587, # Ports 587 and 2525 are also supported with STARTTLS: enable_starttls_auto = & gt; True, # detects and uses STARTTLS: user_name = & gt; "My_email" ,: Password = & gt; "My_password", # SMTP Password is any valid API key: authentication = & gt; 'Login', # Mandrill support 'Plain' or 'Login': Domain = & gt; 'Yourdomain.com', # to identify your server while connecting your domain}   

I have a customer registration and it sends an email right away. But when I try to run in my console:

  EventMailer.welcome_email (Event.last, Customer.last). Deliver   

This email does not deliver. What could be wrong? I have no idea ...

EDIT: My remaining configuration

  config.action_mailer.default_url_options = {: host = & gt; 'Localhost: 3000'} config.action_mailer.delivery_method =: smtp config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true    

Mail has not been sent to the development by default, to enable it, you should zoom your development.rb in this way: < config.action_mailer.perform_deliveries = true

You

UPDATE

This By default thereby providing invalid e-mail.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -