Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 08:14:41 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155551 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Change default email settings  (Read 322 times)
Don

Offline Offline

Posts: 70


« on: September 08, 2011, 10:50:55 PM »

How do I change the default mail settings in ver 2.8.2?  I need to modify the text sent to persons who signup to the site and also to send a notice to myself when they have signed up to notify me.

There is a nice module at

http://wbdemo.heysoft.de/pages/en/mpform/installation.php?lang=EN

but I want to use the settings in WB for now.

I  have had a look at the database, but surely there must be a safer way?

Thanks.
Logged
Don

Offline Offline

Posts: 70


« Reply #1 on: September 09, 2011, 04:33:32 AM »

Aahhh .... can I use the EN.php  file to do this?



Edit:

Yes you can!  I changed the required text in here and it worked.  I have to assume this is the "correct" way to do it.

As far as a copy of the signup sent to Administrator, I used the same code I used to use in an older version of WB.  This code was overwritten when I upgraded to ver 2.8.   embarassed


}
}

// Send Administrator a message

    $mail_subject = 'New User';
    $mail_to = 'my email@net.com';
    $mail_message = ''.
 'A new user: '.$display_name.' has signed up to the website.';

    $wb->mail(SERVER_EMAIL,$mail_to,$mail_subject,$mail_message)

?>

This is added to the end of existing signup2.php.

This is not the best way I am sure, as I have to put my email address right into the code.

Is there a better way to do this in ver2.8?

Thanks
« Last Edit: September 09, 2011, 05:40:23 AM by Don » Logged
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #2 on: September 09, 2011, 05:42:23 AM »

Hi Don,

Yes you can use the EN.php  file to do this. Think about a backup for this file, that it will not overwrite by upgrading.

Dietmar
Logged

We are human beings - and nobody is perfect at all.
Don

Offline Offline

Posts: 70


« Reply #3 on: September 09, 2011, 03:44:37 PM »

Yes ... silly me!  Live and learn.  Thanks Dietmar.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!