Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I moved the blog I was working on from my development server (on DreamHost) to the client's server (some local host which they are unwilling to switch from). Everything seems to be working perfectly, except that users are not receiving their new user confirmation emails, or their lost password emails.

I have Contact Form 7 installed, and that sends emails out perfectly, so I know the server is set up to send mail successfully.

I have checked that I have the correct email address in General Settings and in the User Settings.

I have tested a simple mail() script on the server, and that sends just fine:

<?php $message = "Line 1\nLine 2\nLine 3"; $message = wordwrap($message, 70); mail('myemailhere@nospam.com', 'My Subject', $message); ?>

PHP version is 5.2.6-1+lenny9

Where do I even begin with this? My google-fu is not strong today (I get a bunch of crappy posts that don't actually help)... I'd prefer not to have to resort to a plugin to fix this (although I'm happy to use a plugin to temporarily troubleshoot, if necessary).

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Have you checked that wp_mail() works properly? CF7 might be using its own custom smtp interface or something like that, to work around issues in wp_mail().

share|improve this answer
1  
wp_mail() is not working... but thats a start, at least - I can narrow my fruitless google search down some, now :). SMTP is set to localhost (WP database is not on localhost, if that makes a difference?), and smtp_port is 25. sendmail_from has no value. Maybe thats the problem there... –  Amanda Nov 2 '10 at 12:57
    
Aha - yes, thank you. Specifying sendmail_from made it work. Thanks so much... –  Amanda Nov 2 '10 at 13:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.