Contact form that sends email directly from the page
Hello. I'm currently building my web dev portfolio using Rails. I just graduated coding bootcamp and it's all still pretty new, now that I'm doing it on my own. On my contact page, I just want to have a contact form that will email me directly from the form. I'm looking at the mail_form gem on Github. I installed it in my app, but I'm just unsure where to go next. It's not clear where these files are that is showing the code in them. What are the steps I need to take to get this going? I'm not finding any easy step by step guides on doing this. Thank you in advance!
Hi Kyle,
Here are examples that may help you get the form working:
This one is for Rails 4 (uses simple_form gem) but the code will work in Rails 6 with minimal changes:
https://rubyonrailshelp.wordpress.com/2014/01/08/rails-4-simple-form-and-mail-form-to-make-contact-form/
You can also share your code, if you feel comfortable, for additional help.