do I need to configure php.ini file to send mail

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mukeshrasm
    Contributor
    • Nov 2007
    • 254

    do I need to configure php.ini file to send mail

    hi
    i want to send mail using php. i am using wamp server for windows. do i need to configure php.ini file to send mail.

    please !
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    Yes you should configure your SMTP settings on the php.ini file. Please do a search in this forum with "php.ini smtp" or google for it. If failed to find out any answer, we are here to help.

    Thanks

    Comment

    • zabsmarty
      New Member
      • Feb 2007
      • 25

      #3
      first of all on local host on windows system the mail function is'nt be run or execute. You will be make configuration for SMPT mail from php.ini file.

      Comment

      • mukeshrasm
        Contributor
        • Nov 2007
        • 254

        #4
        Originally posted by ak1dnar
        Yes you should configure your SMTP settings on the php.ini file. Please do a search in this forum with "php.ini smtp" or google for it. If failed to find out any answer, we are here to help.

        Thanks
        Thanks
        I changed my settings in php.ini, but when I am sending mail from local machine to my yahoomail. though system is connected with internet. so do i need to upload this page.

        Comment

        • maheswaran
          New Member
          • Mar 2007
          • 190

          #5
          Hi there is no need to upload ur php.ini file.but check once again y did correct one

          Comment

          • ak1dnar
            Recognized Expert Top Contributor
            • Jan 2007
            • 1584

            #6
            Originally posted by mukeshrasm
            Thanks
            I changed my settings in php.ini, but when I am sending mail from local machine to my yahoomail. though system is connected with internet. so do i need to upload this page.
            You can send emails from your localhost. if you know exactly about the mail settings, check the spam inbox of your mail application. may be your email has marked as spam.

            Code:
            SMTP = yoursmtpserver.com
            smtp_port = 25

            Comment

            • mukeshrasm
              Contributor
              • Nov 2007
              • 254

              #7
              Originally posted by ak1dnar
              You can send emails from your localhost. if you know exactly about the mail settings, check the spam inbox of your mail application. may be your email has marked as spam.

              Code:
              SMTP = yoursmtpserver.com
              smtp_port = 25
              Hi
              Actually I am not receiving the mail either in inbox or in spam so do i need to upload my webpage i have checked all the settings as well. it is allright.

              thanks!

              Comment

              • ak1dnar
                Recognized Expert Top Contributor
                • Jan 2007
                • 1584

                #8
                Originally posted by mukeshrasm
                Hi
                Actually I am not receiving the mail either in inbox or in spam so do i need to upload my webpage i have checked all the settings as well. it is allright.

                thanks!
                In a production server environment php mail function will work for sure. so you can go ahead and check your script on hosting server.


                and in your local machine, you have to use a real SMTP server, a better way of finding this is, if you have any mail client (outlook, thunderbird) installed in your local pc, make sure to use the same smtp server in your php.ini too.

                Can we have a look on your settings. ?

                Comment

                Working...