I want to post in wordpress.com with POST BY EMAIL functionality. I wrote a script to post it to rajeevroywords.wordpress.com blog, but my mail is not creating any new post but when I am sending mail via Gmail its creating a new post in wordpress.com. what mistake I am doing. I could not understand.
Here is my simple code :
$to = "[post by email address removed]";
$subject = "About Politics";
$message = "Hello! This is About Politics.";
$from = "[email address removed]";
$headers = "From:" . $from. "\r\n";
$headers .= "To:" ."[post by email address removed]". "\r\n";
$headers .= "Cc:" . "[email address removed]". "\r\n";
Its a very basic code. I have tried with different HEADERS also but the result is same.
please help me out from this issue.
If , there is any alternative way then please suggest.
Thanks in advance
The blog I need help with is rajeevroywords.wordpress.com.