Changing the sign up admin email

Permalink
Quick question.
When making the website, I simply input my own email with the idea I'd change it later, but I can't find where to change it.
I googled the problem and saw I have to look for config/site.php but that hasn't been around since 5.7.

I know I have to add:
define('EMAIL_DEFAULT_FROM_ADDRESS', 'demo@example.com');


To a file, but I don't know which one?
In application/config I've got:
1. app.php
2. database.php

and two folders called:
1. doctrine
2. generated_overrides

Where can I edit the email I used when originally making the website?

 
ghoststalker195 replied on at Permalink Reply
Bump.
Can anyone help with this one?
It's probably (hopefully) a really easy answer, I just cannot find it.
typoman76 replied on at Permalink Reply
typoman76
Hi ghoststalker195

The definition you found is for the older concrete5 version (5.6 and lower).

You can set your adress in application/config/concrete.php
Check this documentation page. There you find a code example for this under the first section (A).

https://documentation.concrete5.org/developers/sending-mail/configur...

best regards, typoman76
typoman76 replied on at Permalink Reply
typoman76
Oh i missed one thing. If your don't want to touch some code you can use the handyman addon. This helps with configuration and provides an interface - not only for the mail-address.

https://www.concrete5.org/marketplace/addons/handyman/...
ghoststalker195 replied on at Permalink Reply
Hi there Typo,

Thanks for the reply!
So there's no concrete.php file in application/config
I've made a new concrete.php file and added:

<?php
return array(
    'email' => array(
        'default' => array(
            'address' => 'newmail@email.com',
            'name' => 'Your Site', // this can be left out
        ),
    ),
);


And tested it. However the mail I received was still under the old address.
typoman76 replied on at Permalink Reply
typoman76
Hmm. I use this like you describe. And it works.
Have your cleared cache in concrete5?

You can use the search field to find the 'clear cache' function.
This could help to clean override cache.

typoman76
ghoststalker195 replied on at Permalink Reply
Afraid clearing the cache didn't help either.
I must've done something wrong somewhere.
Am I suppose to close the php tag at the end?

?>

Or is that done in another file?