Re: PHP, PHPMailer and SMTP Server
| From: | Per Jessen | Date: | Sat, 20 Feb 2010 18:10:17 +0000 |
| Subject: | Re: PHP, PHPMailer and SMTP Server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-302241@lists.php.net to get a copy of this message | ||
gato chlr wrote:
> Hi,to every body
>
> i'm buildding a little application, for now i'm working in my
> localhost. I need to send a mail and i need to use phpmailer, but..
> when i send a mail using phpMailer it tooks a lot of time, i suppose
> it is because the bandwidth (128kbps and 3 PCs connected in the LAN).
> any way i need to solve it.
Unless you're sending very large emails, it's more likely to be a DNS
problem.
> thinking a few i have found the next
> posible solutions:
>
> *install a SMTP server in my machine, so , when the phpMailer sends a
> mail , there is no routers to jump , and no need to consume bandwith,
> the PHP application does keep freezed "waiting for...".
Apart from fixing your DNS problem, this is by far the best solution.
With a local mailserver, sendmail simply drops new mails into its
queue, and that's it.
/Per
--
Per Jessen, Zürich (3.5°C)