Sending the first email to the administrator

I am trying to do Publify

. No email is sent even if I said the other way around. What could be the reason? Why can't my local server send any emails?

This happens the first time the local server is started. I was told the Publify back office interface to enter my email address so that I can connect to bo later. Entering it leads to the publication of the message ("we sent you a letter"), but I received nothing.

+3


source to share


1 answer


I had the same problem and I solved it (using rails 4.2.0

and ruby 2.1.5

on Ubuntu 14.10

):

config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.default_url_options = { host: "localhost:3000" }
                                         # change host and port if needed 

config.action_mailer.smtp_settings = {
  address:         'smtp.gmail.com',  # don't change
  domain:          'mail.google.com', # don't change
  port:            587,               # don't change
  user_name:       'user@gmail.com',  # change to your gmail 
  password:        'password',        # change to your pass on gmail
  authentication:  :plain,            # don't change
  enable_starttls_auto:  true         # don't change
}

      

Edit :



You need to reinstall the post or somehow force it to send admin mail again, i.e. if you were unable to send it in the first place.

And one more thing: the posting did not work as expected with my setup. There was a problem with generating other pages and using javascripts bootstrap. I managed to solve the bootstrap issue with homing disks, but the first one survived and forced me to leave Publify for LocomotiveCMS (which btw works like a charm but doesn't support Rails 4 yet).

When I have time I will probably try again, but this time with Rails <4.2.

0


source







All Articles