473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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

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
3 4130
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andy Turner | last post by:
Hi, I'm trying to setup PHP so it will use a remote SMTP server. I'm going to sound like a newbie but how? I know you need to alter php.ini, change SMTP from localhost to the SMTP server and the...
8
by: Sue | last post by:
Does this "NT-based machine (NT, 2K, XP)" mean a WindowsXP machine is a NT-based machine? What does NT stand for and what does it mean? What is CDONTS? What does this mean - "The machine...
1
by: Von Shean | last post by:
I need to send ".mht" files to different recipients. I have saved .mht files using CDO. Now i have to send it across.. I have two options both have different types of problems Using CDO I...
5
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address...
1
by: Brian Bischof | last post by:
In my Win app I found that using the SMTP object doesn't release resources after closing the application. During testing I have to open and close the app many times and I found that after about three...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
11
by: fdu.xiaojf | last post by:
Hi, I just want to send a very simple email from within python. I think the standard module of smtpd in python can do this, but I haven't found documents about how to use it after googleing....
4
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.