Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Post to your blog using email

I might be stupid - but I have seen all sorts of error messages, so a more extensive troubleshooting section would be just perfect!

Right now I see this one:

Ooops POP3 connect: Error [2] [No such file or directory]

Sigh - what does this mean? Where should I make a file or directory???

User:Festina--please visit User_talk:Festina for further guidance regarding questions left on Codex.

Possible Change

On my server I was receiving a POP error trying to authenticate if I followed the advice on this page that the login name in the WP Blog by Email settings should be the full user: user@dom.tld

 POP3 SEND [PASS testtest] GOT [-ERR Authentication failed.]

However, changing to just the username works great... can anyone verify if this is a 1.5/2.0 difference or if the note here should just be revised or stricken?


Possible addition or support issue

This was removed from the main article and needs to be verified and tested:

The routine that reads the e-mail does not (out of the box, version 1.5.1.3) handle single quotes - it actually kills the SQL insert statement. See the Wordpress support forum at http://wordpress.org/support/topic/31498 .

A brief quote from the forum post:

[...]the problem is solved by adding the function addslashes() to the sql statement at around line 49 of functions-post.php to read:

$sql = "INSERT INTO $wpdb->posts
(post_author, post_date, post_date_gmt, post_modified, post_modified_gmt, post_content, post_title, post_excerpt, post_category, post_status, post_name, comment_status, ping_status, post_parent)
VALUES ('$post_author', '$post_date', '$post_date_gmt', '$post_date', '$post_date_gmt', '".addslashes($post_content)."', '$post_title', '$post_excerpt', '$post_cat', '$post_status', '$post_name', '$comment_status', '$ping_status', '$post_parent')";

That is single-quote, double-quote dot addslashes($post_content) dot double-quote single-quote if you have trouble reading the above. This solution worked for my installation.

Lorelle 23:06, 5 Aug 2005 (UTC)

Submission Errors

I am getting DB errors for content that contains ' (single quote) marks.

Has anyone else run into this?

Please ask in the WordPress Support Forum at http://www.wordpress.com/support for help on this. We do not provide support here, only documentation. Lorelle 22:50, 22 Sep 2005 (GMT)

Hosted version?

I may be thick but I guess this applies only to the downloaded version, right? If yes, I assume there's no way to post by email on wordpress.com? (daft ain't?) User:Iiar

User Iiar -- A search of the wordpress.com forums found this: http://en.forums.wordpress.com/topic.php?id=19741#post-151400 Also, please remember to use a signature when leaving comments on talk pages. Thank you for contributing to Codex.
MichaelH (talk) 21:00, 23 January 2008 (UTC)

Rename?

Suggestion: This page should be moved/renamed to Post via E-mail, since that is what WordPress Version 2.3 (and up, presumably?) call it in the user interface.

--Katycat 03:23, 13 March 2008 (UTC)

Objectivo da "A Real Verdade de OH"

Este espaço foi criado com o objectivo de aqui ser divulgada toda a realidade do Concelho e Freguesias de Oliveira do Hospital. Sabendo que, quem comanda os destinos deste Concelho é um Ditador que intimida, que compra, que usa, que abusa, que denigre a população deste Concelho, você como leitor identificado ou anónimo poderá aqui neste espaço divulgar de uma forma livre, factos concretos que se deparam na sua Freguesia e por todo o Concelho de Oliveira do Hospital, e que tanto nos têm prejudicado a nível geral. Será também importante que todo o povo deste Concelho venha a saber dos favores pessoais que se têm feito em troca de um desespero eleitoralista que neste momento o "líder" deste Concelho está a atravessar. Sem medo, sem opressão envie-nos por e-mail A Real Verdade de OH.

E-mail para enviar toda a informação: arealverdade@wordpress.org

Why is this so bloody complicated...

...when it's so drop dead easy at wordpress.com? Also, why doesn't this work with individual sites under multisite? I have never gotten this to work on a hosted site!