SMTP Configuration

Jun 11, 2007

I'm using Wamp for php, I've little doubt to config the smtp for sending mail. I go thru by reference by wamp installation manual, still i've facing the problem. I've changed


in both apache/bin2/php.ini file as well as php/php.ini. its working fine with in mydomain name sending to other like that gmail / yahoo or someother the following errors display. "The message could not be sent because one of the recipients was rejected by the server. The rejected email address was email-id .server response: 553 sorry you have not authenticated for relay and <emailid> is not a local address server errror 553, error number :0x0800CCc79.


Configuration - Changing SMTP In .ini?

Dec 30, 2010

I need help changing my settings within the php.ini file. When i run my php code i get this error:

Warning: mail() [function.mail]:
Failed to connect to mailserver at
"localhost" port 25, verify your
"SMTP" and "smtp_port" setting in

i'm using the wamp server. So, i opened up the php.ini and i found the [mail function] area.i'm not exactly sure what i'm supposed to change.At the moment this is what it looks like:

[mail function]
; For Win32 only.
; ""
SMTP = localhost
; ""
smtp_port = 25

I'm pretty sure i'm supposed to change the "SMPT = localhost" part, but what am i supposed to change it to?

NOTE* the two link within the mail function are in quotes because im not allowed to post more than 1 hyperlink...

View 1 Replies View Related

PHP SMTP Configuration (Lotus Domino)

Jul 17, 2005

I have Apache and PHP installed. Now I want to use the mail() function
in PHP. On the Linux server I have running Lotus Domino as SMTP server
and I don't know how to configure PHP to use the Lotus Domino SMTP server.

I use the setting SMTP=localhost to access the Domino server, but this
does not work. Also if I change it to a DNS entry, it does not work.

