Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Web Hosting


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







How To Enable/disable Mail() Function


how to know if mail() function is enabled or disabled on my server? how to enable/disable it?

can it be done via server control panel or is there a shell command for it?

one more thing, where to get/edit the SMTP data for my server?


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Disable Mail Function
I am starting to webhosting company in it I have included a package will be free and add supported and also I want to disable some functions like mail() ..........I mean I want to disable SMTP services anyone have idea how can I do that.

View Replies!   View Related
Enable PHP Function Via Httpd.conf
I 'd like to enable php function "mail" via directive for specific account in httpd.conf
what's directive syntax for it,

View Replies!   View Related
Disable Function
It possible to disable the disable function for all user expect one account for running few application i need shell_exec, passthru, exec these so for other account it possible to disable it?

View Replies!   View Related
[cPanel] Function Mail(); And Fowarders E-mail - Not Working
I have problem:
1. Function mail(); not working

2. osCommerce e-mail error:

Code:
Gid 32157 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail.

3. Fowarders working only on internal accounts e-mail
fowarder@mydomain.com --> email@mydomain.com - working
fowarder@mydomain.com --> my-emiail123@mail.pl - not working

This is VPS cPanel (OpenVZ) on my dedicated server.

View Replies!   View Related
Suexec Enable Or Disable
is it good or not and why we should enable or disable it in cpanel server or other server?

View Replies!   View Related
[Apache2] Enable/disable Concurrent Connections
Currently I use WHM/cPanel latest on a few boxes, I have (at least to my knowledge) copied the exact compile settings between servers, yet some of my servers allow me to do concurrent file downloads (using DownThemAll or another "accelerator") whilst others only let me make 1 connection. These servers also don't show me the final filesize while downloading. So my question is, what did I set/unset to cause this to happen? It's been bugging me for a month or so now and no amount of recompiling has fixed the issue (aside from a clean install of the OS/cPanel). I can provide a list of modules and other config settings if required.

View Replies!   View Related
How To Enable/disable Cronjobs For All Account On WHM/cPanel?
I'm manage on dedicated server.

I need to know method enable/disable cronjobs for all account on WHM/cPanel?

View Replies!   View Related
Mail Function Not Work
the php mail function not work on my server!

when I run this function not show any error too.

for example I run this code:

<?php
echo "ok";
$to = 'myemail@mydomain.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: test@domainname.com' . "
" .
'Reply-To:test@test@domainname.com' . "
" .
'X-Mailer: PHP/' . phpversion();

if(mail($to, $subject, $message, $headers)){

echo "sent";

}else{

echo "notsent";
}
?>

View Replies!   View Related
Server Slow After Using Mail Function
I used the mail function in php to send mails to my 25000 members in a loop..

After using it my server has gone very slow.. Load has increased a lot from 2 to around 20.. Major load is taken by sql and then httpd (both have increased)..

I had restarted mysql and httpd.. even reinstalled apache but no help..

View Replies!   View Related
PHP Mail() Function Not Working
I have just changed servers and uploaded a mail() script which was working on my previous config but does not work on the new server config. What is stopping the emails from being delivered, is there something new in WHM that I need to do?

Here are my WHM and cPanel details:

WHM 11.11.0 cPanel 11.15.0-R18264
REDHAT 4 i686 on standard - WHM X v3.1.0

View Replies!   View Related
PHP Mail() Function Does Not Work
I just re-installed PHP4, Apache, and MySQL and now the "mail" function in PHP will not work. Is there a way to correct this? Is there some configuration value in Apache or PHP I must change?

View Replies!   View Related
How Much Can Php's Mail Function Really Handle
I have mixed feelings on the mail() function in php. I've seen it send out amazing numbers of emails and yet I keep reading that it is prone to problems. I'm wondering if someone can put an approximation on what you could/would send out in say 60 seconds. I know that there are tonnes of variables, so i'll try and remove a few:

- server hardware is typical of a cpanel/WHM shared hosting environment
- running apache/linux
- email is say 20kb HTML format
- mail is sent in a php script loop, one by one; alternatively, mail() could be called in clusters of x emails - like send 5 emails at once
- there are 400 recipients

View Replies!   View Related
PHP Mail() Function Stopped Working
I have a dedicated that suddenly stop php mail() function to work.

Very strange because if I run php script with mail() function as root on command line all working fine.

But If I run php script with mail() function in my browser so not work. Seems that only ROOT can run mail() function.

View Replies!   View Related
PHP Mail() Function Not Working With Lighttpd
I recently started using lighttpd + with PHP using Fast-CGI on a server hosting 14 blogs powered by WordPress, the server works great and this change reduced server load in about 50% which is nice for us, considering some of our blogs have a very high visitor traffic.

Our only problem so far is that since we switched to lighttpd the PHP's mail() function is just not working. I have compiled and re-compiled PHP and Lighttpd without any effects. I have a test site still working with Apache and PHP scripts can send mail without problems.

I've searched forums and Google for some kind of answer but none whatsoever maybe someone can give me pointers on how to solve this. Thanks a lot!!

Server details:

Lighttpd version: 1.4.15
PHP version: 4.4.4
Kernel: 2.6.9-42.0.3.ELsmp
Server has cPanel/WHM installed

PHP configure options:

--prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap=/usr/local/imap-2004g --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes --with-mysqli --with-mysql=/usr --with-openssl --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --with-xmlrpc --with-zlib --with-kerberos --with-imap-ssl --enable-fastcgi --enable-force-redirect

View Replies!   View Related
Setting Up PHP Mail() Function On New Server
how to set up the mail () function in my PHP.ini on a Linux server.

Is there a generic path that I need to use in order to allow the mail function to work in the scripts?

We do have a mail server set up, the address of which being "mail.companyname.com" ... do I need to insert that into the ini file somwhere instead?

View Replies!   View Related
Configure Webserver So That The Php Scripts To Be Able To Use The Mail() Function
I just purchased a vps from rapidswitch, installed lamp, webmin, etc. All is working fine, with one exception. I can't send mail via mail() function.

I have set the MX so that my email addresses are handled by google for domains so i can send and receive mails without problems.

What i cant do, is for example to install a cms and make it send emails for the new registered users, etc.

I have installed postfix via yum, and i've tried to configure it.. but i kind of give up after a few hours of trying.

Someone could point me to the right direction on how to configure postfix for just this ? to be able to send mails via php.

I don't care if it's postfix, qmail, etc.

View Replies!   View Related
Migration From IMail 8.0 To Mail Enable / JMail
One of our client is switching servers and the old one had iMail 8.0 but he cant afford the same on his own dedicated server.

We are planning to use either Mail Enable or JMail as the replacement.

We have 450 mail accounts on iMail and we will have to migrate them as well.

What do you recommend will be the easiest and better? JMail Professional Edition or Mail Enable Professional Edition?

View Replies!   View Related
Disable Php Mail () For One Account Only
is there anyway to disable PHP mail() for one cpanel account only?

Cpanel with PHPSUEXEC installed


View Replies!   View Related
Disable Mail Per Account Package On A CPanel Server
if it's possible to disable the ability to send email for accounts using a certain package in cPanel? I tried searching, I didn't find anything really relevant. Would it be possible to maybe create a rule, or script to add a rule to each account using a package to just block that username or account from sending email?

View Replies!   View Related
Exim: Disable Mail Delivery Failure Notifications
how to disable the "Mail delivery failed: returning message to sender" e-mails from being sent in Exim, and whether it's a good idea?

View Replies!   View Related
Function Checking
How can figure out which functions are active on my server?
I have root access and the server is Linux.

I want to know wheather the function "fsockopen" is open or not.

View Replies!   View Related
Function : Curl_init()
Fatal error: Call to undefined function: curl_init() in /home/user/public_html/news/include/function.php on line 1526

how to fix this.??
thanks

NB: My server info

Centos
apache1
my php -v give :

Code:
php -v
PHP 4.4.7 (cli) (built: Jul 27 2007 18:31:31)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with the ionCube PHP Loader v3.1.31, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP Project
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies

View Replies!   View Related
Function.file-get-contents
I got this warning message from a script I was working on to read XML feeds.

Warning: file_get_contents(url) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:Apache2.2htdocs est5.php on line 8

but when i run the url itself, it works fine.

i already set allow_url_fopen = On

View Replies!   View Related
Using Crypt Function In C++ On Linux
Can anyone tell me in order to use the crypt function (amd md5sum) in a c++ program (g++ on CentOS assuming the cryptography libary is installed) what do I have to

#include

?

View Replies!   View Related
Some Ajax Function Not Working
I got PHP working. But some of the Ajax functions it not working.

For example:
in wordpress admin, i can only use HTML mode to start a new post. I cant switch to VISUAL mode. And it was working before though.

What option do i need to compile PHP with to make it work?

Right now i have:

Quote:

'./configure' '--prefix=/opt/lsws/lsphp4' '--with-litespeed' '--with-mysql' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib'

View Replies!   View Related
Function.include Error
Ive searched google and this forum for hours and have not found any solution to this below error on a site of mine.

