WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Job Manager] Admin E-mail formatting (6 posts)

  1. Steve
    Member
    Posted 4 years ago #

    This may be as per your design, but the formatting of the admin e-mail is incredibly difficult to read.

    The "From" field shows as:

    me@domain.co.ukPHP_EOLReply-To:me@domain.co.ukPHP_EOLReturn-Path:me@domain.co.ukPHP_EOLContent-type:text/plain

    And the body is displayed as:

    Application Link: http://www.domain.co.uk/wp-admin/admin.php?page=jobman-list-applications&appid=426PHP_EOLJob: 423 - Office AdministratorPHP_EOLhttp://www.domain.co.uk/?page_id=423PHP_EOLTimestamp: 2010-02-11 11:40:14PHP_EOLPHP_EOLName: MrPHP_EOLSurname: TestPHP_EOLEmail Address: me@domain.co.ukPHP_EOLTelephone: 123456789PHP_EOLMobile phone: 123456789PHP_EOL

    Any ideas? It doesn't matter what e-mail client I use, this is how they come out.

    Cheers

    http://wordpress.org/extend/plugins/job-manager/

  2. Gary Pendergast
    Member
    Posted 4 years ago #

    What version of PHP are you using?

    PHP_EOL is a PHP constant that is used to make the email format properly on all platforms. However, it was introduced in PHP 4.3.10 and 5.0.2, so if you have an earlier version of PHP, you will need to upgrade.

  3. Steve
    Member
    Posted 4 years ago #

    Hi thanks for the response.

    It seems I'm running PHP 4.3.9.

    I'll see if I can persuade the host to upgrade, they are a weird bunch so they might not, unless you can suggest any other reasons to upgrade? Any notable performance or security benefits?

    Failing that, is there a way round it?

  4. Gary Pendergast
    Member
    Posted 4 years ago #

    There have been many security fixes to PHP since version 4.3.9. See here for the changelog of the 4.x series:
    http://php.net/ChangeLog-4.php

    Please note that all updates for PHP 4 ceased at the end of 2007 - there have been no security fixes since then. I would recommend your host upgraded to the latest PHP 5.2 release, for the best balance of new version and stable, well tested release.

    To work around this problem, please try adding the following code to your wp-config.php file:

    if( ! defined( 'PHP_EOL' ) )
        define( PHP_EOL, "\r\n" );
  5. Steve
    Member
    Posted 4 years ago #

    Thanks again!

  6. Steve
    Member
    Posted 4 years ago #

    Work perfectly!

    Thanks for the workaround; my host are worse than useless!

Topic Closed

This topic has been closed to new replies.

About this Topic