473,657 Members | 2,540 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 9306
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
2835
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 the following error in my log after I think I have I configured apache and php " C:/Websites/matrixcsbsju/html.test/matrix.htaccess: Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server...
1
2224
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 Preferences/Language/PHP in debugger configuration, I am getting the following error message: WARNING! PHP is not configured for debugging. You can use the configuration wizard to configure PHP for debugging.
1
1843
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 /usr/lib/php/gd-2.0.35. I followed the instructions to install it which is as follows. Firstly ./configure --with-gd then make and lastly make install.. Everything installed with no errors. But now when i look at the phpinfo i still get the --without-gd. I really am...
5
13909
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: configure: error: GD build test failed. Please check the config.log for details. Checking config.log yields the following: configure:42434: gcc -o conftest -g -O2 -no-cpp-precomp -L/usr/local/lib -L/usr/local/lib conftest.c -L -lfreetype -lpng...
3
2284
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 provide me the configuration details , that would me more helpfull for me. Thanks to the free ware community, linux groups and Tux webserver. Thanks to this Google's Groups service.
2
2577
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 configuration options: =================
1
1254
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 Linux gains increasing acceptance in corporate datacenters and
0
8845
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8743
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1736
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.