Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > rails console
- irb> c = Contact.new
- => #<Contact:0x007fe587c1c0b8>
- irb> c.email = "hello@goodbye.com"
- => "hello@goodbye.com"
- irb> c.name = "It's my name"
- => "It's my name"
- irb> c.message = "No subject"
- => "No subject"
- irb(main):005:0> c.deliver
- Console Output:
- MailForm::Notifier#contact: processed outbound mail in 29.8ms
- Sent mail to myemailaddress@gmail.com (285.5ms)
- Date: Fri, 05 Sep 2020 00:17:49 -0400
- From: It's my name <hello@goodbye.com>
- To: myemailaddress@gmail.com
- Message-ID: <5409396d8fe66_14dda3ff2c180c46c84468@DOPE-Macbook-Pro.local.mail>
- Subject: My Contact Form
- Mime-Version: 1.0
- Content-Type: text/html;
- charset=UTF-8
- Content-Transfer-Encoding: 7bit
- <h4 style="text-decoration:underline">My Contact Form</h4>
- <p><b>Name:</b>
- It's my name</p>
- <p><b>Email:</b>
- hello@goodbye.com</p>
- <p><b>Message:</b>
- No subject</p>
- => true
Add Comment
Please, Sign In to add comment