PHP, PHPMailer and SMTP Server

--0016363ba666d1ec9b04800a9f00
Content-Type: text/plain; charset=ISO-8859-1

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. 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...".

*use multithreading in php , how? creating a thread to send the mail, and
the application can show me the next screen while the sender thread is
working, but as long as i readed , it does not exists. I have found a
solution in Linux by using forke function, "damn" i'm working on Windows.
Like all, i supose there is a way to make it works in Windows.

*Ask to my php comunity , explain my problem, and my posible solutions, and
receive a good feeback in order to know wichone is better solution, and
listen if there is other solutions



so i will appreciate the contributions, thanks to every body

--0016363ba666d1ec9b04800a9f00--
Daniel Echalar [ Sa, 20 Februar 2010 17:23 ] [ ID #2032998 ]

Re: PHP, PHPMailer and SMTP Server

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=C3=BCrich (3.5=C2=B0C)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Per Jessen [ Sa, 20 Februar 2010 19:10 ] [ ID #2033003 ]
PHP » gmane.comp.php.general » PHP, PHPMailer and SMTP Server

Vorheriges Thema: Advice on maintaining public and private files
Nächstes Thema: array conversion