Skip to content

Instantly share code, notes, and snippets.

@calebcauthon
Created July 2, 2012 17:32
Show Gist options
  • Save calebcauthon/3034473 to your computer and use it in GitHub Desktop.
Save calebcauthon/3034473 to your computer and use it in GitHub Desktop.
params = {}
params[:to] = "white@lists.lawrenceultimate.com"
params[:subject] = "xxx"
params[:from] = ""
@@params = params
if(@@params[:to].include?("blue@"))
to_email = get_emails_for_team("BLUE")
from_email = "Blue Team <blue@lawrenceultimate.com>"
elsif(@@params[:to].include?("red@"))
to_email = get_emails_for_team("RED")
from_email = "Red Team <red@lawrenceultimate.com>"
elsif(@@params[:to].include?("white@"))
to_email = get_emails_for_team("WHITE")
from_email = "White Team <white@lawrenceultimate.com>"
elsif(@@params[:to].include?("black@"))
to_email = get_emails_for_team("BLACK")
from_email = "Black Team <black@lawrenceultimate.com>"
elsif(@@params[:to].include?("orange@"))
to_email = get_emails_for_team("ORANGE")
from_email = "Orange Team <orange@lawrenceultimate.com>"
elsif(@@params[:to].include?("green@"))
to_email = get_emails_for_team("GREEN")
from_email = "Green Team <green@lawrenceultimate.com>"
elsif(@@params[:to].include?("yellow@"))
to_email = get_emails_for_team("YELLOW")
from_email = "Yellow Team <yellow@lawrenceultimate.com>"
elsif(@@params[:to].include?("pink@"))
to_email = get_emails_for_team("PINK")
from_email = "Pink Team <pink@lawrenceultimate.com>"
elsif(@@params[:to].include?("test@"))
to_email = get_emails_for_team("TEST")
from_email = "Test Team <test@lawrenceultimate.com>"
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment