mail converter issue action = not make a new lead
First of all, I thank Eng Vivek for this new platform
i made mail converter to convert email to new lead action and it works well But there is one problemThe first mail received is made new lead fine and all next mails not creat new leadbut it go to the first lead created link on mail related module
i want every mail sent create new lead
thank you
Comments
Go to modulesSettingsMailConverterhandlers/MailScannerAction.php
rename
function apply($mailscanner, $mailrecord, $mailscannerrule, $matchresult) {
to
function apply1($mailscanner, $mailrecord, $mailscannerrule, $matchresult) {
add following -
function apply($mailscanner, $mailrecord, $mailscannerrule, $matchresult) {
$returnid = false;
if($this->module == 'Leads') {
$returnid = $this->__CreateLead($mailscanner, $mailrecord,$mailscannerrule);
}
if($this->actiontype == 'CREATE') {
if($this->module == 'HelpDesk') {
$returnid = $this->__CreateTicket($mailscanner, $mailrecord,$mailscannerrule);
} else if ($this->module == 'Contacts') {
$returnid = $this->__CreateContact($mailscanner, $mailrecord,$mailscannerrule);
} /*else if ($this->module == 'Leads') {
$returnid = $this->__CreateLead($mailscanner, $mailrecord,$mailscannerrule);
} */else if ($this->module == 'Accounts') {
$returnid = $this->__CreateAccount($mailscanner, $mailrecord,$mailscannerrule);
}
} else if($this->actiontype == 'LINK') {
$returnid = $this->__LinkToRecord($mailscanner, $mailrecord);
} else if ($this->actiontype == 'UPDATE') {
if ($this->module == 'HelpDesk') {
$returnid = $this->__UpdateTicket($mailscanner, $mailrecord, $mailscannerrule->hasRegexMatch($matchresult),$mailscannerrule);
}
}
return $returnid;
}
Regards
Vivek
i do that still the same issue .
It should work . Can i do remote desktop/Anydesk to your CRM?
Thanks
Vivek