Greetings,
Well though my crash-course on Rails, I’ve encountered a mystery that
is driving my somewhat insane. Our previous web developer wrote a
quick form on our site that allowed the user of the site to request a
consultaion. The user simply fills in their name, email, phone number
and a message, then submits the form. The form was working perfectly,
but I wanted to change the subject line. So, I searched through all of
my Rails files to determine where I would make that change. I found
the appropriate file in “Models”.
class Mailer < ActionMailer::Base
def consultation_request(details)
@subject = ‘Request’
@body = {:details => details}
@recipients = ‘[email protected]’
@from = details[:email]
end
end
In the process, I noticed that the message was currently being sent to
my boss at ‘[email protected]’. For testing purposes, I changed his email
to my email, ‘[email protected]’ and sent a test message. It worked great!
Then, I tried to see if I could have multiple recipients by formatting
as follows:
‘[email protected]; [email protected]’
It did not work. I didn’t get any errors, but I didn’t receive any
email either. Obviously, my syntax was wrong, so I changed it back to
just be ‘[email protected]’ and it still does not work. I can’t even get
the original configuration to work. Any ideas? Thank you soooo much
for any help you can provide.