Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Xmail – The Right Way


All webmasters experience the problem of their emails landing in their users spam folders, including our own!
So we decided to develop a simple solution to fix this wide-spread annoyance.
After a long development period, we have produced an effective method of sending emails which complies
in full with all guidelines and security requirements of email providers such as Google, Yahoo & MSN.


  • Your emails will no longer be marked as SPAM.
  • If your emails do not even arrive to Yahoo! or MSN with Xmail they will.
  • This is the way Google, Yahoo! and MSN best like emails to come to them.


  • Behind the mailing system.


  1. Upload xmail-the-right-way folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Read the Xmail page in Settings menu in wp-admin

    You should also contact your hosting provider and ask him to activate Domain Keys and SPF for your domain.


  • So what ix Xmail?

Xmail is a PHP class that can send an email in 3 diffrent ways:
1. via the old fashion PHP standard function called mail()
2. via a SMTP account (one of the most popular alternatives)
3. direct connection to the receiver MX server (the optimal way)

  • Why is this the best way?

Each server that hosts websites has multiple IP’s.
In 99% of cases, the (email) main server IP is different from the IP used for the domain itself, so your domain has one IP and the emails you send go out from another (main server IP). You will probably share an email server with many other users, and if these users are unscrupulous and send out SPAM, you will suffer as well because the main server IP you use will lose credibility and become untrusted by the email providers named above. This will result in your emails never reaching your users’ inboxes.
However, some website servers have an option to send out emails from the main IP, but only SMTP allows for this. STMP is an email setup enabled by the Xmail plugin.
Should that option be incompatible, the only thing left is to use the MX method which does not rely on any other service in the server. It’s pure PHP and will always use your site’s IP. This MX method is also enabled by the Xmail plugin.
Note: You should also contact your hosting provider and ask him to activate Domain Keys and SPF for your domain.


Par šo spraudni nav atsauksmju.

Autori un izstrādātāji

“Xmail – The Right Way” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.


Tulkot “Xmail – The Right Way&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls


  • Initial release


  • Tested and set to work starting WP 3.0 UP


  • Added SIZE transmision
  • Added redundancy to mail() if socket fails


  • Removed SIZE transmision cause most servers do not support it


  • Tested and working on WP 3.3.1


  • Fixed headers received as array
  • Standardized line endings
  • Minor fixez