If you want to send a HTML email have a look at the Rails
documentation it is very well documented. Here is a snip:
Mailer views are located in the app/views/name_of_mailer_class
directory. The specific mailer view is known to the class because it’s
name is the same as the mailer method. So for e
Ritvvij wrote:
> Can anyone please advise on how to send emails in HTML format instead
> of plain text?
Just don't. HTML belongs on Web pages, not in e-mail.
(If you really need to, I believe you will have to set a content header
on the e-mail so that the HTML is parsed. But there are few goo
Thank you.
On Aug 30, 11:41 am, Matt Jones wrote:
> Next time, try reading the documentation first. From the
> ActionMailer::Base docs:
>
> To send mail as HTML, make sure your view (the .erb file) generates
> HTML and set the content type to html.
> class MyMailer < ActionMailer::Base
>
Next time, try reading the documentation first. From the
ActionMailer::Base docs:
To send mail as HTML, make sure your view (the .erb file) generates
HTML and set the content type to html.
class MyMailer < ActionMailer::Base
def signup_notification(recipient)
recipients recipient.em
Can anyone please advise on how to send emails in HTML format instead
of plain text?
On Aug 29, 7:28 pm, Ritvvij wrote:
> Ya,,,
>
> Controller Code
> def sendmail
> recipient = params[:email][:recipient]
> subject = params[:email][:subject]
> message = params[:email][:message]
>
Ya,,,
Controller Code
def sendmail
recipient = params[:email][:recipient]
subject = params[:email][:subject]
message = params[:email][:message]
cc = ""
Emailer.deliver_contact(recipient, subject, message,
"Administrator", cc)
if request.xhr?
flash[:notice] = 'Error
how do you send the email? Is there a controller action that sends the
email?
On Aug 28, 10:19 am, Ritvvij wrote:
> Hi,
>
> i am using ruby 1.8.7 and rails 2.3.3
> i can send emails using gmail smtp
> my config is:
>
> ActionMailer::Base.raise_delivery_errors = true
> ActionMailer::Base.perform_
7 matches
Mail list logo