For testing it I use a simple mail() call (with the appropriate
parameters. This function does return false and not any error, so I have
no clue where to further look at.

View 11 Replies View Related

Smtp Configuration For Mail Function?

Aug 19, 2010

I am sending mails from my website by using php mail function.But now it is not working and I contacted our hosting team then they told me to use smtp as they did some changes in server.I don't know how to do it.Current code(with php mail function) is as follows, can anyone help me about the changes wchich I have to do with this.

$headers = "";
$headers .= "From:


View 2 Replies View Related

Configuration Settings : Showing An Error "Failed To Set Sender [SMTP: Invalid Response Code Received From Server"?

Apr 16, 2011

I have developed flex based application with php. My client is using Windows 2003 Server. I installed IIS Server and Php Installer into my client machine. I configured php into IIS Server and its working fine.

Query: I wrote a mail code for sending mail to my application user. My client is using internal mail server. I want to send a mail through my application. I used into my application and Its working perfectly. But when I am using client internal mail server. It is showing below mentioned error.

"Failed to set sender [SMTP: Invalid response code received from server. (Code: 554, response: Mail from mail-id rejected for policy reasons.]"

View 2 Replies View Related

Xml - Configuration Manager / Configuration File In Ini Or DB And Not The Default One (in This Case XML), Code Should Handle That Part?

Mar 18, 2010

I am working on code re-factoring of configuration file loading part in PHP. Earlier I was using multiple 'ini' files but now I plan to go for single XML file which will be containing all configuration details of the project. Problem is, if somebody wants configuration file in ini or DB or anything else and not the default one (in this case XML), my code should handle that part.

If somebody wants to go for other configuration option like ini, he will have to create ini file similar to my XML configuration file and my configuration manager should take care everything like parsing, storing in cache. For that I need a mechanism lets say proper interface for my configuration data where the underlying data store can be anything( XML, DB, ini etc) also I don't want it to be dependent on these underlying store and anytime in future this should be extensible to other file formats.

View 2 Replies View Related

Program Not Running On A Different Server - SMTP Error: Could Not Connect To SMTP Host

Aug 20, 2010

iv written some codes on sending mails using google smtp, yahoo smtp, and aol smtp in php. its working fine. but when im trying to run the same codes on a different server and domain it is giving me the following error: SMTP Error: Could not connect to SMTP host.

View 2 Replies View Related

PHPMailer: SMTP Error: Could Not Connect To SMTP Host

Aug 13, 2010

I've used PHPMailer on several projects but now I'm stuck. It gives me the error: SMTP Error: Could not connect to SMTP host. I've tried sending email from Thunderbird and it works ! But not through PHPMailer ... Here are the settings from Thunderbird:.....

$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = SMTP_HOST; // SMTP servers
$mail->Port = SMTP_PORT; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = SMTP_USER; // SMTP username
$mail->Password = SMTP_PASSWORD; // SMTP password

View 3 Replies View Related

Send Email Using GMail SMTP Server - Set Pop / Smtp In Php.ini

May 4, 2011

Possible Duplicate: Send email using GMail SMTP server from PHP page i have a mac and i was wondering how i can set pop/smtp using gmails information in php.ini?

View 1 Replies View Related

Send Mail Through SMTP Using Gmails Smtp Server?

May 20, 2009

Im trying to send mail through SMTP using gmails smtp server. But the problem is I get a Failed to connect error. I dont know what I'm doing wrong. Perhaps someone could give insight of why the problem is occurringHere is my code:


View 4 Replies View Related

SMTP Error: Could Not Connect To SMTP Host

Jun 1, 2011

I have this code, and all works well in my local server. The email is sent without any problem. But now I pass the content to webserver, and I get this error... SMTP Error: Could not connect to SMTP host. SSL is enable in the server..correct? so, what is the problem?

$mail = new PHPMailer();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = ""; // sets GMAIL as the SMTP server

View 1 Replies View Related

SMTP Error "Could Not Connect To SMTP Host" With PHPMailer

Nov 15, 2010

I am getting "SMTP Error: Could not connect to SMTP host." error while trying to send mails using GMAIL SMTP and PHPMailer.. The code is working perfectly in local environment but getting error in live (bluehost) server.

View 1 Replies View Related

Mailer Error: SMTP Error: The Following SMTP Error: Data Not Accepted?

Mar 12, 2009

The following code gives the message Mailer Error: SMTP Error: The following SMTP Error: Data not accepted. But when I replace $EmailAdd with a [URL]. The mail was sent.What's wrong with my code? I'm kind of new in php, especially in dealing with mail functions.

$sql1 = "SELECT Email_Address FROM participantable where IDno=$studId";
$result1 = mysql_query($sql1);
while ($row1 = mysql_fetch_assoc($result1)){


View 3 Replies View Related

Free SMTP Server Called Free SMTP Server

Jun 17, 2006

I downloaded a free SMTP server called Free SMTP server. And I have a PHP script that looks like this:

$to="My Email Address";
mail($to, $subject, $message) or die("Failed");

View 12 Replies View Related

IIS Configuration

Nov 29, 2005

I'm trying to get a PHP script that sends an email working. I have
modified the php.ini file to include the proper values for SMTP =,
smtp_port=, and sendmail_from=. However, when I try to send mail using
the script, I get 'Failed to connect to mailserver at "localhost" port
25, verify your "SMTP" and "smtp_port" setting in php.ini or use
ini_set() in....". I have an actual server name specified for SMTP=,
but it seems almost as if the server isn't reading the php.ini file.
As a test, I included the ini_set(SMTP, xxxx) and
ini_set(sendmail_from, xxxx) in the php script itself, and the mail
worked. Unfortunately, we have hundredes of scripts, and I don't fancy
the idea of changing them all. Why isn't the setting in php.ini

View 1 Replies View Related

PHP Configuration

Dec 19, 2005

I've installed PHP 5 with Apache server on local, and the content of php.ini as follow:

include_path = ".;C:phpincludes"
session.save_path = "C:Temp"
session.cookie_path =
session.use_trans_sid = On
doc_root = "C:Program FilesApache GroupApache2htdocs"
extension_dir = "C:phpext"
mysql.default_port = 3306
mysql.default_host = localhost
mysql.default_user = root
mysqli.default_port = 3306
mysqli.default_host = localhost
mysqli.default_user = root
register_globals = yes

When I navigate to another page with <a href=> the session is working just fine, but if I use javascript to navigate to another page ( window.location / window.navigate / ), the session is terminated. Could somebody please tell me how to configure the php.ini file ( or maybe Apache server ) to navigate by javascript ?

View 1 Replies View Related

GD Configuration

Aug 23, 2005

I've tried all the tutorials online concerning the GD configuration and I cannot get it to work no matter what I do. So far I've uncommented the line extension=php_gd2.dll and changed the extensions directory to "C:home_serverphp". I was told I shouldn't have to download the dll because it already comes with my php installation.

View 2 Replies View Related

SEO URL Configuration In MVC

Jul 13, 2009

i just wanted to knw how is the SEO URL configured in MVCex:[URL],....goes to my facebook the key word to be stored in database ?and how does the controller recognise that its not a controller but a route to different location[URL],....are controllers..

View 5 Replies View Related

GD - Configuration

Mar 31, 2007

does anyone know how to configure GD Library in simple instructions for making bar graphs? please help if you can... im using windows xp  with php apache  macromedia dreamweaver

View 14 Replies View Related

XML-based Configuration

Dec 21, 2002

Does anyone know a good way to retrieve data from inside of an XML file and use it for configuration within my PHP apps?

I tried PHPXConfig, and even with caching a serialzed version of the object, using the getData() method (you give it an XPath) makes my application a lot slower.

View 4 Replies View Related

PHP/Apache Configuration

Jan 10, 2007

I'm still can't get Apache to restart after changing the httpd config
file. I've upgraded my installation to 5.2. Apache 2.2.3 runs fine without
any PHP additions.

1) I added my PHP directory, C:/PHP5, to my PATH

2) I copied php.ini-recommended to my C:/windows directory and renamed
it php.ini

