CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2011
    Posts
    2

    Question An error in using E-mail function in php

    Respected Sir,

    As you know that i am studying php . But while studying i have done a php e-mail program . Doing that program i get the output and shows the

    output as 'Mail sent'. But a warning was showing like this..Warning: mail() [function.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 G:\Xammp\xampp\htdocs\suraj\e_mail.php on line 12 ..

    i have try my best to bug this warning but i was failed . I also check on the internet .. they shows some solutions ... i try to do it...





    So i request U to help me

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: An error in using E-mail function in php

    PHP's mail() method does not handle errors from the SMTP service because they are separate. You need to properly edit your php.ini configuration file to point to your SMTP server.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Feb 2011
    Posts
    2

    Angry Re: An error in using E-mail function in php

    how to configure php.ini configuration? I'm using Xampp for doing Php....

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: An error in using E-mail function in php

    Open php.ini and edit the SMTP section.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured