Displaying 1 result from an estimated 1 matches for "raw_email".
Did you mean:
ra_mail
2006 Nov 01
2
How to: Individualized mass email with ActiveMailer - separate thread?
...500 people starting
with "Hi [:name:]". The naive approach we''re using is basically placing
the following code in the controller:
email.people.each do |p|
# This generates a custom email for that person, with fields such as
[:name:]
# filled with the person''s name
raw_email = PeopleMailer.create_general_email(email, p, sent_at)
raw_email.set_content_type("text/html")
begin
PeopleMailer.deliver(raw_email)
rescue Exception => e
email.log += "\n" + format_time(Time.now) + "\n" + e.message + "\n"
end
end
The prob...