Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

IIS Cron - Invoice link incorrect hostname

Jeff Wong   ( User )

Commented 3 years ago

Hi all,

I'm having problem when receive the recurring email notification, the invoice link become "http://localhost..."

In invoice recurring email template, the link is reflecting the {invoice_guest_link} tag.

I can receive the correct invoice link that with my actual hostname if I log in to the system and send the invoice manually.

This is how I run the cron job with Windows Schedule:
"C:\Program Files\PHP\v7.4\php.exe" -f "C:\Akaunting\artisan" "recurring:check"

Hope you could share me your solution too.
Thank you.

Denis Dulici   ( Admin )

Commented 3 years ago

Hello,

You add the following line in your .env file:

APP_URL=https://my-domain.com

Regards

Jeff Wong   ( User )

Commented 3 years ago

Thank you very much Denis, it works.

Please login or register to leave a response.

Showing 1 to 3 of 3 discussions