3) I made the following changes to PHP.ini

doc_root = "c:/inetpub/wwwroot"
extension_dir = "c:/php5/ext"
4) I made the following changes to Httpd.conf
After the last entry in the LoadModule section:

LoadModule php5_module "c:/php5/php5apache.dll"
AddModule mod_php5.c

If I comment out the above two statemens, Apache will start.

In the <IfModule mime_moduleSection, I added

AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

And that's it.

When I restart Apache, I get an error dialog with the message:

The requested operation has failed.

What have I missed or done wrong?

View 6 Replies View Related

PHP Configuration Question (PHP 4.20/IIS 5.0)

May 12, 2002

I've done some reading about environment variables, and I've found that $DOCUMENT_ROOT, isn't supported via IIS. So, I've come up with this snippet, that effectively *gives* me that variable: PHP Code:

View 1 Replies View Related

Windows Configuration

Mar 28, 2001

I have experienced problems getting the PHP 4.0.4pl1 [735Kb] CGI only version to work properly with PWS running on Windows 98. I downloaded the PHP 4.0.4pl1 [3.737Kb] CGI binary plus server API version and got that to operate fine, so far. However, I read that this version is not as stable as the CGI only version.

View 1 Replies View Related Configuration.

Jun 4, 2003

I have installed php apache and mysql all otgether not while ago, and i test them and theyr working fine. I also forwarded my domain name to it and everything.

1. when I am typing my it just take mes to the phpmyadmin, without asking me a log in.
2. I have read all about apache and everything and how it can not be secure sometimes and ppl can get to your httdocs. so my question is how can I configure apache or that httpd file so no one else except me can access those directories?

3. and another question is, is there a way to install PERL on apache?

View 14 Replies View Related

Configuration File

Jul 17, 2005

What is the best way to do a configuration file? I want it to be easy to
edit and contain a lot of defined values. (But not nessasarily use
"define"). I have seen it as an array before, and have used that, but I
have to do "global $config" for every function that uses it. Is there an
easier way? Should I be doing it some other way? Ideally I would like a C
syntax DEFINE, the only reason I'm not using define() is because I don't
like the way it looks - it makes it a bit more confusing to change.

View 1 Replies View Related

Php Session Configuration

Dec 17, 2002

i have a problem on my home computer when working with sessions. sessions start fine and the data in them can be accessed by other scripts that use session_start() fine but, any updates to the data are lost and scripts only ever retrieve the first value assigned to a variable

since discovering this i have tested my code on a web sever and it works, which leads me to belive there is a problem somewhere in my configuration files. i have apache 2.0 and php 4 installed. has anybody come accross this problem before or know the likely cause

View 6 Replies View Related

Web Hosting Configuration Help

Jul 17, 2005

I am using a web hosting service for my web site and it is running Apache
1.3.27 with PHP4 however when I try to run some of my PHP code it doesn't
have all the required libraries. Error message:

Warning: Unable to load dynamic library '/usr/lib/php4/' -
/usr/lib/php4/ cannot open shared object file: No such file or
directory in ...

I am developing locally on Windows XP so my question is where can I get a
pre-compiled library and when I get that do I just need to
upload it into the directory shown above? Will that solve my problem?

View 1 Replies View Related

Shell_exec Need Any Configuration?

Mar 10, 2006

