By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,028 Members | 1,945 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,028 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?
Jan 10 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Ia********@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.
js*******@attglobal.net
==================

Jan 10 '08 #2

P: n/a
Hello,

on 01/10/2008 12:28 AM Ia********@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/
Jan 11 '08 #3

P: n/a
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
Jan 11 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.