unable to send mail from local PC

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanket29
    New Member
    • Jul 2015
    • 1

    unable to send mail from local PC

    I want to send a mail through php code which contains the data entered by user by feeling the web form.
    My code is done...But i am not able to send the mail.
    It is giving error. The error is as follows.

    Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port

    I tried to change the port number from 25 to 80 for example in php.ini
    Also my sendmail_from = you@yourdomain
    Its not working. I am new to php.
    If someone have solution on this please reply ASAP.
  • Bharat383
    New Member
    • Aug 2011
    • 93

    #2
    you can use SMTP like PHPMailer to send mail from local or
    follow this url:
    I try to send an email from localhost to my yahoo email account using php mail() function, the return says I successfully send the email but I did not get any email. I've been reading and trying ma...

    Comment

    Working...