Non-local SMTP mail function.

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

    #1

    Non-local SMTP mail function.

    I am working on a webpage that is on a different server than the email
    server that the company wants me to use to send emails.

    Is it possible to change the PHP.ini file to use this non-local SMTP
    server, or is it not that simple?

  • flamer die.spam@hotmail.com

    #2
    Re: Non-local SMTP mail function.


    huntedsnark wrote:
    I am working on a webpage that is on a different server than the email
    server that the company wants me to use to send emails.
    >
    Is it possible to change the PHP.ini file to use this non-local SMTP
    server, or is it not that simple?
    It is that simple.

    Flamer.

    Comment

    • .:[ ikciu ]:.

      #3
      Re: Non-local SMTP mail function.

      Hmm huntedsnark <maharg@cinci.r r.comwrote:
      Is it possible to change the PHP.ini file to use this non-local SMTP
      server, or is it not that simple?
      Yes, it is. You have option in php.ini


      --
      ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
      Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

      2be || !2be $this =mysql_query();


      Comment

      • Mitul

        #4
        Re: Non-local SMTP mail function.



        On Oct 5, 2:08 am, "huntedsnar k" <mah...@cinci.r r.comwrote:
        I am working on a webpage that is on a different server than the email
        server that the company wants me to use to send emails.
        >
        Is it possible to change the PHP.ini file to use this non-local SMTP
        server, or is it not that simple?
        You can also do that by PHP script no need to do that in PHP.ini
        file...

        Here is the fuction.... ini_set("SMTP", "http://www.example.com ");

        Regards,
        Mitul Patel

        Comment

        • .:[ ikciu ]:.

          #5
          Re: Non-local SMTP mail function.

          Hmm Mitul <patel.mitul.m@ gmail.comwrote:
          You can also do that by PHP script no need to do that in PHP.ini
          Here is the fuction.... ini_set("SMTP",http://www.example.com);
          ofc you right, but i've told him only where he should to check


          --
          ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
          Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

          2be || !2be $this =mysql_query();


          Comment

          • Mitul

            #6
            Re: Non-local SMTP mail function.


            ..:[ ikciu ]:. wrote:
            Hmm Mitul <patel.mitul.m@ gmail.comwrote:
            You can also do that by PHP script no need to do that in PHP.ini
            Here is the fuction.... ini_set("SMTP",http://www.example.com);
            >
            ofc you right, but i've told him only where he should to check
            >
            ===
            Ya I know that but I am just inform that it is be possible by script
            also :). You are also right. ;)

            Comment

            • .:[ ikciu ]:.

              #7
              Re: Non-local SMTP mail function.

              Hmm Mitul <patel.mitul.m@ gmail.comwrote:
              Ya I know that but I am just inform that it is be possible by script
              also :)
              if he has site non localhost (provider) then usualy (only if he is the
              owner) he won't access to php.ini file so the only solution is ini_set :) i
              didn't want to give him full soulution - i wanted to show him the path and
              he should to find the way to do it
              --
              ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
              Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

              2be || !2be $this =mysql_query();


              Comment

              • NC

                #8
                Re: Non-local SMTP mail function.

                huntedsnark wrote:
                >
                I am working on a webpage that is on a different server
                than the email server that the company wants me to use
                to send emails.
                >
                Is it possible to change the PHP.ini file to use this non-
                local SMTP server, or is it not that simple?
                This is possible only if you are running PHP on Windows:



                On Unix, PHP does not normally use SMTP; it communicates
                with a mail transfer agent (MTA) directly; dealing with SMTP is
                left to the MTA.

                This said, you can still have a PHP script send e-mail via
                SMTP (local or otherwise), if you use phpMailer:



                Cheers,
                NC

                Comment

                Working...