Anyone can provide me information on how to did the configuration in the unix there to make the shell_exec() can work properly?

View 1 Replies View Related

PHP Server Configuration

Jul 16, 2005

I have a problem with my servers PHP configuration that is really begining
to fustrate the heck out of me. I have an intranet resume building
applications I wrote. The application is basically split into interface code
and back end code. How this is done is the front end PHP files will call a
specialized data processing PHP file, which in turn will usually direct the
browser back to the interface file via the header() function (with the
exception of for instance the log in page and a handful of others). The
problem I'm experianceing is that frequently PHP will generate the error:

CGI Error:

The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:

Frequently this error will be generating with you try using the header
function to redirect to a web page that does not exist on the server.
However these pages do indeed exist.

I am running PHP on Windows XP Pro and PHP version 4.3.2, this is my
personal development server. I am running it with IIS 5.1, with Visual
Studio.Net Enterprise Architect edition and the server is configured with
the Microsoft.Net Frame Work version 1.1.

Second question, does anyone know of any good references on meshing PHP and
ASP.Net web services? I was interested in using these technology together
and basically just seeing what I can do.

View 1 Replies View Related

PHP Configuration Troubles

Oct 12, 2005

I'm trying to set up PHP on my home PC, which runs XP-Home. I already
have Apache 2.0.54 running. I was going line-by-line through the
install.txt instruction file that came with the download of PHP 5.0.4.
THe process seemed to be going along well until I got to the following:[color=blue][color=green][color=darkred]
Windows NT/200x/XP and IIS 4 or newer

PHP may be installed as a CGI binary, or with the ISAPI module. In
either case, you need to start the Microsoft Management Console (may
appear as 'Internet Services Manager', either in your Windows NT 4.0
Option Pack branch or the Control Panel=>Administrative Tools under
Windows 2000/XP). Then right click on your Web server node (this will
most probably appear as 'Default Web Server'), and select

I'm not seing anything like 'Internet Services Manager' under
Administrative Tools, so I'm unable to proceed. Can anyone give me a
push in the right direction?

View 3 Replies View Related

PHP 4.4.4 Configuration Error

Dec 7, 2006

I am the only one who used VI and wrote code in linux, thus somehow I am sys admin until we hire one. I am trying to compile PHP for the first time. Here is where the configure errors out:

Configuring extensions
checking for OpenSSL support... yes
checking for Kerberos support... yes
checking for krb5-config... /usr/kerberos/bin/krb5-config
checking for pkg-config... no
configure: error: Cannot find OpenSSL's <evp.h>

here is the configuration I am attempting to use:
sudo ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --without-gdbm --with-gettext --with-ncurses=shared --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl=/usr/src/openssl-0.9.8d/include/openssl/ --with-png --with-pspell --with-xml --with-expat-dir=/usr --with-dom=shared,/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --with-xmlrpc=shared --with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --with-gd=shared --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl --with-kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --enable-mbstring=shared --enable-mbstr-enc-trans --enable-mbregex --with-mime-magic=/usr/share/file/magic.mime

here are some locates I ran to try and find the relevant files:
>locate evp.h

>locate pkg-config
<no results returned>

>locate pkgconfig

View 1 Replies View Related

Printer Configuration

Apr 21, 2006

How to connect to a Windows printer from Linux machine?

View 1 Replies View Related

HP And/or Apache Configuration

Oct 5, 2004

Suppose user directories are in:

How to prevent the script
from opening
using fopen(), file(), etc.?

View 1 Replies View Related

Configuration Files

Nov 11, 2004

i use parse_ini_file, why can i not write in my config file:

file_types = array("this","that");

...i also not you cant do:

time = date(formatted how i like it);

My old config.ini, accessed by scripts through require_once(), had arrays of options. Should I stick with this system, or is there something i should know about this parse_ini_file()?

View 1 Replies View Related

Remote Php.ini Configuration

Mar 11, 2007

I am trying to replicate one particular site and am having a problem which is either permissions related or include-path related.

When I look at the phpinfo() for the original site and the copied site, they are virtually identical, but one main difference is the original site has a different include_path.

But when I access the server's etc directory and vi the php.ini file, the include_path doesn;t match either the copied or original. Its just commented out

I checked the httpd.include file and it references the conf folder in the original directory as if there are more include commands there but I can not access it or change the persmissions or anything.

Is there another file specific to each website to update include paths? Am I making any sense?

View 14 Replies View Related

