WordPress Email & CrystalTech

After setting up by WordPress blog with my new host CrystalTech, I had some initial trouble getting the blog email to work properly. I did an extensive search for a solution but could not find a good solution that worked. I tried a few different solutions from the fragments of information I found searching the net and the CrystalTech public forums. Here is the solution I arrived at, be warned, I am not a PHP expert and there may be a more elegant solution.

In the root level of your WordPress blog (if its not the root of your site), open up the wp-config.php file and just above the phrase

/* That’s all, stop editing! Happy blogging. */

Add the following code:

/* Specify your SMTP Server, Port and Valid From Address */
ini_set("SMTP","mail.yourdomain.com");
ini_set("smtp_port","25");
ini_set("sendmail_from","fromYou@yourdomain.com"");

Replace with your official CrystalTech domain and your real email of course. This fix allows me to receive email when users post a comment or use the contact form.

The original PHP code comes from Joshua Donzello, Dedicated Support Team. View the forum discussion here. CrystalTech has a great support team and I have been very satisfied with their service and pricing.

About Michael Ritchie (Mr)
Independent Mobile Application Developer and Adobe Flex Consultant specializing in Android SDK, Adobe Flex, Adobe Flash, and Adobe AIR Runtime for mobile and desktop applications.

3 Responses to WordPress Email & CrystalTech

  1. Thanx a lot! This is very useful.

  2. Brad Benner says:

    I’ve hosted with CrystalTech for a number of years and have had to navigate the security restrictions they play on their outbound SMTP servers.

    Take a look at the steps I put together — they may be a bit easier to implement and don’t require any code changes to WordPress itself.

    http://www.xbarit.com/bradblog/index.php/2007/10/28/wordpress-smtp-configuration-for-crystaltech-shared-windows-hosting/

  3. Jessica Kennedy says:

    o.m.g. thank you so much. this has been driving me crazy for a long time

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.