I've also been facing this issue, and several posters to this thread provided clues that helped.
To sum up the problem:
- On installation, if you don't set the 'site_url' parameter correctly, your 'New account information' emails won't have the proper url.
- widodude is right that Advanced_Password_SeedData.php sets up the templates, but -- it does it only ONCE, when you install Sugar.
- After installation, you must follow eitrix's advice and modify the email_templates table in the Sugar database directly.
- I feel this is a bug in Sugar -- the New account email should create its link from the current site_url every time the email is sent, not just once on install.
Sample SQL to fix:
- Note 1: modify the [body] and [body_html] fields from your own email_templates records. Don't use this example -- it may not work for your configuration.
- Note 2: SQL Server syntax; MySQL syntax may vary slightly
Code:
UPDATE [sugarcrm].[dbo].[email_templates]
SET
[body] =
'Welcome to SugarCRM!
To register, go to:
http://yourdomain/sugarcrm/index.php
Login with your username and one-time, temporary password:
Username : $contact_user_user_name
Password : $contact_user_user_hash
On the next screen, enter your permanent SugarCRM password.'
, [body_html] =
'<div>
<h3>Welcome to SugarCRM!</h3>
<ol>
<li>To register, go to:<br/>
<a href="http://yourdomain/sugarcrm/index.php">http://yourdomain/sugarcrm/index.php</a></li>
<li>Login with your username and <i>one-time, temporary</i> password:<br/>
<b>Username : $contact_user_user_name</b><br/>
<b>Password :</b> $contact_user_user_hash</li>
<li>On the next screen, enter your permanent SugarCRM password.</li>
</ol>
</div>'
WHERE
id = '(id of the new account email template)'
Bookmarks