WordPress Contact Form 7 Plugin

The conformation emails sent to a customer all say "From: WordPress". Is there a way to change that to "From: Something Else"?

Thanks
Richard KortsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Jason C. LevineConnect With a Mentor No oneCommented:
This happens because it is WordPress's default setting to use "WordPress"

The fix above ought to work for Contact Form 7 but you can change the default by adding some code to functions.php:


function change_mail_from_name($from_name){
return "Best Name Ever"; // Or whatever you want here
}
add_filter("wp_mail_from_name", "change_mail_from_name");

Open in new window

0
 
tailoreddigitalCommented:
This is a bit dated, but might just be what you're looking for,

"On the "mail" box, the "from" field can be missing the correspondent tag. Check it to see if it looks like this:

[your-name] <[your-email]>

If [your-name] isn't there, or other equivalent value, the message will show up as coming from WordPress.

Also, make the name tag mandatory in the form field, by adding a star:
[text* your-name]

--------

If you want just the e-mail from the sender to appear, set the "from" field like this:
[your-email] <[your-email]>"

FYI,
https://wordpress.org/support/topic/contact-form-7-only-sends-from-wordpress
0
 
Richard KortsAuthor Commented:
To tailoreddigital,

See attached. It's the Mail (2) that I'm referring to. Note it shows JUST the email address in the From: box. If I put some text in from of that followed by a space, like "Rain1 CustomerService@rain1.com", will that do it?

Does it specifically look for a name in front of the address & if there, use that?

Thanks
Mail--2-.jpg
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Richard KortsAuthor Commented:
To tailoreddigital,

I added the Rain1 & a space before the email address.

It still shows the word WordPress in the from field (after the email address).

See Attached.

How can I get rid of that?
cust-email-sample.jpg
0
 
Richard KortsAuthor Commented:
Jason C. Levine,

Where do I put that php?

Thanks
0
 
Richard KortsAuthor Commented:
Jason C. Levine,

See attached.

Does it go in "Theme Functions"?

Or elsewhere?

THanks
functionsphp.jpg
0
 
Jason C. LevineNo oneCommented:
Theme functions.  

That theme is constructed a little strange.  Makes it more confusing that it needs to be.
0
 
Richard KortsAuthor Commented:
Jason C. Levine,

That's JUST going to change the default, not the cases where both a name & an email address are specified.

Right?
0
 
Jason C. LevineNo oneCommented:
That changes the overall WordPress default behavior of using "WordPress" as the sender name when nothing else is specified.  If a plugin is specifying a name, that should take precedence over the other code.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.