UPDATE llx_societe
SET email = CONCAT(LEFT(email, INSTR(email, '@')), 'ledomaine.tld')
WHERE email IS NOT NULL;
UPDATE llx_socpeople
SET email = CONCAT(LEFT(email, INSTR(email, '@')), 'ledomaine.tld')
WHERE email IS NOT NULL;
In some dev/test cases, configuring the redirection of all emails to an email x is not always sufficient. For complex workflows, it may be necessary to be able to identify the recipients (e.g. tests with the mail collector).
it would therefore be necessary to be able to mass-modify all e-mails to change not only the domain, but also the identifier.
example of possible modifications to consider :
email: jean.dupont@lentreprisedejean.tld
new email: mon.email.a.moi+jean.dupont@gmail.com or jean.dupont@monautredomaine.tld
Dans certains cas de dev/test la configuration de redirection de tout les emails vers un mail x n'est pas toujours suffisant il peut arriver que pour des workflow complexes il soit nécéssaire pouvoir identifier les destinataires (ex tests avec le collecteur de mail)
il faudrait donc pouvoir modifier en masse tout les mails pour changer le domaine mais aussi l'identifiant
exemple de possibilités de modifs a envisager :
email : jean.dupont@lentreprisedejean.tld
nouvel email : mon.email.a.moi+jean.dupont@gmail.com ou jean.dupont@monautredomaine.tld