• Resolved larsras

    (@larsras)


    Hi

    I have problems using the “Cc:” in headers. I just get an error from wp_mail when Cc is added. I have tried various forms for contructing the headers. Here is just one of them:

    $headers[] = “From: “.get_info(‘name’).” <$from>”;
    $headers[] = “Reply-To: $from”;
    //$headers[] = “Cc: $from”;
    $headers[] = “Content-Type: text/plain; charset=utf-8”;

    return wp_mail($to, $subject, $message, $headers);

    As soon as i enable the Cc: line, then it fails.

    Any ideas how to fix that?

    br Lars

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

    (@larsras)

    Found the problem.
    My ISP has just made restrictions on which email addresses are allowed in From:. So now it is only addresses belonging to my domain.

Viewing 1 replies (of 1 total)
  • The topic ‘wp_mail and "Cc:" in headers?’ is closed to new replies.