FIX output of emails from and error on emailing pages.

This commit is contained in:
Laurent Destailleur
2019-12-13 15:52:08 +01:00
parent 95141550fa
commit d38c73c90a
5 changed files with 49 additions and 7 deletions

View File

@@ -1489,6 +1489,7 @@ class CMailFile
* If format 3: '<john@doe.com>' or '"John Doe" <john@doe.com>' or '"=?UTF-8?B?Sm9obiBEb2U=?=" <john@doe.com>'
* If format 4: 'John Doe' or 'john@doe.com' if no label exists
* If format 5: <a href="mailto:john@doe.com">John Doe</a> or <a href="mailto:john@doe.com">john@doe.com</a> if no label exists
* @see getArrayAddress()
*/
public static function getValidAddress($address, $format, $encode = 0, $maxnumberofemail = 0)
{
@@ -1560,6 +1561,7 @@ class CMailFile
*
* @param string $address Example: 'John Doe <john@doe.com>, Alan Smith <alan@smith.com>' or 'john@doe.com, alan@smith.com'
* @return array array of email => name
* @see getValidAddress()
*/
public function getArrayAddress($address)
{