-
The Previous Posting
« How I Made Our Background Image.… -
The Next Posting
WordPress, Fatal error: Allowed memory size of 33554432 bytes exhausted »
My WordPress Blog is Sending Mail With My Webhosts Address
Here’s our solution. Be sure your working with the most up to date file. Local copies can become outdated with online updates. Edit the following file: wordpress-root-directory/wp-includes/class-phpmailer.php
On line 75 (valid on WordPress 2.7.1 — 2.8.7) and edit, “root@localhost.com” to the address you’de like to appear in administrative emails, ie. user@yourdomain.com. You’ll also want to change your FromName, on line 81, and your email address on line 88. Simply fill the empty quotes.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
/** * Sets the From email address for the message. * @var string */ var $From = 'root@localhost'; /** * Sets the From name of the message. * @var string */ var $FromName = 'Root User'; /** * Sets the Sender email (Return-Path) of the message. If not empty, * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode. * @var string */ var $Sender = '';
And that’s it. Your sever will now send administrative Emails from your chosen name, and address. Let us know if this was helpful.
great help, thanks very much. I went on to MySQL to change the details there, its risky i know, but i was frustrated as the email notification was not working at all.
btw, do you know how can I change the email template (I dont want to send IPs, Whois info etc)
thanks again.
Great article Thank
you so much!