Displaying 9 results from an estimated 9 matches for "create_confirm".
2006 May 09
1
Email -Content type is not set to html
Hi to ROR!
I could not change the email content type to text/html
What is the problem!
order1= Order.find_get_details(params[:ses_value])
#render_text order1.size
order=order1[0]
email = OrderMailer.create_confirm(order)
email.set_content_type("text/html")
email = OrderMailer.deliver_confirm(order)
email.set_content_type("text/html")
Alwas it shows only plain format only what is the reason!
Thnaks and Regards,
Kumar
--
Posted via http://www.ruby-forum.com/.
2006 May 09
1
Emailcontewnt problem
I ma facing problems regarding the email-set-contentent
I am writing the total code for
order1= Order.find_get_details(params[:ses_value])
#render_text order1.size
order=order1[0]
email.set_content_type("text/html")
email = OrderMailer.create_confirm(order)
email.set_content_type("text/html")
email = OrderMailer.deliver_confirm(order)
#email = OrderMailer.deliver_confirm(order)
render(:text => "<pre>" + email.encoded + "</pre>")
Please help me to solve this problem
Thanks and Regards,
--
Posted...
2006 Jun 05
1
Action Mailer contact form
...n the
right direction. Thanks.
====================================================
1. class ContactController < ApplicationController
2.
3. def send_msg
4. @contact = Contact.new(params[:contact])
5. if @contact.valid?
6. contact = get_contact
7. email = ContactMailer.create_confirm(contact)
8. render(:text => "<pre>" + email.encoded + "<pre>")
9. flash[:notice] = "Message Sent"
10.# redirect_to :action => ''index''
11. else
12. render :action => ''index''
13. end
14. e...
2006 May 17
8
Html Email Problem
.../tr></html> code in the
confirm .html
In the mail i got total code same format what is the wrong
I am also sending the total code in the controller also.
order= Order.find_session(params[''ses_value''])
order = Order.find_by_name("admin")
email = OrderMailer.create_confirm(order)
email.set_content_type("text/html")
render(:text => "<pre>" + email.encoded + "</pre>")
OrderMailer.deliver_confirm(order)
I also saw the message i.e content type has changed to text/html
What is the problm I searching for solution since one mo...
2006 Apr 27
11
Action Mailer Error!!!
What does this mean?
Bad file descriptor - connect(2)
--
Posted via http://www.ruby-forum.com/.
2006 Jan 05
1
ActionMailer in production vs development environments?
I''m using ActionMailer to write an email message; for the time being I''m
creating an email object, but rendering it in the browser instead of
sending it. I have code like this:
email = PasswordMailer.deliver_confirm(@member)
render(:text => "<pre>" + email.encoded + "</pre>")
This works great in the development environment but throws a Rails
2009 Jul 30
0
Problem with implicit multipart emails using ActionMailer in Rails 2.3.3
...@from = ''test.sender-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org''
@sent_on = sent_at
@headers = {}
end
end
I have two views called confirmation.text.plain.erb and
confirmation.text.html.erb
In a unit test, for debug purposes, I have:
sent = Notifications.create_confirmation
puts sent.to_s
The resulting message looks like this:
--------------------------------------------------------------------
Date: Thu, 30 Jul 2009 17:45:04 -0400
From: test.sender-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
To: test.recipient-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org
Subject:...
2007 Nov 17
2
ActionMailer 501: sender address must contain a domain
...;'Sign up verification''
@body["customer"] = customer
@recipients = customer.email
@from = ''SilverSky''
@sent_on = Time.now
end
def send_mail
customer = Customer.find_by_firstname("erkan1")
email = CustomerMailer.create_confirm(customer)
email.set_content_type("text/html")
if CustomerMailer.deliver(email)
render(:text => "Thank you" )
end
[/code]
Any help would be greatly appreciated! This is getting me down!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~--------...
2007 Feb 04
10
Spec''ing ActionMailer
Good morning (Pacific Time). I have a controller action that, as a
side-effect, sends an email to an administrator. I want it to do
something like this:
specify "when someone successfully signs up, an email should be sent
to the administrator with the person''s contact page" do
post :signup, {...lots o'' params}
response should_be success
#