Hello,

I'm trying to change the email address in Configuration/System/Site Information, the automated one. I change it and click save config, on the top it says the "configuration options have been saved" but then the email address changes back to what I had before and it is still the one that sends out the automated message. Everything else can be changed on that page except email. Is there a code I need to change, or a feature I need to disable. Thanks.

Comments

VanD’s picture

Can you flush the Drupal cache? Try that.

- Craig Vanderlinden @cvanderlinden

vthunder’s picture

I just flushed the cache and the old email is still coming up. Thanks.

VanD’s picture

Maybe updating user 1's email address would help.
Can you do it on the site, or else use the mysql command

UPDATE email SET 'email@example.com' WHERE uid = 1;

- Craig Vanderlinden @cvanderlinden

vthunder’s picture

Based on what you said I realized that it was my host site that was the reason for this happening, and not drupal. I appreciate the help.

Sunsani’s picture

I'm having the same problem and really need to get this fixed before I can launch my site...

hosais’s picture

Hi,

I have the same problem. Anyone knows how to fix this?

hosais

VanD’s picture

Did you try what I suggested here http://drupal.org/node/1182738#comment-4576440

- Craig Vanderlinden @cvanderlinden

carlomontagnino’s picture

I assumed the same thing proposed by VanD (http://drupal.org/node/1182738#comment-4576440) and it didn't work. So I decided to look in the database.

in the {variable} table, you'll want to look for the "site_name" entry. The email address is a longblob. When downloaded, the data was actually correct. WEIRD.

however the site was still send emails to the address that I had tried to change. I thought it MUST be in the database somewhere. After doing a global search I couldn't find the "bad" email anywhere. There is something VERY fishy going on.

I cleared the drupal cache, hoping it would work, and it didn't.

I even went as far as deleting the entire row, and recreating it with the proper information to no avail. (Please don't do this unless you know what you are doing).

I'm at my wit's end. I NEED this to be resolved, does anyone have any clue about this?

kapow99504’s picture

The data for Site Mail is listed in the settings.php file for your install, located here: sites/default/settings.php
First you have to change the permissions to 644 so that the file can be edited, make the fix and then change the permissions back to 444.

asistentweb’s picture

It is easier to fix it from the settings.php file.
Access it by going to sites/all/defaut/settings.php
Find the line: $conf['site_mail'] = 'youremail@email.com'; and simply change the 'youremail@email.com' and then save the changes.
This will automatically update in your drupal configuration as the new address.
I had the same problem and tried everything, including the permissions suggestion that kapow99504 made and still did not work.
This one worked straight away.
Refresh the home page after you make the changes.

ShaneOnABike’s picture

Yeah I had the same issue and had to manually update the database with

update users set init='<email>' where uid = 1;

Since i think that the update cron run uses init.

Good luck

knalstaaf’s picture

(Before applying the method below, check if the desired e-mail address is correctly filled out at admin/reports/updates/settings.)

I noticed that in the variable table of the database there's a row named "update_notify_emails". When I opened its corresponding BLOB-file I saw that an old e-mail address was being used there.

I was able to edit this BLOB-file using Navicat Lite (or Sequel Pro, which is free of charge, yet Mac only). I Opened the variable table, selected the row named update_notify_emails, clicked the BLOB (you have to click the actual BLOB, not just select the row) and hit the Text-icon in the menubar of Navicat Lite. It expanded a text-editor in which I could edit the BLOB-value (screen).

Pay attention though: make sure that amount of s: matches the amount of characters in the e-mail address. So for hello@world.com (15 chars in total) this line should look like this:

a:1:{i:0;s:15:"hello@world.com";}

If you don't do this, you may get unserialize errors.

I also noticed that in the user table of my Drupal database the old address was still present in the "init" column (of user 1). I changed that too just to make sure.

maxview’s picture

apply the solutions motioned above in reverse order, there you go.