Created
January 21, 2012 21:19
-
-
Save anabelle/1654047 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def receive_email | |
@params = params | |
#make sure request is a post | |
text = params["text"] | |
html = params["html"] | |
to = params["to"] | |
from = params["from"] | |
subject = params["subject"] | |
attachment1 = params["attachment1"] | |
lead_string = attachment1.read | |
email_leads = lead_string.scan(/\d.*/)[0].to_i | |
phone_leads = lead_string.scan(/\d.*/)[1].to_i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment