• Hi,
    I’ve spent already quite some time trying to configure wp-mail.php.
    When I check it online via browser, it works fine.
    I set up a cron job at media temple where my blog is hosted, and set up an email account only to get debugging from the cron job. when I finally managed to make it do something, all I get is a message saying

    Error establishing a database connection

    and the rest of the associated message. Apparently it reaches the point where it cannot grab data from wp-config and just dies there.
    Again, it only happens with the cron. With the browser works just fine.
    the cron is like this:

    /usr/bin/php /home/something/domains/domain/html/wp-mail.php

    the path is correctly set up. I am totally lost. Any help or clue appreciated. Thanks a lot,
    Indira

Viewing 1 replies (of 1 total)
  • Thread Starter indiramm

    (@indiramm)

    Hi,
    well, after messing around with everything, I wentback to the wget -N command in the cron object.
    It is now working, that is, I send a mail to the secret account and the job is doing just fine.
    the only flaw is that I am still geting a PERMISSION DENIED error log from the cron file but that’s it, it’s not dupplicating entries now, and it publishes them just fine, evenusing outlook with HTML messages. Still I think it should be easier to understand and configure, it took me quite some time to understand.
    php /complete path/wp-mail-php won’t work I think because it shouldn’t be a path but a URL in order for the PHp of wp-mail to include the wp-config.php and the other file. else, it cann’t find (and this is only a guess) server path and dir path variables. I repeat, I’m only guessing, but that’s why I got a database error.
    with the URL it didn’t work at all, I got a “cannot find input file”
    so it just worked this way, setting permissions to 777 for wp-mail.php.
    anyway, I hope this helps someone save a little time.
    regards!

Viewing 1 replies (of 1 total)
  • The topic ‘Help with Wp-mail asking for password’ is closed to new replies.