[Vtigercrm-developers] comments from the portal and the from address
Alan Bell
alan.bell at libertus.co.uk
Tue Sep 22 17:51:37 GMT 2015
when a customer comments on a ticket from the portal it is supposed to
send the owner of the record a notification "from" the customer email
in modules/ModComments/ModCommentsHandler.php there is the following
code around line 91
$customerId = explode('x', $customerWSId);
$result = $adb->pquery("SELECT email FROM
vtiger_contactdetails WHERE contactid=?", array($customerId[0]));
this explodes the webservices id of the customer (which looks something
like 10x12345) and then looks up the email for the zeroth part of the
array caused by exploding on x. That would be 10. It should take the
other bit, so change the line to read:
$result = $adb->pquery("SELECT email FROM
vtiger_contactdetails WHERE contactid=?", array($customerId[1]));
being broken results in exchange servers bouncing the mail because they
don't like the from address.
Alan.
More information about the vtigercrm-developers
mailing list