I tried to use the ReplacePart function, but the message comes with missing parts, like if I send a personalized link, this part need be id changed for each recipient, I send:
abilityweb.com.br/esppacoalpha/site
...
I receive:
abilityweb.com.br/esppacoalpha/site
...
I using HTML. So:
Before recipients loop:
$message= $this->corpo; $email_message->CreateQuotedPrintableHTMLPart($message,"",$text_part);
$email_message->AddHTMLPart($text_part);
In the loop
Here are many functions to change something for each recipient...
$corpo = str_replace('href="', 'href="'.ENDERECO_SITE.substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'],"/")).'/link.php?mlm_id='.$this->mlm_id.'&nvi_id='.$nvi_id.'&link=', $corpo);
...
$email_message->CreateQuotedPrintableHTMLPart($email_message->WrapText($message),"",$recipient_text_part);
$email_message->ReplacePart($text_part,$recipient_text_part);
So, I don't know what part i'm worng