I'm getting error while the mail is getting deliver. When I changed the configuration in development.rb from proton mail to gmail for testing purpose then the email is getting sent. Meaning there's a particular problem in proton mail configuration.Does anyone have any idea then please reach out.
the mail is getting opened by "letter opener" but not getting delivered in inbox.
this is my development.rb
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.smtp_settings = {
address: "smtp.protonmail.me",
port: 587,
domain: "proton.me",
user_name: "User_name",
password: "Password",
authentication: "plain",
enable_starttls_auto: true,
openssl_verify_mode: 'peer'
}
the error is occurring when the mail is sent from controller
WineClubMailer.wine_allocation_email(customer,wine_club,wines).deliver_now
this is the mailer.rb
def wine_allocation_email(customer,wine_club,wines)
@customer = customer
@wine_club = wine_club
@wines = wines
mail(to: @customer.email, subject: 'Congratulations! Wines are allocated!', from: 'no-reply@example.com')
end