SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2008
    Location
    Cornwall, UK
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP on different hosts

    Hi, I'm trying out some code from the PHP Anthology. I find that it works fine on one of my hosting accounts, but not the other. I'm wondering whether anyone might be able to suggest why this might be the case?

    The code is from Chapter 7. Email and is as follows:
    Code:
    <?php
    mail('you@yourdomain.com', 'Howdy', 'Glad to meet you.',
        'From: me@mydomain.com');
    ?>
    (I've changed the two email addresses to my own...)

    The exact same code works perfectly on one hosting account, but not the other. It's a really simple script, so I'm wondering what's up.

    Many thanks for any help,
    Emily

  2. #2
    SitePoint Member
    Join Date
    May 2008
    Location
    Cornwall, UK
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, I seem to have got to the bottom of this. It's nothing to do with different hosting accounts behaving differently but because one of the test accounts had had it's mail server blocked because of mail being sent that looked like spam (presumably from my testing stuff).

    I've basically just wasted a whole day thinking that things I've been trying didn't work. Ho hum, back to the beginning...

    Cheers everyone
    Emily


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •