Link to home
Start Free TrialLog in
Avatar of Starquest321
Starquest321

asked on

gmail setting in setting.ini file

I have software which has a setting.ini file which I am suppose to put the smtp settings for my server in order for the software to send emails. I am using Google apps and when I try to use those settings it does not work. I am able to recieve and send emails from the gmail interface for my domain, so the MX records are setup properly in the DNS.
The weird thing is that I had it working at one time, but forgot what I did. Please please help.
/*
	######################################################################################################
 
		EMAIL SERVER SETTINGS ...
 
	######################################################################################################
	*/
 
 
	// load email server settings ...
	$smtp_server					= "smtp.gmail.com";
	$smtp_username					= "name@domain.com";
	$smtp_password					= "password";
	$smtp_auth						= true;
	$email_from						= "name@domain.com";
	$email_from_name				= "name";
	$email_wordwrap					= 50;
	$admin_email					= "name@domain.com";

Open in new window

Avatar of suredazzle
suredazzle

SMTP is outgoing.

Make sure ports are 25, 465, or 587. Put check on SSL.

If you have the option to choose SSL make sure that is enabled and the SMTP port numbers for gmail are set to 465 or 587, but you must make sure that SSL is enabled or it won't work.

If you can activate the SSL but not able to enter the port number you could try smtp.gmail.com:465 or smtp.gmail.com:587 this could work.

How do you mean it dosn't work, do you get any more information??
Avatar of Starquest321

ASKER

THe problem is that this is not Outlook or somehting - this is the php code.....so there is no check or option.
ASKER CERTIFIED SOLUTION
Avatar of suredazzle
suredazzle

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You are using GMAIL....

name@gmail.com or name@example.com for smtp.

Hope it helps!
Its useless I think the code on the software is bad. . . will contact the developer. Thanks anyways.