We are using the developer API to send emails out through AcyMailing.
The code to send looks like this:
$mailer->sendOne($actionRule->email_id, $userToProcess->email)
Where $actionRule->email_id is the ID of an existing Newsletter in AcyMailing
In the body of the email (in AcyMailing Newsletters editor) there is this line:
<h3><a href="https://www.cmdnet.org/yma-subscriptions">CLICK HERE to renew your subscription now.</a></h3>
When the email is sent as a test, the link works fine.
When the email is manually added to the queue for a user, the link works fine.
However, when the email is sent out via the cron job running the developer API code above, the link in the HTML version of the email looks like this:
<h3><a href=3D"/homecmdnetpublic_htmlcli/index.php?option=3Dcom_acymailing&=
amp;ctrl=3Durl&subid=3D28222&urlid=3D73&mailid=3D155">CLICK HER=
E to renew your subscription now.</a><o:p></o:p></h3>
And the link in the plain text version looks like this:
CLICK HERE to renew your subscription now.</homecmdnetpublic_htmlcli/index.=
php?option=3Dcom_acymailing&ctrl=3Durl&subid=3D28222&urlid=3D73&mailid=3D15=
5>
And neither of those are proper links and don't work.
Any idea why these links are getting mangled when sent via the Developer API (but not when sent via the AcyMailing admin)?