D
D
dzenn2016-09-30 17:30:18
Ruby on Rails
dzenn, 2016-09-30 17:30:18

Where can I find a ready-made solution for sending a message to the mail?

Three input fields. Name, phone number, messages, send button. Where can I find an example of such a solution? First time making a form!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2016-09-30
@2ord

1. First, the data is sent through the form to the server using the POST method as parameters inside params[:contacts].
2. In the controller, you process the received data and send a message using ActionMailer / gem mail, having previously adjusted the SMTP settings. SMTP providers can be Gmail, Mailgun, ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question