+ Reply to Thread
Results 1 to 6 of 6

Thread: PHP mail() question

  1. #1
    Junior Member deadmike is on a distinguished road
    Join Date
    Dec 2011
    Posts
    6

    PHP mail() question

    is the PHP function "mail()" operational with host1free's servers? Just wanted to ask because I've dealt with hosts in the past which have limited this function, or (for example) limited it to only being functional with email addresses registered to my hosting account.

    Thanks

  2. #2
    Super Moderator Modestas is on a distinguished road Modestas's Avatar
    Join Date
    Jun 2011
    Posts
    1,859

    Re: PHP mail() question

    Hello,

    PHP mail() function is working in Host1Free servers.

  3. #3
    Junior Member deadmike is on a distinguished road
    Join Date
    Dec 2011
    Posts
    6

    Re: PHP mail() question

    Yes, but are there any limitations on how to use it? I'm trying to set the "From" header to be one of the specific email addresses on my account, but it keeps defaulting to a different email address.

  4. #4
    Super Moderator Modestas is on a distinguished road Modestas's Avatar
    Join Date
    Jun 2011
    Posts
    1,859

    Re: PHP mail() question

    I could check if you could provide your directadmin username and box number.

  5. #5
    Moderator seitenblicke is on a distinguished road seitenblicke's Avatar
    Join Date
    Dec 2011
    Location
    Mainz, Germany
    Posts
    53

    Re: PHP mail() question

    Quote Originally Posted by deadmike View Post
    Yes, but are there any limitations on how to use it? I'm trying to set the "From" header to be one of the specific email addresses on my account, but it keeps defaulting to a different email address.
    Hi,

    this is usually not a problem of the mail function itself but the script you're using. I've running a test installation of Wordpress with a contact form which is using phpmail and it works fine if i'm changing the mail adress in any way.

  6. #6
    Junior Member deadmike is on a distinguished road
    Join Date
    Dec 2011
    Posts
    6

    Re: PHP mail() question

    This is the code I'm trying to run:
    Code:
    <?php
    mail($email, $subject, $message, "From: <l***@z*******.com>");
    ?>
    
    However, the email consistently shows up as being from "m*****@z*******.com"

    EDIT: Okay, I did some testing and changing the email address works fine, but only when it's being sent to another computer. If I try to put in a phone's address (ie, 5555555555@vtext.com), it always defaults to the "m" email address. Why does that happen? I haven't had that problem with other hosts.
    Last edited by deadmike; 12-31-2011 at 09:02 PM.

+ Reply to Thread

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34