You are here: Re: Non-local SMTP mail function. « PHP Programming Language « IT news, forums, messages
Re: Non-local SMTP mail function.

Posted by NC on 10/05/06 17:44

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:

http://us3.php.net/manual/en/ref.mail.php#ini.smtp

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:

http://phpmailer.sf.net/

Cheers,
NC

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация