<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://gwiki3.thatlinuxbox.com/index.php?action=history&amp;feed=atom&amp;title=Welcome_Email</id>
		<title>Welcome Email - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://gwiki3.thatlinuxbox.com/index.php?action=history&amp;feed=atom&amp;title=Welcome_Email"/>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=Welcome_Email&amp;action=history"/>
		<updated>2026-04-04T10:50:30Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.5</generator>

	<entry>
		<id>http://gwiki3.thatlinuxbox.com/index.php?title=Welcome_Email&amp;diff=4047&amp;oldid=prev</id>
		<title>Dirk: How to change the text of the welcome email</title>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=Welcome_Email&amp;diff=4047&amp;oldid=prev"/>
				<updated>2006-03-25T20:34:25Z</updated>
		
		<summary type="html">&lt;p&gt;How to change the text of the welcome email&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== The default text ===&lt;br /&gt;
&lt;br /&gt;
Users registering an account with a Geeklog-powered site will get an email containing an automatically generated password that they have to use to log into the site. The standard text of that email is as follows:&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Your ''Geeklog Site'' account has been created successfully. To be able to use it, you must login using the information below. Please save this mail for further reference.&lt;br /&gt;
&lt;br /&gt;
User Name: ''yourname''&amp;lt;br&amp;gt;&lt;br /&gt;
Password: ''somepassword''&lt;br /&gt;
&lt;br /&gt;
This password is generated by a randomizer. It is recommended that you change this password immediately. To change your password, log in and then click Account Information from the User Functions menu.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Changing the language file ===&lt;br /&gt;
&lt;br /&gt;
If you want to change the text of that message, then the simplest method is to edit Geeklog's language file, &amp;lt;tt&amp;gt;/path/to/geeklog/language/english.php&amp;lt;/tt&amp;gt; (assuming English as your language), accordingly. The two sections of the above message are the strings #15 (''Your ... account has been created successfully ...'') and #14 (''This password is generated ...''), respectively, in the $LANG04 array.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Creating your own welcome email ===&lt;br /&gt;
&lt;br /&gt;
Editing the language file as described above limits you to these two text sections (although they can be considerably longer than the original text, if you want to) which sometimes is just not flexible enough. Also, you'll have to make those changes again after every Geeklog update.&lt;br /&gt;
&lt;br /&gt;
So, instead of using the built-in email message, you can create a simple text file that contains the text that you want to be sent to new users. That file has to be named '''welcome_email.txt''' and has to be placed in Geeklog's &amp;lt;tt&amp;gt;data&amp;lt;/tt&amp;gt; directory, &amp;lt;tt&amp;gt;/path/to/geeklog/data&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In that text file, just add whatever you want to be contained in a message to a new user. To refer to the username and password, as well as your site's name and URL, you can use the following variables (i.e. these words in curly braces will be replaced with the proper information when the email is sent out):&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
!variable&lt;br /&gt;
!contains&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;{auth_info}&amp;lt;/code&amp;gt;&lt;br /&gt;
|Username and password on two separate lines, just as in the original email.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;{lang_text1}&amp;lt;/code&amp;gt;&lt;br /&gt;
|The first line of text, as in the original email (''Your ... account has been created ...'').&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;{lang_text2}&amp;lt;/code&amp;gt;&lt;br /&gt;
|The second line of text, as in the original email (''This password is generated ...'').&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;{lang_password}&amp;lt;/code&amp;gt;&lt;br /&gt;
|The word &amp;quot;password&amp;quot; in the current language.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;{lang_username}&amp;lt;/code&amp;gt;&lt;br /&gt;
|The word &amp;quot;username&amp;quot; in the current language.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;{password}&amp;lt;/code&amp;gt;&lt;br /&gt;
|The user's generated password.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;{site_name}&amp;lt;/code&amp;gt;&lt;br /&gt;
|The name of your site, i.e. the value of &amp;lt;code&amp;gt;$_CONF['site_name']&amp;lt;/code&amp;gt; from your &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;{site_slogan}&amp;lt;/code&amp;gt;&lt;br /&gt;
|Your site's slogan, i.e. the value of &amp;lt;code&amp;gt;$_CONF['site_slogan']&amp;lt;/code&amp;gt; from your &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;{site_url}&amp;lt;/code&amp;gt;&lt;br /&gt;
|The URL of your site, i.e. the value of &amp;lt;code&amp;gt;$_CONF['site_url']&amp;lt;/code&amp;gt; from your &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;{username}&amp;lt;/code&amp;gt;&lt;br /&gt;
|The username, i.e. the short name that the user chose for their account when they signed up.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So your '''welcome_email.txt''' file could contain a message like this:&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Hello {username},&lt;br /&gt;
&lt;br /&gt;
thank you so much for signing up with {site_name}! We hope the site will be useful to you. Below is your username and password that you can use to log into the site:&lt;br /&gt;
&lt;br /&gt;
{auth_info}&lt;br /&gt;
&lt;br /&gt;
We recommend that you change your password once you've successfully logged into the site. Please use the following URL to change your password:&lt;br /&gt;
&lt;br /&gt;
{site_url}/usersettings.php?mode=edit&lt;br /&gt;
&lt;br /&gt;
Thanks again, {username}, for registering an account at {site_name} and we hope to hear from you soon.&lt;br /&gt;
&lt;br /&gt;
regards,&amp;lt;br&amp;gt;&lt;br /&gt;
The webmaster,&amp;lt;br&amp;gt;&lt;br /&gt;
{site_url}&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
... or something like that. The '''welcome_email.txt''' makes it easy to change the text of that email, so you may want to change it more often, e.g. by adding a link to current site highlights, special offers, or things like that.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>	</entry>

	</feed>