Hi,
i have never work with email module… but for other modules :
create before_save logic hook for email module
check if it’s new record
if new create a lead.
if (!isset($bean->fetched_row['id']))
{
//new record
$bean = BeanFactory::newBean('Leads');
$bean->blaba = ''blabla;
$bean->save();
}
else
{
//existing record
}
The problem for me is how determine first_name, last_name…
for this you need to make and var_dump($this) in email module for see witch variable contain the appropriate value.
Or look in email module file for see how is.
I am too interested for this.
Just to know, before create a new Leads, we must query the database for not duplicate.
And relate contact/lead to the inbound mail.
I thinks, this must be a core implementation in suitecrm … with some config variable like this :
Hi,
This is going to be possible from this product.
Not just creating leads or anything from your inbound emails , user can configure parsing rules as well.