I am using windows xp.

I have a doman name registered through 1and1.com.

my email address is jeff@appSigPro.com.

What do i need to do in order to be able to use the mail() function?

Can i use the mail() function with this email address, is it possible to use it with a yahoo account?

What kind of mail server is needed?

Where do i go from there?

    just use mail()

    nothing special needed, 1and1 does not require you to authenticate from a webpage

    you may want to make sure all your header information is set, but other than that, nothing special

      i downloaded the smtp server: postCast server

      i opened up port 25 on my firewall.

      made my php.ini file look like the following:

      [mail function]
      ; For Win32 only.
      SMTP = localhost ; for Win32 only
      smtp_port = 25
      sendmail_from= jeff@appSigPro.com ; for Win32 only

      and created the following PHP file:

       
      <?php
      mail('lives4him06@yahoo.com','hello','hey jeff','hey');
      ?>
      

      yet i still get the following message:

      Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\documents and settings\jeffrey\my documents\thejlp\profiles\mail.php on line 2

      whats going wrong?

        i have never gotten smtp mail to work from a webpage on my personal server

        but you stated you use 1and1

        i know they dont block it, try uploading and testing from there (i use 1and1)

          5 days later

          what is needed to us the mail() function in php for windows XP?

            4 days later

            You need to specify the smtp server to use and the smtp from name using either a function call or in the php.ini

              Write a Reply...