I am using php 5.2

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/comosabe/public_html/footer.php on line 5

View Replies!   View Related
Php Virtual() Function Doesn't Work
We setup a new server and we're trying to use virtual() function to work with a certain script that requires it.

We already tried several ways to make it work. But at this moment, we only could make it work on PHP 4 with DSO.

View Replies!   View Related
Diasbled Function In Php.ini
suppose that i am a costumer. is it possible to see disabled function in php.ini?
(using any script)

View Replies!   View Related
Function.include Error After Transfer
We transfer some hosted website from our usa server to our cana server and they have function.include error in new server.

View Replies!   View Related
Imagettftext :: FreeType Library Not Available, Function Does Not Exit
i use VPS linux, And one of my member asked me To help him.

He faced an error that say, 'FreeType library not available. (Function imagettftext does not exist)'

and requested me to avtivate this for him.i have no information about it that how can i do it.

View Replies!   View Related
Fatal Error: Call To Undefined Function: Imagettfbbox()
Fatal error: Call to undefined function: imagettfbbox()

I am getting the above given error message.

View Replies!   View Related
Error: Warning: Mysql_connect() [function.mysql-connect]
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/.../public_html/enhu.com/includes/connection.php on line 5

Database connection failed: Access denied for user 'root'@'localhost' (using password: YES)

i'm using wamp.

how must i fix this error?

View Replies!   View Related
Iptables LKM Ip_tables Missing So This Firewall Cannot Function
When I click Start Firewall

I get this

iptables LKM ip_tables missing so this firewall cannot function unless you enable MONOLITHIC_KERNEL in /etc/csf/csf.conf
Error: aborted, at line 156

View Replies!   View Related
Email Function Not Working (MS Window Server 2003)
We have a MS Window server 2003 with SP2, currently there is a website running, the webiste is desgined by using asp.net 2.0 c#.

We reinstalled the window server 2003 last week, and we found the email functions not working any more(users in the website can't receive email each other).

I have spent days and trying to figure out, but no luck, I have tried to reset the IIS settings, SMTP Virtual settings, and add/remove windows componets settings...

View Replies!   View Related
Iptables Service Need To Be Running In Order For APF To Function?
Does the iptables service need to be running in order for APF to function? If so, can APF act like it is running, when the iptables service is not running, thus giving you a false sense of security?

View Replies!   View Related
IIS7 And PHP5 : Call To Undefined Function Mysql_connect()
I've been struggling with IIS continuously.

I simply cannot get things to work on it like it's supposed to.

Right now...PHP is running fine...but MySQL won't work.

I've been searching Google for the past 12hours trying to fix this, but it won't budge.

In my "php.ini" file, I enabled the "php_mysql.dll" extension.

I've also tried several other things, but nothing works.

View Replies!   View Related
Fantastico: Fatal Error: Call To Undefined Function Get_output() In...
I'm getting the following error when I'm trying to access Fantastico from cPanel:

Fatal error: Call to undefined function get_output() in /tmp/cpanel_phpengine.1238461774.28418Q1lWZzC0r_ on line 971

I have safe_mode set to On and shell_exec function disabled. When allowing shell_exec and safe_mode Fantastico is working in this server.

But I have many server where safe_mode set to On and shell_exec function is disabled and Fantastico is running just fine.

View Replies!   View Related
Transfering My Clients To A New Host But Maintaining Website Function And Integrity
I have 35 clients hosting on my dedicated server.

I am going to be ending my service as a host provider, and I need to transfer all of my clients to a new host.

Many of my clients sites were written 3-4 years ago in php while global vars was still off, and so many of the sites might not function correctly if I just pop them to a new host.

My first solution would be to bypass the php .ini file with a public_html/ based ini that would override any newer server settings.

Does anyone know of a good host that could take my clients? And also support the php version locally to the shared account?

I need a host that is reliable, and honest.

Am I going about this the right way?

I am open to any suggestions or advice on this.

I should probably add, all of my clients pay on an annual basis from $89-$140. None of my clients run video sites or any heavy media stuff.

View Replies!   View Related
Howto Convert Ini_set Function In Code To Php.ini Setting
I have a website that was running fine for a month or two until my host recently changed some settings on the server, and now it shows a bunch of errors. I contacted the host and they said >

"To avoid the errors, please do not use disabled function. If you need such functionality, you can have your own php.ini on your root http folder containing only necessary option"

Since I'm not a programer, I have no idea what they're talking about. So, I asked them how to do that, they're reply of course was>

"Please consult with the script writer on how to convert ini_set function in your code to php.ini seting. As the script is not encrypted, you can do it with commenting all ini_set calls and write a substitute on php.ini (Create php.ini file in webroot folder)."

I tried to contact the developer, but it appears he has gone MIA! So, now I am left with no clue how to fix the website, so I turn to you guys!

The website is [url]. You can see the errors in the header, but I'll post them here as well>>

"Warning: ini_set() has been disabled for security reasons in /home/buymydom/public_html/includes/global.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/buymydom/public_html/includes/global.php:3) in /home/buymydom/public_html/includes/global.php on line 32

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/buymydom/public_html/includes/global.php:3) in /home/buymydom/public_html/includes/global.php on line 32"

My question is, How do I convert ini_set function in my code to php.ini?

View Replies!   View Related
Smarter Mail - Spammers Targetting Mail Server Using Dynamic Ip's
We have been having some problems with one of our mail servers lately. Server is running Smarter Mail 4.x with declude.

Some spammers have been targeting this particular to send spam through this server. This putting lot of load on the server because declude is processing the SPOOL in Smarter Mail and spool goes upto 2000-20000 during the day. We have been checking the headers and blocking the IP's continuously of these spam but these people are using dynamic ip's. And it doesn't seem like single spammer. Content is quite different.

Blocking full ranges of certain IP Range helps though but then lot of legitimate mail is getting blocked as well.

Is there any good suggestion or a serious mail server admin who can have a look and actually sort it.

This is causing serious delays on our mail delivery through this mail server.

View Replies!   View Related
Issues Sending Mail To Yahoo, And Mail Getting Marked As Spam, Whats A Good Solution?
Issues sending mail to Yahoo, and mail getting marked as spam, Whats a good solution? ...

View Replies!   View Related
How To Enable Mbstring
I want to enable mbstring. I googled and found --enable-mbstring is the key to turning it on but I don't know where to put this. In the php.ini?

View Replies!   View Related
I Need To Enable Register_globals
i got hosting with cPanel Control panel i have some problem with this hosting because its "register_globals" disabled , i need to enable the "register_globals" on my hosting ,

View Replies!   View Related
ClamAV - Should We Enable It?
I would like to ask whether should we use/enable the clamAV service on our VPS? I have read from several article, it said that ClamAV is pretty hungry on CPU/Memory resources.

I would like to know, do you use/enable the clamAV on your VPS? Or even don't have it installed on your VPS?

View Replies!   View Related
Enable InnoDB
how to enable innodb

use this command in mysql ....

View Replies!   View Related
How To Enable Pdo_mysql
How do I enable pdo_mysql on my cpanel server? Can I do it somewhere in WHM or do I need to go to command line?

View Replies!   View Related
Mod_Rewrite (Enable It)
I have a VPS and I need to enable mod_rewrite.

Here is my PHP Info: [url]

I read a tutorial but I just don't get it. I would appreciate if you could help me out.

I need it for my Wordpress blog.

View Replies!   View Related
How To Enable Fsockopen
i use a script that needs fsockopen and curl to work. also i installed curl, but couldn't enable fsockopen. how i can do that? i'm using centos, php5, cpanel etc etc..

i looked php.ini, disable_functions is empty..

View Replies!   View Related
Enable ,htaccess
i disabled the .htaccess files when i installed the modsecurity with the following command

/usr/local/apache/bin/apxs -D DISABLE_HTACCESS_CONFIG -cia mod_security.c

now how can i recompile the modsecurity with .htaccess enabled?

View Replies!   View Related
How To Enable Iconv
how can i enable iconv (using .htaccess too)

View Replies!   View Related
Enable Soap
Anyone know how to properly enable/compile SOAP service on a centos 4.5 / cpanel box?

View Replies!   View Related
How To Enable These Functions
My site is running with php scripts It's work fire at bluehost but get some error when i move to new VPS .

Quote:

Warning: fputs(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 171

Warning: fclose(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 173

Warning: fputs(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 225

Warning: fclose(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 227

I want to enable these functions fopen(),fputs(),fclose(),fputs(),fclose() but i don't know how to enable them .Could you tell me details

View Replies!   View Related
Enable Hotlinking
I moved my website from one server to another just today and my site has a rank on another website. The ranking site lets me display my rank on my website through a hotlink to their site. When I moved my site to the new server, I can't see the image. On the old server, I could always see the image.

This is a strange issue since in Firefox, I see the image load and then it tells me the image is empty. But when I open the image's URL, I can see it just fine. I've reloaded the page over and over again, but I don't get anything. The same applies to IE.

What's even more strange is when I use a proxy, I can see the image just fine through my browser.

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved