Ruby on Rails Monday, October 5, 2015

On Mon, Oct 5, 2015 at 3:21 PM, Colin Law <clanlaw@gmail.com> wrote:
On 5 October 2015 at 20:58, fugee ohu <fugee279@gmail.com> wrote:
> I"m sorry That's not right Anyone else?
> That guide only discusses sending a single email to multiple recipients

That is what you said you wanted to do.  You said you "need to send
them all an email once a month".



I'm guessing the missing piece of this for the OP is the "once a month" bit.

There are two basic technologies at play here:

1. Send an email to multiple recipients: ActiveMail is that bit.
2. Do something periodically, e.g., once per month: ActiveJob is that bit.

For #1, Colin's already pointed you at it.
For #2, start with looking at the ActiveJob guide: http://guides.rubyonrails.org/active_job_basics.html and investigating cron and the whenever gem, sidekiq, resque, and so on.


 
If you want to send a different email to each of them then just loop
through the users sending the personalised email.

Colin

>
> On Monday, October 5, 2015 at 3:30:20 PM UTC-4, Colin Law wrote:
>>
>> On 5 October 2015 at 20:18, fugee ohu <fuge...@gmail.com> wrote:
>> > First, before you think to recommend I'm not gonna give my mailing list
>> > any
>> > third party services because I'm not giving them my precious mailing
>> > list to
>> > use or sell or disclose I just finished reading Agile Web Development
>> > with
>> > Rails and the book had no discussion of sending emails to every row in
>> > result set I have about 200 members in my database and need to send them
>> > all
>> > an email once a month without using any third party services This
>> > shouldn't
>> > be a big deal  In perl this was nothing, but I'm not using perl anymore
>> > Can
>> > anyone point me to a good guide with examples or post example on here or
>> > gist please Thanks, fugee
>>
>> Have a look at
>> http://guides.rubyonrails.org/action_mailer_basics.html
>>
>> Also all the other guides are worth looking through.
>>
>> Colin
>>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Ruby on Rails: Talk" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to rubyonrails-ta...@googlegroups.com.
>> > To post to this group, send email to rubyonra...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/rubyonrails-talk/f4a402f0-d75f-42d2-b6b7-95baccfab085%40googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/d15b9ee6-daab-4554-8ebf-f19a5692ec20%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLug1VFSAWvQ-0Brns3eQPLGZNyEWR-k8bEkXAhPoBfP5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHUC_t8%3Dq-EW2Yp-gaamsisaZ_nGP%3D9AXdicNoFSOWPAUb3yCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment