Does WordPress' default email address need to be modified?
After WordPress is installed, a system email address and a sender will be automatically created by default. The email address is WordPress@yourblogname.com, and the sender is WordPress. Although we have set the system email address to another name in the background, the email address seen by email recipients of our blog is still WordPress@yourblogname.com, and the sender name is still WordPress, which really makes the recipients feel confused. , because no one knows whether the sender in WordPress is Zhang San or Li Si, a man or a woman. And a very important point is that emails sent from email addresses such as WordPress@yourblogname.com are very easy to be intercepted as spam or directly thrown into the trash.
In order to make your WordPress blog look more professional, it is strongly recommended to change the system default email address and its sender name. Although we cannot directly modify it in the background, we can achieve this goal through other methods. Here are a few methods for your reference.
1. Create related functions
Use a suitable text editor (do not use Windows system Notepad) to open the functions.php file in the current theme folder, and then add the following code (add Before the last ?> tag):
function new_mail_from($old) { return 'admin@yourblogname.com'; } function new_mail_from_name($old) { return 'Blog Name'; } add_filter('wp_mail_from', 'new_mail_from'); add_filter('wp_mail_from_name', 'new_mail_from_name');
2. Modify the WordPress system file
Find the class_phpmailer.php file in the folder wp-includes under the WordPress installation root directory and open it And find the following code:
public $From = 'root@localhost'; public $FromName = 'Root User';
Change 'root@localhost' (excluding single quotes) to your favorite email address, and change 'Root User' (excluding single quotes) Enter your desired sender name.
Tips: This method involves changes to the core files of the system. The modified files will be overwritten in the system upgrade background, and the modified results will also become invalid and need to be modified again, which is more troublesome. Therefore, it is recommended to use plug-ins. OK (next step).
3. Use plug-ins
There are many plug-ins that can set the default sending email address of the WordPress system. Here are only two plug-ins. You can directly access the WordPress plug-in library through the link to view the usage introduction, here I only provide screenshots of their settings pages.
For more wordpress related technical articles, please visit the wordpress tutorial column to learn!
The above is the detailed content of Does WordPress' default email address need to be modified?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics





WordPress is easy for beginners to get started. 1. After logging into the background, the user interface is intuitive and the simple dashboard provides all the necessary function links. 2. Basic operations include creating and editing content. The WYSIWYG editor simplifies content creation. 3. Beginners can expand website functions through plug-ins and themes, and the learning curve exists but can be mastered through practice.

Blogs are the ideal platform for people to express their opinions, opinions and opinions online. Many newbies are eager to build their own website but are hesitant to worry about technical barriers or cost issues. However, as the platform continues to evolve to meet the capabilities and needs of beginners, it is now starting to become easier than ever. This article will guide you step by step how to build a WordPress blog, from theme selection to using plugins to improve security and performance, helping you create your own website easily. Choose a blog topic and direction Before purchasing a domain name or registering a host, it is best to identify the topics you plan to cover. Personal websites can revolve around travel, cooking, product reviews, music or any hobby that sparks your interests. Focusing on areas you are truly interested in can encourage continuous writing

Can learn WordPress within three days. 1. Master basic knowledge, such as themes, plug-ins, etc. 2. Understand the core functions, including installation and working principles. 3. Learn basic and advanced usage through examples. 4. Understand debugging techniques and performance optimization suggestions.

WordPressisgoodforvirtuallyanywebprojectduetoitsversatilityasaCMS.Itexcelsin:1)user-friendliness,allowingeasywebsitesetup;2)flexibilityandcustomizationwithnumerousthemesandplugins;3)SEOoptimization;and4)strongcommunitysupport,thoughusersmustmanageper

Wix is suitable for users who have no programming experience, and WordPress is suitable for users who want more control and expansion capabilities. 1) Wix provides drag-and-drop editors and rich templates, making it easy to quickly build a website. 2) As an open source CMS, WordPress has a huge community and plug-in ecosystem, supporting in-depth customization and expansion.

WordPress itself is free, but it costs extra to use: 1. WordPress.com offers a package ranging from free to paid, with prices ranging from a few dollars per month to dozens of dollars; 2. WordPress.org requires purchasing a domain name (10-20 US dollars per year) and hosting services (5-50 US dollars per month); 3. Most plug-ins and themes are free, and the paid price ranges from tens to hundreds of dollars; by choosing the right hosting service, using plug-ins and themes reasonably, and regularly maintaining and optimizing, the cost of WordPress can be effectively controlled and optimized.

The core version of WordPress is free, but other fees may be incurred during use. 1. Domain names and hosting services require payment. 2. Advanced themes and plug-ins may be charged. 3. Professional services and advanced features may be charged.

People choose to use WordPress because of its power and flexibility. 1) WordPress is an open source CMS with strong ease of use and scalability, suitable for various website needs. 2) It has rich themes and plugins, a huge ecosystem and strong community support. 3) The working principle of WordPress is based on themes, plug-ins and core functions, and uses PHP and MySQL to process data, and supports performance optimization.