Session Configuration In Php.ini

May 24, 2007

Could some one please help me check my session configuration below?

I am attempting to manually setup PHP to run on Win2003 with IIS7 & using HTTPS certificate.

When I try to login (https disabled or enabled) I don't seem to have any cookies in my IE Temporary Files, but the session does start - they are write fine to the session.save_path

;session.save_path = "/tmp"
session.save_handler = files
session.use_cookies = 1
;session.cookie_secure = Off
;session.use_only_cookies = 1 = SID
session.auto_start = Off
session.cookie_lifetime = 0
;session.cookie_path = /
session.cookie_path = "C:TEMP"
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0

View 1 Replies View Related

Imap Dll And Php.ini Configuration

Dec 15, 2005

I am running PHP on a Windows 2000 box running IIS.

I want to configure my server to usethe imap dll.

Is it possible to simply copy the dll into the php directory and then enable it within the php.ini file?

I am more used to Apache setups so I am not 100& clear how PHP works on IIS.

My php.ini is located in the following location:


But there is also a PHP folders :


I have placed the imap.dll in the php folder and uncommented the line in the php.ini file.

Is there anything else I need to do or am I over simplyfying things here?

I noticed there is also a line in the php.ini where you can specify the module extensions directory, do I need to do this and if so what would it be inmy case. I did try "c:/php" but this seemed to cause php not to start correctly.

View 1 Replies View Related

5 And Apache2.2 Configuration

Dec 3, 2006

I use Fedora Core 5 as my server OS. I have PHP5 and Apache 2.2 setup and running.

I cant get any code to accept a passed variable. This code is all that is in the calling script and is generated by another script automatically:

<?php $clientip = $_SERVER['REMOTE_ADDR']; ?>
<?php include(''.$clientip); ?>


View 4 Replies View Related

W2k LAMP Configuration

Mar 7, 2006

Is there a usenet group for Apache questions? If I knew of one I'd
post the question there.

I can't get a MySQL connection in PHP code under apache to work.

I'm learning LAMP, starting on a w2k box. I've downloaded recent
copies of Apache, MySQL and PHP and done the setup and it seems to
work,except for SQL. I can run pure PHP under the apache server and
I've installed phpmyadmin and I can make a database and then access it
from mysql in a cmd shell. Code:

View 3 Replies View Related

Files Configuration

Dec 6, 2006

I just installed WAMP server & want to work in PHP. I made a php file but when I open it from LOCALHOST it simply shows nothing but a whol blank page & when I open it from its location, it opens in Dreamweaver. Please tell me what kinda problem I'm facing ????

View 2 Replies View Related

Apache Configuration

Jul 19, 2006

I am absolutely new to PHP, highly motivated, but already stuck with a problem in the adjustments in the configuration file. I follow the plan laid out in the new Blog Design Solutions book, pp. 33-8 and have downloaded the newest version of both PHP and Apache - 2.2.

Here's the problem: Apache cannot load the php5apache2.dll file into the server. In the conf file, line 116, it states; LoadModule php5_module C:/php5/php5apache2.dll and yes, php5 is placed at C:/.

View 3 Replies View Related

Configuration Problem

Jan 5, 2006

I have got PHP 4.3.10 Installed on my local system (windows) and server. foreach loop runs perfectly on my local system but it gives me problems on the server. here is a sample code.

$FilenameParameters1 = array('ar', 'bg', 'bc', 'far');
foreach ($FilenameParameters1 as $key) {
echo $key;

on local system it prints the values "ar bg bc far"

but on the server it prints "Array Array Array Array"

it works fine if i change $key to $k=>$key in the loop. Because of that i'm not able to run any libraries or classes downloaded from the internet.

View 4 Replies View Related

Configuration Variable

Mar 15, 2006

im using php 5 on my mac, and i got this error, he installer detected some problems which need to be fixed before you can continue: The PHP configuration variable register_long_arrays needs to be turned on. but the problem is that i checked my php.ini and register_long_arrays is on. so what show i do, because resgister etc is on.

View 1 Replies View Related

Myadmin Configuration

Feb 25, 2005

I cannot for the life of me find the location where yoiu can set teh option to allow the export of SQL queries. On my local server is hidden and on the remote one where I dont have access I can. I have looked in but no joy.

View 1 Replies View Related

Install Configuration

Nov 19, 2005

index.php. PHP Code:


include ''

case news:

include ''


View 1 Replies View Related