Use external SMTP server (like google apps) to send email

Use external SMTP server (like google apps) to send email

am 10.01.2008 03:28:17 von IanReardon

Is it possible to configure an external SMTP server to route all of
your outgoing mail through on Linux?

I know in php.ini there is a parameter, but it says its only for
windows? Can I do this on Linux?

Re: Use external SMTP server (like google apps) to send email

am 10.01.2008 04:48:03 von Jerry Stuckle

IanReardon@gmail.com wrote:
> Is it possible to configure an external SMTP server to route all of
> your outgoing mail through on Linux?
>
> I know in php.ini there is a parameter, but it says its only for
> windows? Can I do this on Linux?
>

Yes, but that has to be done by your MTA. The Windows parameter is only
to connect to an external MTA.

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

Re: Use external SMTP server (like google apps) to send email

am 11.01.2008 02:32:59 von Manuel Lemos

Hello,

on 01/10/2008 12:28 AM IanReardon@gmail.com said the following:
> Is it possible to configure an external SMTP server to route all of
> your outgoing mail through on Linux?
>
> I know in php.ini there is a parameter, but it says its only for
> windows? Can I do this on Linux?

Gmail SMTP server requires establishing TLS secure connections to port
995, which is something the mail function does not support.

You can try using the smtp_mail() function which is a replacement for
the mail() function that can be configured to route messages via the
Gmail SMTP server:

http://www.phpclasses.org/mimemessage

You also need this other class to deliver the messages

http://www.phpclasses.org/smtpclass

and this for authenticating:

http://www.phpclasses.org/sasl


Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

Re: Use external SMTP server (like google apps) to send email

am 11.01.2008 06:02:33 von nc

On Jan 9, 6:28 pm, IanRear...@gmail.com wrote:
>
> Is it possible to configure an external SMTP server
> to route all of your outgoing mail through on Linux?

Not exactly, but you can always use an SMTP client library; take a
look at phpMailer:

http://phpMailer.sf.net/

Cheers,
NC