# -*- encoding : utf-8 -*-

class Newsletter < ActiveRecord::Base
  validates_presence_of :title
  
  attr_accessible :title, :content, :email_from
  
  #EMAIL_FROMS=["Le Pic Vert <contact@lepicvert.asso.fr>", "Le Pic Vert <s.montchalin@lepicvert.asso.fr>"]
  
  EMAIL_FROMS=["contact@lepicvert.asso.fr","m.botton@lepicvert.asso.fr","s.montchalin@lepicvert.asso.fr","c.paul@lepicvert.asso.fr","m.coulot@lepicvert.asso.fr","b.cambon@lepicvert.asso.fr"]

  EMAIL_TEXTES= {
    "contact@lepicvert.asso.fr" => ["Le Pic Vert",""], 
    "s.montchalin@lepicvert.asso.fr" => ["Sonia - Le Pic Vert","Sonia Montchalin", "Animatrice nature et environnement"],
    "m.botton@lepicvert.asso.fr" => ["Martial - Le Pic Vert","Martial Botton","Coordinateur"],
    "c.paul@lepicvert.asso.fr" => ["Camille - Le Pic Vert","Camille Paul","Apprentie BTSA Gestion et Protection de la Nature"],
    "m.coulot@lepicvert.asso.fr" => ["Méline - Le Pic Vert","Méline Coulot","Engagée en service civique"],
    "b.cambon@lepicvert.asso.fr" => ["Bastien - Le Pic Vert","Bastien Cambon","Engagé service civique"]
  
  }

end
