email - wrong address in the link

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Scooter

email - wrong address in the link

Post by Scooter »

Hi all,
I have managed to set up the email and it send everything correctly - however - when the mail arrives in my inbox - it has the localhost IP of my server and not the http://www.domainname.co.uk of my server (and the link (locally) works correctly)

I cannot seem to locate the point at which this is occuring - can anyone help

tia

Scoot
tro
Posts: 1
Joined: 03 Jun 2006, 14:42

Post by tro »

Sorry to bring this thread up again, but I have exactly the same problem. Mantis is running fine on a Win 2003 Server with IIS 6.0.

But the links in the email-notifications always refer to 'localhost', e.g. the link to the account registration is:
http://localhost:8000/verify.php?xxx

I cannot find the entry/file where this can be changed. What I want is that the link refers to the hostname of the server, so the links are also usable from outside.

Thanks in advance!

Edit: sorry forgot, the installed mantis version is v1.0.3
Passer
Posts: 3
Joined: 10 Jul 2006, 19:52
Contact:

Post by Passer »

Any sugestions?

I have the same question (and problem ;)

MfG
Passer
palula
Posts: 23
Joined: 21 Jun 2006, 13:12
Location: Brasil
Contact:

Post by palula »

I changed it on the config_defaults_inc.php and now everything works fine.

$g_hostname = 'my.domain.address.here';

Now everything works fine, except when opening Mantis on the server using, for example: http://localhost/mantis... When I report a Bug using this address, the bug goes on the email with the adress http://localhost/mantis/bug_url_bogus instead of http://my.domain.address.here/mantis/bug_url_bogus...

my.domain.address.here can be an IP Address. In my case it is and works fine.

Hope it helped...

P.S.: Tried to take out the links but didn´t know how... HTML is OFF for this post, but still, links are active.
Post Reply