PDA

View Full Version : e-mailing the newsletter


David
05-25-2006, 12:00 PM
Just setting up a new site and trying the newsletter out. Problem we have is that it's e-mailing from neewsletter@00.00.00.000. (the 00.00.... is our server IP). Apart from the spelling mistake, where does the data sit that's used to auto create this address? as I need to change it to the correct one.

Alex
05-25-2006, 02:21 PM
You got me confused here... Just made a fresh test on one of the testing servers, and here's what I got:

From: TestingSite <newsletter@best-XXX.com>
Reply-To: newsletter@best-XXX.com
To: info@word-press.net
Date: May 25, 2006 3:15 PM
Subject: Just Checkin

Can't see neewsletter, nor the IP instead of domain name.

Please, shed some light on this - what version of phpWordPress are you using, and preferrably contact support via HelpDesk with your server access info (administration / FTP) so we can take a look at this

David
05-26-2006, 08:46 AM
neewsletter was an e-mail typo mistake by the guy at our hosting company!

The site is sending out e-mails newsletters from:

Our website name <newsletter@000.000.00>

Instead of : Our website name <newsletter@oursite.com> I need some pointers as to where a setting in the site/PHP/Apache might be wrong.

However, when I tested signing up as a new user, the e-mail was sent from the site admin e-mail address.

Software was issued last month and was customised before delivery.

I updated my open ticket and sent an e-mail to support same time as I posted this. No reply yet, guess they are busy.

Alex
05-26-2006, 05:11 PM
The site is sending out e-mails newsletters from:

Our website name <newsletter@000.000.00>

Instead of : Our website name <newsletter@oursite.com> I need some pointers as to where a setting in the site/PHP/Apache might be wrong.

The system picks domain name from include/conf.php file (the $url variable). You can find this in admin/mail_list.php file, on line 402 (for standard v3.2 release)

$domain=substr($url,strpos($url,".")+1);

so, basically - check include/conf.php and see what is the value for the '$url' variable.

David
05-30-2006, 12:58 PM
Thanks for that. I passed this o to the hosting guys and this is their reply:

by changing the value in the conf.php it then prevents access to the mysql database. If you type 'mysql' in the command prompt on the server after changing the conf file (which basically tests connectivity to the database), it will come back with an error - 'access denied for user odbc@localhost.'
Could the developers advise on how to proceed with this, or if there is an alternate way of setting the smtp address?

Advice please.

Alex
05-31-2006, 12:50 PM
by changing the value in the conf.php it then prevents access to the mysql database. If you type 'mysql' in the command prompt on the server after changing the conf file (which basically tests connectivity to the database), it will come back with an error - 'access denied for user odbc@localhost.'
Could the developers advise on how to proceed with this, or if there is an alternate way of setting the smtp address?
Actually, I'm even more confused now. The value of $url variable is not related to MySQL by any means... Here is the short overview of classic conf.php file with comments next to it:

<?php
$url ="http://www.YourSite.com/"; // this is the variable used for Newsletter, amongst other things
$root = "/home/path/to/script/"; // *nix path, not important at this stage
// now, here goes MySQL info...
$sqlHost = "localhost";
$sqlUsername = "sql_user";
$sqlPassword = "sql_path";
$sqlDatabaseName = "sql_db";

$showFriendlyURL = "friendly"; // this is switch for SE friendly URLs
?>

As you can see, $url and $root params are not connected to MySQL db, and this is why I got confused when you said that changing the value in the conf.php prevents access to the mysql database?

I suggest you put together us and your hosting guys, I'm sure we shall resolve this within seconds :)

David
06-01-2006, 04:28 PM
I have already put them together, and they still can't work it out!