downloadMail - Email Match

By gkornbluth - November 14, 2016

Hi Perch,

Have a look at this:
It might help...

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!

Take advantage of a free 3 month trial subscription, only for CMSB users, at:

By Perchpole - November 14, 2016

Jerry -

You beauty! You've cracked it! Here's what I sued:

$emailAddress = $message['from'];
preg_match_all("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $emailAddress, $matches);
$fromMatchesMember = mysql_count('accounts', array('email' => $matches[0]));

if ($fromMatchesMember) {
  do stuff...

Thanks again,



By gregThomas - November 15, 2016

Hey Perch, 

Good to see you've got it working!



Greg Thomas

PHP Programmer -