I've stopped working with CE but I remember that it has a user_notifier
model.  You just have to setup your actionmailer smtp config for you to be
able to send emails.

first result on google for actionmailer tutorial is
http://www.tutorialspoint.com/ruby-on-rails/rails-send-email.htm

in one of your controllers

@users = User.find_all_by_gender 'male'
UserNotifier.deliver_site_updates(@users.collect(&:email))

in the user_notifier model

def site_updates(emails)
subject      "Site Update"
from         "Your site"
recipients   emails
sent_on      Time.now
content_type 'text/html'
end

in views/user_notifier/site_updates.html.haml

Whatever message you want. :D

hope this helps for the mean time.

<http://www.tutorialspoint.com/ruby-on-rails/rails-send-email.htm>

On Sun, May 9, 2010 at 2:55 AM, sSs <[email protected]> wrote:

> Hi,
> Is there a tutorial on how to send CE email notification to specific
> segment of my users i.e. only men, only women etc.? I need to send
> photos and updates about the new content of my website to current
> members, so that they can come back and view that content.
>
> Is it something that I need to turn on in CE or make use of such as an
> already existing ruby class or controller, or is it something that I
> need to implement from scratch using CE helpers etc?
>
> You input is very valuable, because it will save our team significant
> amount of time to implement.
>
>
> Thanks,
> SS
>
> --
> You received this message because you are subscribed to the Google Groups
> "CommunityEngine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<communityengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/communityengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" 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/communityengine?hl=en.

Reply via email to