sending mail from localhost to yahoo, gmail, hotmail, etc

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

    #1

    sending mail from localhost to yahoo, gmail, hotmail, etc

    Hi I am creating a newsletter system. The software should run from
    desktop computer (localhost) but be able to send email to anyone on
    the internet. Can you guys give me some ideas on how to achieve this.

    Thanks
  • Sandy

    #2
    Re: sending mail from localhost to yahoo, gmail, hotmail, etc

    On Apr 8, 7:12 pm, undbund <undb...@gmail. comwrote:
    Hi I am creating a newsletter system. The software should run from
    desktop computer (localhost) but be able to send email to anyone on
    the internet. Can you guys give me some ideas on how to achieve this.
    Usual and easiest way is to have two components: some kind of a mailer
    (like sendmail) and your program submitting messages to it. So you
    have sendmail installed and:

    SMTP localhost
    smtp_port 25

    in your php.ini

    in your program you call mail($email, $subject, $message) and sendmail
    will take care of the rest

    /sandy

    Comment

    • undbund

      #3
      Re: sending mail from localhost to yahoo, gmail, hotmail, etc

      On Apr 12, 1:26 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
      undbund wrote:
      On Apr 10, 4:37 am, "Twayne" <nob...@devnull .spamcop.netwro te:
      >On Apr 9, 2:51 pm, Michael Austin <maus...@firstd basource.comwro te:
      >>Sandy wrote:
      >>>On Apr 8, 7:12 pm,undbund<undb ...@gmail.comwr ote:
      >>>>Hi I am creating a newsletter system. The software should run from
      >>>>desktop computer (localhost) but be able to send email to anyone on
      >>>>the internet. Can you guys give me some ideas on how to achieve
      >>>>this.
      >>>Usual and easiest way is to have two components: some kind of a
      >>>mailer (like sendmail) and your program submitting messages to it.
      >>>So you have sendmail installed and:
      >>>SMTP localhost
      >>>smtp_port 25
      >>>in your php.ini
      >>>in your program you call mail($email, $subject, $message) and
      >>>sendmail will take care of the rest
      >>>/sandy
      >>>>http://myphpquiz.com/
      >>Be aware that if you do not have ReverseDNS to the IP address of your
      >>mail server or you are using DynamicDNS from dsl, cablemodem or
      >>dialup it will more than likely be rejected. And if you use your ISP
      >>mail servers, if you send too many in an hour, my get flagged as a
      >>spammer and they will shut you down. Some ISP's have gone so far as
      >>to not allow port 25 outbound from these "dialup" ip addresses. AT&T
      >>recently instituted such practices - sounds like a lawsuit to me.
      >>If you use your "gmail" or your own domain in your FROM/REPLY TO:
      >>addresses, you must register as valid address coming from your ISP
      >>username/pwd also requiring SSL encryption of all mail. You will
      >>most likely need to locate php/sasl to use from your server.
      >>A good mailer is phpmailer will do most of this, but you will need to
      >>add the ssl stuff..
      >Thanks guys for all your feedback. I am told the software will have to
      >run on Windows machine. I have been researching on the internet and
      >found out about XAMPP. It comes with Apache, PHP, MySQL and and
      >Mercury mail server. I am not able to get it working to send mail from
      >localhost to internet. I will try your methods to get it working. If
      >you guys have managed to make it work with XAMPP. Can you please give
      >me some directions.
      >Thanks for all your help.
      I'm a newbie, but have xampp's apache/php/sql all in one installed;
      works great, only using locally. I am sending e-mail to multiple
      recipients using its standard mail() function and it works fine.
      Responses to form submissions go back to the questioner and three other
      interested parties; it all worked first time every time when I uploaded
      the code to the site. Locally I purposely let it fail when it can't
      find port25 'cause the rest is known to work locally and works 100% when
      it gets to the site.
      Not sure what directions to give; it just works. I'm too newbie to
      know what kind of answers others might need.
      I will say it's better to manually install xampp; same results, but you
      get to figure out a lot of the nuances by doing the install on your own.
      So, after I'd used the all in one enough to know a little about it, I
      wiped it out and did a manual install. Had some problems but it was
      worth the trouble.
      >
      --
      Regards,
      >
      Twayne
      >
      Open Office isn't just for wimps anymore;
      OOo is a GREAT MS Office replacementwww. openoffice.org
      >
      Hi Guys, I have managed to make the Mercury mail server send mail from
      local host to my yahoo mail using Google SMTP.
      But I do not know how to put the settings in php.ini.
      >
      For sending mail via Google SMTP you will need port 465 and SSL
      connection using direct connection.
      How would I put this information in php.ini
      >
      Thanks
      >
      mail() itself doesn't do ssl. Check out the Pear::Mail class, which
      should help (and make things easier).
      >
      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstuck...@attgl obal.net
      =============== ===
      Hi, Thanks guys for your help, I have used PHPmailer to send
      newsletters from localhost. However the images don't show up. So I
      would like to convert the html file to PDF. Do you guys know of a
      really good php script that can do this?

      By the way, how do you make this code work?

      <?php

      try {
      $p = new PDFlib();

      /* open new PDF file; insert a file name to create the PDF on disk
      */
      if ($p->begin_document ("", "") == 0) {
      die("Error: " . $p->get_errmsg() );
      }

      $p->set_info("Crea tor", "hello.php" );
      $p->set_info("Auth or", "Rainer Schaaf");
      $p->set_info("Titl e", "Hello world (PHP)!");

      $p->begin_page_ext (595, 842, "");

      $font = $p->load_font("Hel vetica-Bold", "winansi", "");

      $p->setfont($fon t, 24.0);
      $p->set_text_pos(5 0, 700);
      $p->show("Hello world!");
      $p->continue_text( "(says PHP)");
      $p->end_page_ext(" ");

      $p->end_document(" ");

      $buf = $p->get_buffer() ;
      $len = strlen($buf);

      header("Content-type: application/pdf");
      header("Content-Length: $len");
      header("Content-Disposition: inline; filename=hello. pdf");
      print $buf;
      }
      catch (PDFlibExceptio n $e) {
      die("PDFlib exception occurred in hello sample:\n" .
      "[" . $e->get_errnum() . "] " . $e->get_apiname( ) . ": " .
      $e->get_errmsg() . "\n");
      }
      catch (Exception $e) {
      die($e);
      }
      $p = 0;
      ?>

      I get the following error:

      Connection Interrupted, The network link was interrupted while
      negotiating a connection. Please try again.

      Comment

      • Jerry Stuckle

        #4
        Re: sending mail from localhost to yahoo, gmail, hotmail, etc

        undbund wrote:
        On Apr 12, 1:26 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
        >undbund wrote:
        >>On Apr 10, 4:37 am, "Twayne" <nob...@devnull .spamcop.netwro te:
        >>>>On Apr 9, 2:51 pm, Michael Austin <maus...@firstd basource.comwro te:
        >>>>>Sandy wrote:
        >>>>>>On Apr 8, 7:12 pm,undbund<undb ...@gmail.comwr ote:
        >>>>>>>Hi I am creating a newsletter system. The software should run from
        >>>>>>>deskto p computer (localhost) but be able to send email to anyone on
        >>>>>>>the internet. Can you guys give me some ideas on how to achieve
        >>>>>>>this.
        >>>>>>Usual and easiest way is to have two components: some kind of a
        >>>>>>mailer (like sendmail) and your program submitting messages to it.
        >>>>>>So you have sendmail installed and:
        >>>>>>SMTP localhost
        >>>>>>smtp_po rt 25
        >>>>>>in your php.ini
        >>>>>>in your program you call mail($email, $subject, $message) and
        >>>>>>sendmai l will take care of the rest
        >>>>>>/sandy
        >>>>>>http://myphpquiz.com/
        >>>>>Be aware that if you do not have ReverseDNS to the IP address of your
        >>>>>mail server or you are using DynamicDNS from dsl, cablemodem or
        >>>>>dialup it will more than likely be rejected. And if you use your ISP
        >>>>>mail servers, if you send too many in an hour, my get flagged as a
        >>>>>spammer and they will shut you down. Some ISP's have gone so far as
        >>>>>to not allow port 25 outbound from these "dialup" ip addresses. AT&T
        >>>>>recently instituted such practices - sounds like a lawsuit to me.
        >>>>>If you use your "gmail" or your own domain in your FROM/REPLY TO:
        >>>>>addresse s, you must register as valid address coming from your ISP
        >>>>>username/pwd also requiring SSL encryption of all mail. You will
        >>>>>most likely need to locate php/sasl to use from your server.
        >>>>>A good mailer is phpmailer will do most of this, but you will need to
        >>>>>add the ssl stuff..
        >>>>Thanks guys for all your feedback. I am told the software will have to
        >>>>run on Windows machine. I have been researching on the internet and
        >>>>found out about XAMPP. It comes with Apache, PHP, MySQL and and
        >>>>Mercury mail server. I am not able to get it working to send mail from
        >>>>localhost to internet. I will try your methods to get it working. If
        >>>>you guys have managed to make it work with XAMPP. Can you please give
        >>>>me some directions.
        >>>>Thanks for all your help.
        >>>I'm a newbie, but have xampp's apache/php/sql all in one installed;
        >>>works great, only using locally. I am sending e-mail to multiple
        >>>recipients using its standard mail() function and it works fine.
        >>>Responses to form submissions go back to the questioner and three other
        >>>interested parties; it all worked first time every time when I uploaded
        >>>the code to the site. Locally I purposely let it fail when it can't
        >>>find port25 'cause the rest is known to work locally and works 100% when
        >>>it gets to the site.
        >>> Not sure what directions to give; it just works. I'm too newbie to
        >>>know what kind of answers others might need.
        >>>I will say it's better to manually install xampp; same results, but you
        >>>get to figure out a lot of the nuances by doing the install on your own.
        >>>So, after I'd used the all in one enough to know a little about it, I
        >>>wiped it out and did a manual install. Had some problems but it was
        >>>worth the trouble.
        >>>--
        >>>Regards,
        >>>Twayne
        >>>Open Office isn't just for wimps anymore;
        >>>OOo is a GREAT MS Office replacementwww. openoffice.org
        >>Hi Guys, I have managed to make the Mercury mail server send mail from
        >>local host to my yahoo mail using Google SMTP.
        >>But I do not know how to put the settings in php.ini.
        >>For sending mail via Google SMTP you will need port 465 and SSL
        >>connection using direct connection.
        >>How would I put this information in php.ini
        >>Thanks
        >mail() itself doesn't do ssl. Check out the Pear::Mail class, which
        >should help (and make things easier).
        >>
        >--
        >============== ====
        >Remove the "x" from my email address
        >Jerry Stuckle
        >JDS Computer Training Corp.
        >jstuck...@attg lobal.net
        >============== ====
        >
        Hi, Thanks guys for your help, I have used PHPmailer to send
        newsletters from localhost. However the images don't show up. So I
        would like to convert the html file to PDF. Do you guys know of a
        really good php script that can do this?
        >
        Rather than create a PDF (which will be larger and won't display inline
        on the user's mail reader), I'd suggest you figure out the problem with
        them not showing up and fix that.

        Not having your code to generate the html, we have no idea how to help you.
        By the way, how do you make this code work?
        >
        <snip lots of code>
        >
        Connection Interrupted, The network link was interrupted while
        negotiating a connection. Please try again.
        >
        Nothing in your code that I can see should cause that problem. Network
        timeout, maybe?

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        • undbund

          #5
          Re: sending mail from localhost to yahoo, gmail, hotmail, etc

          On Apr 14, 1:21 am, Jerry Stuckle <jstuck...@attg lobal.netwrote:
          undbund wrote:
          On Apr 12, 1:26 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
          undbund wrote:
          >On Apr 10, 4:37 am, "Twayne" <nob...@devnull .spamcop.netwro te:
          >>>On Apr 9, 2:51 pm, Michael Austin <maus...@firstd basource.comwro te:
          >>>>Sandy wrote:
          >>>>>On Apr 8, 7:12 pm,undbund<undb ...@gmail.comwr ote:
          >>>>>>Hi I am creating a newsletter system. The software should run from
          >>>>>>desktop computer (localhost) but be able to send email to anyone on
          >>>>>>the internet. Can you guys give me some ideas on how to achieve
          >>>>>>this.
          >>>>>Usual and easiest way is to have two components: some kind of a
          >>>>>mailer (like sendmail) and your program submitting messages to it.
          >>>>>So you have sendmail installed and:
          >>>>>SMTP localhost
          >>>>>smtp_por t 25
          >>>>>in your php.ini
          >>>>>in your program you call mail($email, $subject, $message) and
          >>>>>sendmail will take care of the rest
          >>>>>/sandy
          >>>>>>http://myphpquiz.com/
          >>>>Be aware that if you do not have ReverseDNS to the IP address of your
          >>>>mail server or you are using DynamicDNS from dsl, cablemodem or
          >>>>dialup it will more than likely be rejected. And if you use your ISP
          >>>>mail servers, if you send too many in an hour, my get flagged as a
          >>>>spammer and they will shut you down. Some ISP's have gone so far as
          >>>>to not allow port 25 outbound from these "dialup" ip addresses. AT&T
          >>>>recently instituted such practices - sounds like a lawsuit to me.
          >>>>If you use your "gmail" or your own domain in your FROM/REPLY TO:
          >>>>addresses , you must register as valid address coming from your ISP
          >>>>username/pwd also requiring SSL encryption of all mail. You will
          >>>>most likely need to locate php/sasl to use from your server.
          >>>>A good mailer is phpmailer will do most of this, but you will need to
          >>>>add the ssl stuff..
          >>>Thanks guys for all your feedback. I am told the software will have to
          >>>run on Windows machine. I have been researching on the internet and
          >>>found out about XAMPP. It comes with Apache, PHP, MySQL and and
          >>>Mercury mail server. I am not able to get it working to send mail from
          >>>localhost to internet. I will try your methods to get it working. If
          >>>you guys have managed to make it work with XAMPP. Can you please give
          >>>me some directions.
          >>>Thanks for all your help.
          >>I'm a newbie, but have xampp's apache/php/sql all in one installed;
          >>works great, only using locally. I am sending e-mail to multiple
          >>recipients using its standard mail() function and it works fine.
          >>Responses to form submissions go back to the questioner and three other
          >>interested parties; it all worked first time every time when I uploaded
          >>the code to the site. Locally I purposely let it fail when it can't
          >>find port25 'cause the rest is known to work locally and works 100% when
          >>it gets to the site.
          >> Not sure what directions to give; it just works. I'm too newbie to
          >>know what kind of answers others might need.
          >>I will say it's better to manually install xampp; same results, but you
          >>get to figure out a lot of the nuances by doing the install on your own.
          >>So, after I'd used the all in one enough to know a little about it, I
          >>wiped it out and did a manual install. Had some problems but it was
          >>worth the trouble.
          >>--
          >>Regards,
          >>Twayne
          >>Open Office isn't just for wimps anymore;
          >>OOo is a GREAT MS Office replacementwww. openoffice.org
          >Hi Guys, I have managed to make the Mercury mail server send mail from
          >local host to my yahoo mail using Google SMTP.
          >But I do not know how to put the settings in php.ini.
          >For sending mail via Google SMTP you will need port 465 and SSL
          >connection using direct connection.
          >How would I put this information in php.ini
          >Thanks
          mail() itself doesn't do ssl. Check out the Pear::Mail class, which
          should help (and make things easier).
          >
          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstuck...@attgl obal.net
          =============== ===
          >
          Hi, Thanks guys for your help, I have used PHPmailer to send
          newsletters from localhost. However the images don't show up. So I
          would like to convert the html file to PDF. Do you guys know of a
          really good php script that can do this?
          >
          Rather than create a PDF (which will be larger and won't display inline
          on the user's mail reader), I'd suggest you figure out the problem with
          them not showing up and fix that.
          >
          Not having your code to generate the html, we have no idea how to help you.
          >
          >
          >
          By the way, how do you make this code work?
          >
          <snip lots of code>
          >
          Connection Interrupted, The network link was interrupted while
          negotiating a connection. Please try again.
          >
          Nothing in your code that I can see should cause that problem. Network
          timeout, maybe?
          >
          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstuck...@attgl obal.net
          =============== ===
          Well to fix the problem, I would have to ftp images to an online
          server and code the html page to pull images from that online server.
          I don't want to do this. I am creating an offline package that should
          do everything from an offline server. Since there will only be a
          localhost and not an actual domain, i won't be able to link the images
          to the offline server. So the best idea would be able to attach a pdf
          of the newsletter and send it.

          So any good PHP free, open source scripts that can covert html to pdf?

          Thanks for all your help.

          Comment

          • Jerry Stuckle

            #6
            Re: sending mail from localhost to yahoo, gmail, hotmail, etc

            undbund wrote:
            On Apr 14, 1:21 am, Jerry Stuckle <jstuck...@attg lobal.netwrote:
            >undbund wrote:
            >>On Apr 12, 1:26 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
            >>>undbund wrote:
            >>>>On Apr 10, 4:37 am, "Twayne" <nob...@devnull .spamcop.netwro te:
            >>>>>>On Apr 9, 2:51 pm, Michael Austin <maus...@firstd basource.comwro te:
            >>>>>>>Sandy wrote:
            >>>>>>>>On Apr 8, 7:12 pm,undbund<undb ...@gmail.comwr ote:
            >>>>>>>>>Hi I am creating a newsletter system. The software should run from
            >>>>>>>>>deskto p computer (localhost) but be able to send email to anyone on
            >>>>>>>>>the internet. Can you guys give me some ideas on how to achieve
            >>>>>>>>>this .
            >>>>>>>>Usual and easiest way is to have two components: some kind of a
            >>>>>>>>maile r (like sendmail) and your program submitting messages to it.
            >>>>>>>>So you have sendmail installed and:
            >>>>>>>>SMTP localhost
            >>>>>>>>smtp_po rt 25
            >>>>>>>>in your php.ini
            >>>>>>>>in your program you call mail($email, $subject, $message) and
            >>>>>>>>sendmai l will take care of the rest
            >>>>>>>>/sandy
            >>>>>>>>http://myphpquiz.com/
            >>>>>>>Be aware that if you do not have ReverseDNS to the IP address of your
            >>>>>>>mail server or you are using DynamicDNS from dsl, cablemodem or
            >>>>>>>dialup it will more than likely be rejected. And if you use your ISP
            >>>>>>>mail servers, if you send too many in an hour, my get flagged as a
            >>>>>>>spamme r and they will shut you down. Some ISP's have gone so far as
            >>>>>>>to not allow port 25 outbound from these "dialup" ip addresses. AT&T
            >>>>>>>recent ly instituted such practices - sounds like a lawsuit to me.
            >>>>>>>If you use your "gmail" or your own domain in your FROM/REPLY TO:
            >>>>>>>addresse s, you must register as valid address coming from your ISP
            >>>>>>>userna me/pwd also requiring SSL encryption of all mail. You will
            >>>>>>>most likely need to locate php/sasl to use from your server.
            >>>>>>>A good mailer is phpmailer will do most of this, but you will need to
            >>>>>>>add the ssl stuff..
            >>>>>>Thanks guys for all your feedback. I am told the software will have to
            >>>>>>run on Windows machine. I have been researching on the internet and
            >>>>>>found out about XAMPP. It comes with Apache, PHP, MySQL and and
            >>>>>>Mercury mail server. I am not able to get it working to send mail from
            >>>>>>localho st to internet. I will try your methods to get it working. If
            >>>>>>you guys have managed to make it work with XAMPP. Can you please give
            >>>>>>me some directions.
            >>>>>>Thanks for all your help.
            >>>>>I'm a newbie, but have xampp's apache/php/sql all in one installed;
            >>>>>works great, only using locally. I am sending e-mail to multiple
            >>>>>recipien ts using its standard mail() function and it works fine.
            >>>>>Response s to form submissions go back to the questioner and three other
            >>>>>interest ed parties; it all worked first time every time when I uploaded
            >>>>>the code to the site. Locally I purposely let it fail when it can't
            >>>>>find port25 'cause the rest is known to work locally and works 100% when
            >>>>>it gets to the site.
            >>>>> Not sure what directions to give; it just works. I'm too newbie to
            >>>>>know what kind of answers others might need.
            >>>>>I will say it's better to manually install xampp; same results, but you
            >>>>>get to figure out a lot of the nuances by doing the install on your own.
            >>>>>So, after I'd used the all in one enough to know a little about it, I
            >>>>>wiped it out and did a manual install. Had some problems but it was
            >>>>>worth the trouble.
            >>>>>--
            >>>>>Regards,
            >>>>>Twayne
            >>>>>Open Office isn't just for wimps anymore;
            >>>>>OOo is a GREAT MS Office replacementwww. openoffice.org
            >>>>Hi Guys, I have managed to make the Mercury mail server send mail from
            >>>>local host to my yahoo mail using Google SMTP.
            >>>>But I do not know how to put the settings in php.ini.
            >>>>For sending mail via Google SMTP you will need port 465 and SSL
            >>>>connectio n using direct connection.
            >>>>How would I put this information in php.ini
            >>>>Thanks
            >>>mail() itself doesn't do ssl. Check out the Pear::Mail class, which
            >>>should help (and make things easier).
            >>>--
            >>>============ ======
            >>>Remove the "x" from my email address
            >>>Jerry Stuckle
            >>>JDS Computer Training Corp.
            >>>jstuck...@at tglobal.net
            >>>============ ======
            >>Hi, Thanks guys for your help, I have used PHPmailer to send
            >>newsletters from localhost. However the images don't show up. So I
            >>would like to convert the html file to PDF. Do you guys know of a
            >>really good php script that can do this?
            >Rather than create a PDF (which will be larger and won't display inline
            >on the user's mail reader), I'd suggest you figure out the problem with
            >them not showing up and fix that.
            >>
            >Not having your code to generate the html, we have no idea how to help you.
            >>
            >>
            >>
            >>By the way, how do you make this code work?
            ><snip lots of code>
            >>
            >>Connection Interrupted, The network link was interrupted while
            >>negotiating a connection. Please try again.
            >Nothing in your code that I can see should cause that problem. Network
            >timeout, maybe?
            >>
            >--
            >============== ====
            >Remove the "x" from my email address
            >Jerry Stuckle
            >JDS Computer Training Corp.
            >jstuck...@attg lobal.net
            >============== ====
            >
            Well to fix the problem, I would have to ftp images to an online
            server and code the html page to pull images from that online server.
            I don't want to do this. I am creating an offline package that should
            do everything from an offline server. Since there will only be a
            localhost and not an actual domain, i won't be able to link the images
            to the offline server. So the best idea would be able to attach a pdf
            of the newsletter and send it.
            >
            OK, so you're doing everything from an offline server. You can put the
            images on the localhost, also. And you can include the images in the
            email - I get dozens of newsletters a day with images in the email itself.
            So any good PHP free, open source scripts that can covert html to pdf?
            >
            Thanks for all your help.
            >
            Don't know of any, but then this isn't the place to ask. If you want to
            create pdf's with PHP, there's the fpdf package which works well.

            But be prepared to lose readers.

            --
            =============== ===
            Remove the "x" from my email address
            Jerry Stuckle
            JDS Computer Training Corp.
            jstucklex@attgl obal.net
            =============== ===

            Comment

            • undbund

              #7
              Re: sending mail from localhost to yahoo, gmail, hotmail, etc

              On Apr 14, 10:30 am, Jerry Stuckle <jstuck...@attg lobal.netwrote:
              undbund wrote:
              On Apr 14, 1:21 am, Jerry Stuckle <jstuck...@attg lobal.netwrote:
              undbund wrote:
              >On Apr 12, 1:26 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
              >>undbund wrote:
              >>>On Apr 10, 4:37 am, "Twayne" <nob...@devnull .spamcop.netwro te:
              >>>>>On Apr 9, 2:51 pm, Michael Austin <maus...@firstd basource.comwro te:
              >>>>>>Sandy wrote:
              >>>>>>>On Apr 8, 7:12 pm,undbund<undb ...@gmail.comwr ote:
              >>>>>>>>Hi I am creating a newsletter system. The software should run from
              >>>>>>>>deskt op computer (localhost) but be able to send email to anyone on
              >>>>>>>>the internet. Can you guys give me some ideas on how to achieve
              >>>>>>>>this.
              >>>>>>>Usual and easiest way is to have two components: some kind of a
              >>>>>>>mailer (like sendmail) and your program submitting messages to it.
              >>>>>>>So you have sendmail installed and:
              >>>>>>>SMTP localhost
              >>>>>>>smtp_por t 25
              >>>>>>>in your php.ini
              >>>>>>>in your program you call mail($email, $subject, $message) and
              >>>>>>>sendma il will take care of the rest
              >>>>>>>/sandy
              >>>>>>>>http://myphpquiz.com/
              >>>>>>Be aware that if you do not have ReverseDNS to the IP address of your
              >>>>>>mail server or you are using DynamicDNS from dsl, cablemodem or
              >>>>>>dialup it will more than likely be rejected. And if you use your ISP
              >>>>>>mail servers, if you send too many in an hour, my get flagged as a
              >>>>>>spammer and they will shut you down. Some ISP's have gone so far as
              >>>>>>to not allow port 25 outbound from these "dialup" ip addresses. AT&T
              >>>>>>recentl y instituted such practices - sounds like a lawsuit to me.
              >>>>>>If you use your "gmail" or your own domain in your FROM/REPLY TO:
              >>>>>>addresses , you must register as valid address coming from your ISP
              >>>>>>usernam e/pwd also requiring SSL encryption of all mail. You will
              >>>>>>most likely need to locate php/sasl to use from your server.
              >>>>>>A good mailer is phpmailer will do most of this, but you will need to
              >>>>>>add the ssl stuff..
              >>>>>Thanks guys for all your feedback. I am told the software will have to
              >>>>>run on Windows machine. I have been researching on the internet and
              >>>>>found out about XAMPP. It comes with Apache, PHP, MySQL and and
              >>>>>Mercury mail server. I am not able to get it working to send mail from
              >>>>>localhos t to internet. I will try your methods to get it working. If
              >>>>>you guys have managed to make it work with XAMPP. Can you please give
              >>>>>me some directions.
              >>>>>Thanks for all your help.
              >>>>I'm a newbie, but have xampp's apache/php/sql all in one installed;
              >>>>works great, only using locally. I am sending e-mail to multiple
              >>>>recipient s using its standard mail() function and it works fine.
              >>>>Responses to form submissions go back to the questioner and three other
              >>>>intereste d parties; it all worked first time every time when I uploaded
              >>>>the code to the site. Locally I purposely let it fail when it can't
              >>>>find port25 'cause the rest is known to work locally and works 100% when
              >>>>it gets to the site.
              >>>> Not sure what directions to give; it just works. I'm too newbie to
              >>>>know what kind of answers others might need.
              >>>>I will say it's better to manually install xampp; same results, but you
              >>>>get to figure out a lot of the nuances by doing the install on your own.
              >>>>So, after I'd used the all in one enough to know a little about it, I
              >>>>wiped it out and did a manual install. Had some problems but it was
              >>>>worth the trouble.
              >>>>--
              >>>>Regards,
              >>>>Twayne
              >>>>Open Office isn't just for wimps anymore;
              >>>>OOo is a GREAT MS Office replacementwww. openoffice.org
              >>>Hi Guys, I have managed to make the Mercury mail server send mail from
              >>>local host to my yahoo mail using Google SMTP.
              >>>But I do not know how to put the settings in php.ini.
              >>>For sending mail via Google SMTP you will need port 465 and SSL
              >>>connection using direct connection.
              >>>How would I put this information in php.ini
              >>>Thanks
              >>mail() itself doesn't do ssl. Check out the Pear::Mail class, which
              >>should help (and make things easier).
              >>--
              >>============= =====
              >>Remove the "x" from my email address
              >>Jerry Stuckle
              >>JDS Computer Training Corp.
              >>jstuck...@att global.net
              >>============= =====
              >Hi, Thanks guys for your help, I have used PHPmailer to send
              >newsletters from localhost. However the images don't show up. So I
              >would like to convert the html file to PDF. Do you guys know of a
              >really good php script that can do this?
              Rather than create a PDF (which will be larger and won't display inline
              on the user's mail reader), I'd suggest you figure out the problem with
              them not showing up and fix that.
              >
              Not having your code to generate the html, we have no idea how to help you.
              >
              >By the way, how do you make this code work?
              <snip lots of code>
              >
              >Connection Interrupted, The network link was interrupted while
              >negotiating a connection. Please try again.
              Nothing in your code that I can see should cause that problem. Network
              timeout, maybe?
              >
              --
              =============== ===
              Remove the "x" from my email address
              Jerry Stuckle
              JDS Computer Training Corp.
              jstuck...@attgl obal.net
              =============== ===
              >
              Well to fix the problem, I would have to ftp images to an online
              server and code the html page to pull images from that online server.
              I don't want to do this. I am creating an offline package that should
              do everything from an offline server. Since there will only be a
              localhost and not an actual domain, i won't be able to link the images
              to the offline server. So the best idea would be able to attach a pdf
              of the newsletter and send it.
              >
              OK, so you're doing everything from an offline server. You can put the
              images on the localhost, also. And you can include the images in the
              email - I get dozens of newsletters a day with images in the email itself.
              >
              So any good PHP free, open source scripts that can covert html to pdf?
              >
              Thanks for all your help.
              >
              Don't know of any, but then this isn't the place to ask. If you want to
              create pdf's with PHP, there's the fpdf package which works well.
              >
              But be prepared to lose readers.
              >
              --
              =============== ===
              Remove the "x" from my email address
              Jerry Stuckle
              JDS Computer Training Corp.
              jstuck...@attgl obal.net
              =============== ===
              Thanks Jerry, why didn't I think of this rather then searching for
              conversion scripts?. I can use phpmailer to attach all the images and
              the index.html and send them. Thanks for this great idea, you have
              saved me from a lot of pain.

              Thanks for all your help.
              Undbund

              Comment

              • NC

                #8
                Re: sending mail from localhost to yahoo, gmail, hotmail, etc

                On Apr 8, 7:12 pm, undbund <undb...@gmail. comwrote:
                >
                I am creating a newsletter system. The software should run from
                desktop computer (localhost) but be able to send email to anyone
                on the internet. Can you guys give me some ideas on how to achieve
                this.
                Use an outside SMTP server. To connect to that server and send mail
                through it, use phpMailer:



                Cheers,
                NC

                Comment

                Working...