Forum Replies Created

Viewing 1 replies (of 1 total)
  • AoP

    (@aop)

    Allow me to add one more possible solution. I found out that my hoster’s mail()-function does not accept the fifth argument in brackets. AFAIK it’s usually used to override the “Return-Path”-settings.
    Anyways, this one worked for me:

    [code]
    function wp_mail($to, $subject, $message, $headers = '') {
    if( $headers == '' ) {

    // You might want to adjust this
    $from = "From: Your Blog <mailhandle@domain.tld>";

    $headers = "$from" . "MIME-Version: 1.0\n" .
    "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n";
    }

    return @mail($to, $subject, $message, $headers);
    }
    [/code]

Viewing 1 replies (of 1 total)