Announcement

Collapse
No announcement yet.

PHP's mail() function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Try using X-From: Your Name <[email protected]> as the header. I can't remember off hand if it works or not.
    Karl Austin
    UK Web Hosting and Servers :: KDA Web Services Ltd.
    Specialists in Custom Solutions

    Comment


    • #17
      Originally posted by bmurray
      I think when you are running PHP as an Apache mod it shows up as nobody due to the PHP being considered user "nobody" by the server while it is running.

      When running PHP as CGI, the user shows up correctly due to how it runs.

      This would account for some people having different results, depending on their particular server config. I can't help as far as a solution though...I have not yet studied or used any of PHP's mail functions.


      Ben


      Change nobody to somebody
      "The best time to sleep is just before waking up."

      --Shoebuddy Jones

      Comment


      • #18
        Not working for me either

        This isn't working for me either!!!!

        I shortened it to:

        mail("$sendto", "$subject", "$message");

        and it still doesn't work
        My board: http://forums.psx-dude.net
        Others: Find it Damn't!, Anime Site.

        Comment


        • #19
          This works for me:
          PHP Code:
          $to_address "My Friend <[email protected]>";
          $subject "Hello there";
          $from_address "From: My Name <[email protected]>";
          $message_body "bla bla bla bla bla bla bla bla bla bla.";

          mail($to_address,$subject,$message_body,$from_address); 

          Comment


          • #20
            Originally posted by Kier
            This works for me:
            PHP Code:
            $to_address "My Friend <[email protected]>";
            $subject "Hello there";
            $from_address "From: My Name <[email protected]>";
            $message_body "bla bla bla bla bla bla bla bla bla bla.";

            mail($to_address,$subject,$message_body,$from_address); 
            Yep - That works for me too.
            I tried it on a number of free services along with some of the Paid Servers.
            Last edited by Nicholas Brown; Tue 27th Feb '01, 10:51pm.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X