Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • As I mentioned in my previous message, I’m using Google’s free email service in my case. I had a feeling the server was only sending the mail locally, since mail to addresses outside the domain worked, but mail to addresses in the domain were not received via Google’s interface. I logged into the server control panel and deactivated mail on the account and the messages then started getting through. I hope this helps someone. I also tracked down where the wp_mail() resides. It’s in wp-includes/pluggable.php. It basically just uses php-mailer, a tried and true PHP mail script.

    I hope to update the documentation for that function, since the wiki page is just a stub. Does anyone know if WordPress is going to publish an API any time soon? It certainly would be useful.

    I took a look into the source code and Contact Form 7 just wraps the email up and then sends it to WordPress’ wp_mail() function.

    if ( $attachments ) {
    		$for_this_mail = array();
    		foreach ( $attachments as $name => $path ) {
    			if ( false === strpos( $mail_template['attachments'], "[${name}]" ) )
    				continue;
    			$for_this_mail[] = $path;
    		}
    		return @wp_mail( $mail_recipient, $mail_subject, $mail_body, $mail_headers, $for_this_mail );
    	} else {
    		return @wp_mail( $mail_recipient, $mail_subject, $mail_body, $mail_headers );
    	}

    Perhaps the issue lies there. Unfortunately that function is poorly documented at the moment.

    I have a similar issue. If I set the email address of the form to my Gmail address, I receive messages immediately. When I change the email address to one with the same domain as the website, the messages disappear.

    I’m using Google to host the domain’s email, so I have a feeling it has something to do with the mail being sent locally, when really I should be using the Gmail SMTP server. Thoughts anyone?

    Thread Starter truetone

    (@truetone)

    Nevermind. It had something to do with the Google Site Maps plugin. Once I deactivated that, everything worked fine.

    Wow. What a simple, elegant solution. Thanks!

    This happened to me after moving my WP install to a new server. The solution that finally worked was to:

    1. rename the uploads folder
    2. create a new uploads folder
    3. change the permissions on the new folder to 777 (755 might work as well, I haven’t tried that)
    4. move my folders from the old uploads folder to the new one
    5. Upload a file via WordPress

    I should note that my new file I uploaded for the final step was the first one for the current month. The newly uploaded image was able to create a new folder in ‘uploads’ (in my case uploads/2008/11) and save the image there. This after months of toying around with permissions.

    Of further note: I am not running PHP in Safe Mode.

Viewing 6 replies - 1 through 6 (of 6 total)