Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By vthunder on
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
Can you flush the Drupal
Can you flush the Drupal cache? Try that.
- Craig Vanderlinden @cvanderlinden
I just flushed the cache and
I just flushed the cache and the old email is still coming up. Thanks.
Maybe updating user 1's email
Maybe updating user 1's email address would help.
Can you do it on the site, or else use the mysql command
- Craig Vanderlinden @cvanderlinden
Based on what you said I
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.
how did you fix it?
I'm having the same problem and really need to get this fixed before I can launch my site...
I have the same problem
Hi,
I have the same problem. Anyone knows how to fix this?
hosais
Did you try what I suggested
Did you try what I suggested here http://drupal.org/node/1182738#comment-4576440
- Craig Vanderlinden @cvanderlinden
I'm having the exact same issue.
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?
You have to fix it in your settings.php file
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.
Fix from settings.php
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.
Had the same issue
Yeah I had the same issue and had to manually update the database with
Since i think that the update cron run uses init.
Good luck
"update_notify_emails" row in "variable" table (database)
(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: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.
It's fixed
apply the solutions motioned above in reverse order, there you go.