Jonas,
I have tried like this.
//// Controller
def create
if @announcement.save!
@announcement.urgent
end
end
///// Model.rb
def urgent
mail(:urgent_announcement, :subject => "Urgent Announcement for "
+ self.school.school_name)
end
def mail(action, params)
from = "[email protected]"
to = "[email protected]"
@cc = Array.new
@cc << [email protected]"
@cc << "[email protected]"
PersonMailer.dispatch_and_deliver(action, params.merge(:from =>
from, :to => to, :cc => @cc ), self )
end
I have tried like this. Its going only for "To" and its not
going for CC and Bcc.
Can we specify cc and bcc in the dispatch_and_deliver ?
.
On May 27, 9:44 pm, Jonas Nicklas <[email protected]> wrote:
> The article tells you how to send out a single mail, if you're having
> problems with that, please describe them in detaill (meaning, what you did,
> what you expected to happen, what actually happened, and a stack trace if
> available). It then tells you how to avoid performance problems if you are
> sending many mails after an action. This is just one way of solving the
> problem, another is to use a queue system (AMQP, beanstalkd, starling,
> etc...), or to use a third party provider for sending out mails.
>
> /Jonas
>
> On Wed, May 27, 2009 at 5:35 PM, cool <[email protected]> wrote:
>
> > Jonas,
>
> > I doesn't mean like that. I have done some searching and found
> > some article in merbivore
>
> >http://wiki.merbivore.com/howto/mailers#massive_mail_sendouts_mail_qu...
> > But it's not working. My way of asking is wrong so don't mind .
> > Can you provide some resource or article for sending Bulk email
> > using merb. I have tried but i didn't get that.
>
> > On May 26, 2:06 am, C.hris <[email protected]> wrote:
> > > I don't know what it is about posts beginning with "Guys,"...I won't
> > > even go on about it here.
>
> > > Sent from my iPhone
>
> > > On May 25, 2009, at 3:56 PM, Jonas Nicklas <[email protected]>
> > > wrote:
>
> > > > Not to be rude or anything, but this is the third time you're asking
> > > > a vague, unspecific question on this list, if you're looking for a
> > > > quality answer, instead try asking your question like:
>
> > > > "I'm looking to integrate som bulk sms and email functionality into
> > > > my Merb app, I've looked at provider X and Y and seen these
> > > > advantages/disadvantages, do you guys have any experience
> > > > integrating these, are there any others I've missed?"
>
> > > > Ask this question *after* you've done an extensive search on GitHub/
> > > > Google/Rubyforge. Basically anything to show us that you've put any
> > > > kind of effort into answering the question yourself.
>
> > > > Sorry to be whiny,
>
> > > > /Jonas
>
> > > > On Mon, May 25, 2009 at 12:41 PM, cool <[email protected]> wrote:
>
> > > > Guys,
>
> > > > How can we provide bulk sms and bulk email functionality in a merb
> > > > application.
> > > > Can you help me in this issue...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---