Displaying 1 result from an estimated 1 matches for "peoplemail".
Did you mean:
peoplecall
2006 Nov 01
2
How to: Individualized mass email with ActiveMailer - separate thread?
...tarting
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 problem is that g...