Having problem senidng E-mail using PHP and apache

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Karuna

    Having problem senidng E-mail using PHP and apache

    Hi everybody,
    I have been trying to write a simple mail script using PHP and apache
    on Windows XP. Eventhough the script is saying that the mail is
    successfully sent, I am unable get it in my mailbox(I have given my
    mail address in $to). I am using the mail() function and I have made
    the following changes in php.ini

    [mail function]
    ; For Win32 only.
    SMTP = localhost

    smtp_port = 25

    ; For Win32 only.
    sendmail_from = aaa@Comcast.net

    Can anybosy help me with this?

  • Andy Barfield

    #2
    Re: Having problem senidng E-mail using PHP and apache

    Karuna wrote:[color=blue]
    > Hi everybody,
    > I have been trying to write a simple mail script using PHP and apache
    > on Windows XP. Eventhough the script is saying that the mail is
    > successfully sent, I am unable get it in my mailbox(I have given my
    > mail address in $to). I am using the mail() function and I have made
    > the following changes in php.ini[/color]
    Interesting that you are not getting an error - try setting error
    reporting to E_ALL at the head of your script and remove the @ at the
    begining of the mail call if there is one.
    [color=blue]
    > [mail function]
    > ; For Win32 only.
    > SMTP = localhost[/color]
    ^^-- This needs to be set to the
    SMTP server of your ISP.

    Don't forget to restart the webserver after you have changed the php.ini
    file

    regards,

    Andy

    Comment

    Working...