Related: http://www.blesta.com/forums/index.php?/topic/3164-email-templates-with-wrong-urls/
I have Blesta installed on an Nginx webserver. Initially I installed in the root directory, then created a directory named billing, moved everything to it, changed the root_web_dir setting to /var/www/domain.com/billing/ and reissued the license.
When I manually choose to email an invoice the /billing/ prefix is present in the URL, however when it is done automatically through cron the links simply point to domain.com/clients/
This is my cronjob
/usr/bin/php -d "sendmail_path=/usr/sbin/sendmail <sendmail arguments> -t" /var/www/domain.com/billing/index.php cron > /dev/null
What could be wrong?