473,508 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

configuring Gmail smpt in php´

Is there any way to set up the php.ini file, in order to be able to use
gmail to send mails from a local machine?

I've tryied with

SMTP = smtp.gmail.com
smtp_port = 25

but I can't figure out where I've to write user and password data nor
the place where I've to write the SSL data which Gmail waits for...

regards - jm

Jan 11 '06 #1
7 9296
NC
julian_m wrote:

Is there any way to set up the php.ini file, in order to be able
to use gmail to send mails from a local machine?

I've tryied with

SMTP = smtp.gmail.com
smtp_port = 25

but I can't figure out where I've to write user and password data nor
the place where I've to write the SSL data which Gmail waits for...


Consider using phpMailer instead:

http://phpmailer.sf.net/

Cheers,
NC

Jan 11 '06 #2

NC wrote:
julian_m wrote:

Is there any way to set up the php.ini file, in order to be able
to use gmail to send mails from a local machine?

I've tryied with

SMTP = smtp.gmail.com
smtp_port = 25

but I can't figure out where I've to write user and password data nor
the place where I've to write the SSL data which Gmail waits for...


Consider using phpMailer instead:

http://phpmailer.sf.net/


Ahh, thanks, I'll give it a try

regards - jm

Jan 11 '06 #3
Hello,

on 01/11/2006 01:46 AM julian_m said the following:
Is there any way to set up the php.ini file, in order to be able to use
gmail to send mails from a local machine?

I've tryied with

SMTP = smtp.gmail.com
smtp_port = 25

but I can't figure out where I've to write user and password data nor
the place where I've to write the SSL data which Gmail waits for...


Not with the mail function under Linux/Unix systems.

You may want to try this MIME message class that comes with a wrapper
function named smtp_mail(). That function emulates the mail() function
but lets you send messages to a SMTP server of your choice and supports
authentication.

http://www.phpclasses.org/mimemessage
You also need this for SMTP delivery:

http://www.phpclasses.org/smtpclass

and this for authentication:

http://www.phpclasses.org/sasl
--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Jan 11 '06 #4

julian_m wrote:
NC wrote:
but I can't figure out where I've to write user and password data nor
the place where I've to write the SSL data which Gmail waits for...


Consider using phpMailer instead:

http://phpmailer.sf.net/


I can't get logged in. I'm receiving the following message:

Must issue a STARTTLS command first;
The following From address failed: my*******@gmail.com

Note that I already have

var $SMTPAuth = true;

Any kind of help would be apreciated
regards - jm

Jan 11 '06 #5

julian_m wrote:
julian_m wrote:
NC wrote:
> but I can't figure out where I've to write user and password data nor
> the place where I've to write the SSL data which Gmail waits for...

Consider using phpMailer instead:

http://phpmailer.sf.net/


I can't get logged in. I'm receiving the following message:

Must issue a STARTTLS command first;
The following From address failed: my*******@gmail.com

Note that I already have

var $SMTPAuth = true;

Any kind of help would be apreciated
regards - jm


mmm, i found an article in
https://noorul.nipl-silly-url-fixme....aintenance.php

"Even though phpmailer supports SMTP authentication, it lacks the
funtionality to use SSL connection. I couldn't use this class to
connect to gmail SMTP server because it requires SSL connection. The
only option left for me was to find out mail exchange servers of gmail
and interact with it. This is alright because my requirement is only to
send mail to a gmail account."

So PHPmailer can't be used to send mails trough gmail servers right?

regards - jm

Jan 11 '06 #6

julian_m wrote:
julian_m wrote:
NC wrote:
> but I can't figure out where I've to write user and password data nor
> the place where I've to write the SSL data which Gmail waits for...

Consider using phpMailer instead:

http://phpmailer.sf.net/


I can't get logged in. I'm receiving the following message:

Must issue a STARTTLS command first;
The following From address failed: my*******@gmail.com

Note that I already have

var $SMTPAuth = true;

Any kind of help would be apreciated
regards - jm


mmm, i found an article in
https://noorul.nipl-silly-url-fixme....aintenance.php

"Even though phpmailer supports SMTP authentication, it lacks the
funtionality to use SSL connection. I couldn't use this class to
connect to gmail SMTP server because it requires SSL connection. The
only option left for me was to find out mail exchange servers of gmail
and interact with it. This is alright because my requirement is only to
send mail to a gmail account."

So PHPmailer can't be used to send mails trough gmail servers right?

regards - jm

Jan 11 '06 #7
julian_m wrote:
Is there any way to set up the php.ini file, in order to be able to use
gmail to send mails from a local machine?

I've tryied with

SMTP = smtp.gmail.com
smtp_port = 25

but I can't figure out where I've to write user and password data nor
the place where I've to write the SSL data which Gmail waits for...

regards - jm


GMail doesn't use port 25, it's something else like 236... They use the
TLS protocol to authenticate, and so you need to write code which will
authenticate you before you can send outgoing mail through them. I
looked into that once upon a time, but could not figure it all out. I
gave up in the end, so I can't help you with a solution other than
telling you that you need to look into TLS, which i'm not sure that PHP
can handle... I could be wrong. Would love to see an update from you
if you figure this one out, though :)

John D. Mann
Jan 12 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2821
by: P.Hill | last post by:
I was just trying to install Apache and php on an XP box for test of a PHP website I built last year. It was my first and only, so I am now rusty about the little I did learn last year. I get...
1
2210
by: Scubadude | last post by:
I am looking for some assistance in 'fine-tuning' my preferences as I set-up my system to learn PHP. I am running Komodo professional, version 3.5.3, build 262321, platform win32-x86. Under...
1
1833
by: RoyScripts | last post by:
Hi All.. I really need help configuring PHP with GD support. I am running Fedora 6, Apache and PHP 5.1.6, i have downloaded the gd-2.0.35 file and unpacked it under the directory...
5
13894
pbmods
by: pbmods | last post by:
Configuring PHP 5.2.3 with GD support for Mac OS X PHP 5.2.3 does not seem to want to configure with GD support on Mac OS X for some reason. When configuring, you may notice this error: ...
3
2277
by: vishnumahendra | last post by:
Hi all, I am from Madurai,Tamil Nadu, India. I have started running Tux Web Server . I have tried few searches, but no answers. But I do not know how to run PHP on Tux Web Server. If you could...
2
2570
by: Eric West | last post by:
Hello all- When I attempt to configure php with the recode library I get the following error: configure: error: recode extension can not be configured together with: mysql Here's my...
1
1243
by: rada.lambretha | last post by:
Configuring Linux as a Firewall * Making installation choices * Introducing iptables * Using iptables commands * Simplifying things with firewall GUIs * Adding proxy functionality As...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7379
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
7493
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
5625
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,...
1
5049
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...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.