Today I tryed to implement a functionality to create some CRM entities from email. I needed to retrieve an email, first name and last name (if possible) and body of the email. The last name is a mandatory property. I made a mistake when I used perlish style to initialize the last name: preg_match(‘/\”(.*)\”\s+\< (.*)\>/’, $from, $from_arr); $names = preg_split(‘/\s+/’, $from_arr[1]); $email = $from_arr[2]; $first_name […]