• raptor2

    (@raptor2)


    hi can i change it? “send by ”

    this is my function:

            $to = $_POST['post_email'];
            
            $subject = 'Subject';
            $body = 'my content.';
            $headers = array(
                'Content-Type: text/html; charset=UTF-8',
                'From: site.com <[email protected]>',
                'BCC: site.com',
                'Cc: site.com',
                'Reply-To: <[email protected]>'
                
            );
    
            wp_mail( $to, $subject, $body, $headers );
Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What do you mean by “send by”? What are you trying to accomplish?

    Thread Starter raptor2

    (@raptor2)

    iu gmail i have field “send by” and i dont know hwere can i change it

    Moderator bcworkz

    (@bcworkz)

    Maybe there is a translation issue? I use gmail, there is no such field in the English version. The standard email fields are: From:, To:, CC:, BCC:, Sent: (a date/time), Subject:, Body, Attachments. Which do you want to change?

    Thread Starter raptor2

    (@raptor2)

    look at this: http://screenshot.sh/n9L1ebnW3VlXn
    on red is field i wanna change

    • This reply was modified 9 years ago by raptor2.
    Moderator bcworkz

    (@bcworkz)

    Dziękuję. It’s strange, that still does not look quite like my Gmail display. My knowledge of Polish is awful, but I think I get it. Od: is essentially the From: field. The Wysłana przez: field is the Reply to: field, which is normally the same as From: but in some cases can be different.

    On WP sites, the From: field ends up being by default something like My Cool Site <[email protected]>. The Reply to: is just the address, no site name. These are changed through two different filters. The site name is filtered with ‘wp_mail_from_name’ and the address is filtered with ‘wp_mail_from’. More explanation and example code is found here.

    While you may set these to anything you like, in some cases From: addresses that do not match your site’s domain name are more likely end up in people’s spam folder or are even discarded completely. YMMV.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘wp_mail “Send by:”’ is closed to new replies.