Re: [affinitymc] DownloadMail Plugin Question: Multiple email accounts
Hi,
So all of your emails are getting saved to the incoming_mail table, but you only want to extract certain emails on certain pages. Is that right?
What you can do is look at the "To" field in the table. For example, if you're trying to get all the emails sent to the "Calgary@" email address, your query could look like this:
list($calgaryEventsRecords,$calgaryEventsMetaData)=getRecords(array(
'tableName' => 'incoming_mail',
'where' => "to LIKE 'Calgary@%'",
));
This should only retrieve emails where the to field begins with Calgary@
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/