PDA

View Full Version : Email Parser - Aweber


Chunkford
13-Nov-2007, 09:12 AM
Hi everyone,
Can anyone point me in the right direction and are able to share the rule set with me?
I just want to capture the customers email and name so when they place an order they get a opt in email to sign up to our 'newsletter' if they wish.

Regards
Paul

gabrielcrowe
13-Nov-2007, 09:21 AM
http://www.aweber.com/faq/ ?:rolleyes:

Chunkford
13-Nov-2007, 09:26 AM
http://www.aweber.com/faq/ ?:rolleyes:

Tried that, first place i looked :)

gabrielcrowe
13-Nov-2007, 10:27 AM
sorry, lol, thought you might have missed tfm.

are the rules complex to make? how does it work?

Chunkford
13-Nov-2007, 01:15 PM
This is where im stuck.
Heres a snippet from the worldpay parser

Trigger Rule: From:\s+orders@[^ ]*worldpay.com\b Match: "Body or Head"

Rule 1: Shopper's Name:\s+(.*)\s*\n Match: "Body or Head" - Store in: "what ever variable you have made e.g. NAME"

Rule 2: Shopper's Email:\s+([^ @]+@\S+) Match: "Body or Head" - Store in: "what ever variable you have made e.g. Email"

You can create as many rules as you like to grab information from any email that is sent to your customer.
Now its the code bit that stumps me, and i have tried searching the web for references; but no joy :(

NormanRouxel
13-Nov-2007, 02:01 PM
These look like regular expressions. They match patterns within text. They're used in many programming languages. There will be many tutorials on them if you google for regular expression tutorial.

Chunkford
13-Nov-2007, 02:10 PM
FANTASTIC!
thanks Norman for the push in the right direction.