How Much Can Php's Mail Function Really Handle

Apr 15, 2007

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 7 Replies


ADVERTISEMENT

[cPanel] Function Mail(); And Fowarders E-mail - Not Working

Jul 24, 2007

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 3 Replies View Related

Disable Mail Function

May 21, 2008

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 14 Replies View Related

Mail Function Not Work

Apr 5, 2008

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 14 Replies View Related

PHP Mail() Function Not Working

Dec 10, 2007

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 13 Replies View Related

PHP Mail() Function Does Not Work

Jul 25, 2007

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 2 Replies View Related

How To Enable/disable Mail() Function

Feb 16, 2009

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 14 Replies View Related

Server Slow After Using Mail Function

Apr 20, 2008

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 14 Replies View Related

PHP Mail() Function Stopped Working

May 10, 2008

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 3 Replies View Related

PHP Mail() Function Not Working With Lighttpd

May 10, 2007

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 5 Replies View Related

Setting Up PHP Mail() Function On New Server

Jan 12, 2007

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 0 Replies View Related

Configure Webserver So That The Php Scripts To Be Able To Use The Mail() Function

Mar 12, 2009

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 2 Replies View Related

Plesk 12.x / Windows :: PHP Mail Function Not Work

Aug 13, 2014

PHP Mail Function not work and i cant fix it :/

i dont know whats the problem, but php.ini is right.

i also test email-function here: [URL]

View 2 Replies View Related

Plesk 12.x / Linux :: From Header In Php Mail Function Being Overwritten

Feb 23, 2015

I'm trying to send email from a domain using code like this:

$email = "me@domain.com";
$from = "From: $email
";
mail($receiver, $subject, $message, $from);

But i see in the mail logs that from address is being overwritten using the default user for the domain. Is there anyway to configure plesk or postfix to respect those headers?

View 5 Replies View Related

Plesk 11.x / Linux :: Php Mail Function Don't Work And No Configuration Menu?

Mar 9, 2014

I'm experiencing some issue with the php function mail(). No mails can get out and no errors from php. Is there any menu where we can parameter this php function ? Do I need to check up some services ?

CentOS 6.5 with Plesk 11.5
Fresh install

View 15 Replies View Related

Plesk 12.x / Linux :: Outgoing Mail Control For Subdomains Does Not Function

Apr 7, 2015

Plesk 12.0.18 Update #38
Cloudlinux 6.6

Outgoing mail control functions properly for domains, but it does not count or limit subdomains.

For example, if you have a subdomain like:
sub.domain.tld

And an email account on that subdomain, like:
info@sub.domain.tld

Then outgoing mail limits are not applied to that subscription/domain/mail account. You are able to send more emails than the limit.

Also, if you go to:
-> Tools and Settings
-> Outgoing mail control

And try to see statistics for that subscription/domain/mail account, it shows that there are not sent emails, even if you have sent emails. Of course I checked it many hours after sending, or even the next days.

View 2 Replies View Related

Can A 256 MB VPS Handle My Traffic

Apr 1, 2008

I've only ever had a shared hosting account with Hostgator, plus a few freebie hosts. However, I'm now pulling some heavy traffic and I'm concerned that Hostgator is going to suspend me soon.

My traffic on Saturday for example was ~2600 unique visitors and ~5000 page views. All of this traffic was from WordPress blogs and a small SMF forum. I've since converted one of the blogs to a static site to limit my CPU usage and I've setup caching for my other WordPress blogs. Advice I've heard on the Hostgator forums is that 7000 page views per day for a database driven site is around the time you should be upgrading and based on my traffic from Saturday (which admittedly was a bit of a spike) I could potentially be receiving 150,000 page views/month, so about 20x the point at which they recommend upgrading at.

Anyhows, in a nutshell I need to upgrade, or risk Hostgator throwing a tantrum at me ... but I don't have a lot of cash to pay for an upgrade Due to my lack of cashflow I've been considering moving to a VPS. The company which has interested me the most is HostV.com who offer a 256 MB (with 1000 MB 'burst' RAM) for only US$39.99 which seems quite reasonable to me.

They say that their 256 MB plan should be able to handle over 5000 page views per day for a WordPress run site, but I'm a little suspect. Do any of you know if this is a reasonable expectation from a 256 MB chunk of a virtual server? I have no idea and am always wary of believing the sales pitch of a random company across the other side of the world.

View 9 Replies View Related

Can The Server Handle It

Nov 26, 2007

Dedicated machine with 750GB HD x2, 16GB Ram, Dual Opteron 2212 Dual Core Processors, we are on a 100mbps burstable.

Im wondering how many vps i can load into this machine efficiently, any ideas on this?

View 7 Replies View Related

That Can Handle This Script

Oct 20, 2007

PHPAuction GPL Enhanced V2.51 Auction Software seems to be the perfect solution for my client, but the PHP requirements are very specific and the host we currently are using doesn't allow anyone to play with .htacess which is the usual workaround. Can anyone recommend a host that they know has the following setup?

Minimal server requirements are as follows:
- Apache web server
- PHP 4.0.6 or later (see below) with safe_mode=Off - register_globals=on - no open_basedir restriction
- MySQL Database - 3.0 or higher
- "Cookies" MUST be enabled on your computer!

Alternatively, does anyone know of any auction software that restricts sellers to only the admin?

View 2 Replies View Related

What Type Of Server To Handle

Mar 13, 2009

I have a client that asked me to educate myself about web hosting and make a recommendation to him about where he should be. He currently has a shared hosting server at Network Solutions and finds unexplained slow downs and disk corruption reports in his forums DB unacceptable.

I'm glad I found this site-lots of good info but nothing like throwing up some stats and seeing what people recommend. The client told me he wanted to move to a dedicated server but I'm thinking a VPS might do the trick. Especially if upgraded with dedicated Core as well as RAM such as wiredtree is offering.

Looking for a managed, Unix based server that in a typical month serves
100k unique visitors
230k page views
500Gb of downloads

But needs to be easily upgradeable to handle his expected traffic levels in the next year of monthly visits in the order of:
250k unique visitors
600k page views
1.1Tb of throughput
As far as features:

*Currently they use about 15 gigs of disk space. Some of that is inefficient disk management but the bulk is them supporting previous software releases.

*needs to be fully managed

*US datacenter with all the features you guys would expect to have as far as backbone access, security, power backups, etc..

*Backups by provider. Let's say 5 gigs worth since the old software versions don't really need to be backed up.(I'll recommend his own backups as well)

*Either plesk or cpanel

*15 minute hardware SLA is what the client is asking for but i'd like to present some comparisons to 1 hour SLA companies to see how much he'd save.

And finally, i tried to search for the answer to this but the keywords kept bringing up lots of hits without good info. The client sells software so the bandwidth needed is pretty consistent until they release a new version. Then it skyrockets to the point they may have 1500 people trying to download a 50Meg file simultaneously. What is the right way to handle that? Use a CDN or negotiate with the hosting provider to provide burstable bandwidth as needed. As a side note while looking at many offerings I was most surprised that bandwidth seems to sold in large chunks with overage costs hidden.

View 8 Replies View Related

How Many Sites Can Q6600 Handle

May 10, 2009

i will upgrade my server to:

Core2Quad Q6600
8 GB Ram
1000 GB HDD
1000 GB 2nd HDD
cpanel

how many sites can this server will handle?

if the sites will be small forums?

View 10 Replies View Related

What Kind Of Website Can 1GB Ram Handle

Oct 19, 2009

I'm not quite sure how much of Ram I need for my vps, But I'm going to get
1GB Vps from wiredtree.com

Anyone can tell me what kind of website I would be able to run on such an VPS? If it's just wordpress driven website...

Maybe anyone can share how much traffic your site have and how much ram it's using?

At the moment I have website with about 40k uniques/day and ~100k pageloads per day hosted on shared hosting but they have gave me 3days to find another hosting because they say I use to much of their traffic...

View 8 Replies View Related

VPS That Can Handle HD Video Smoothly

Oct 16, 2009

We are putting together a Video Blog to feature 50 3 minute videos that will be H.264 high definition (720 by 1280)

We want to know what configuration would be best.

We expect no more than 500 visitors a day to this site.

Even Vimeo is stuttery and we would like to avoid that.

View 7 Replies View Related

How To Handle DNS With A Dedicated Server?

Oct 10, 2008

I use zoneedit to point my domain to the server, and a few times their servers don't respond for a few minutes that causes my site to be unaccessible. I was wondering if there was any better way of doing this? Please give me suggestions on what to do to have proper dns.

View 5 Replies View Related

Apache 2.2 Can't Handle Vhosts

Mar 25, 2007

Either Apache 2.2 can't handle vhosts or I don't get apache anymore.

Have a look at the conf files (I stripped out all the commented lines):
httpd.conf

Code:
ServerRoot "/usr/local/apache2"

Listen 80

LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule ident_module modules/mod_ident.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php5_module modules/libphp5.so

<IfModule !mpm_netware_module>
User apache
Group apache
</IfModule>

ServerAdmin you@example.com

DocumentRoot "/usr/local/apache2/htdocs"

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

<Directory "/usr/local/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

<FilesMatch "^.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

ErrorLog logs/error_log

LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common

<IfModule logio_module>
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
</IfModule>

CustomLog logs/access_log common
</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
</IfModule>

Include conf/extra/httpd-vhosts.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
httpd-vhosts.conf

Code:
NameVirtualHost *:80

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin cs@reflexnetworks.net
DocumentRoot /home/reflextest/public_html
<Directory "/home/reflextest/public_html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ServerName test.reflexnetworks.net
ServerAlias www.test.reflexnetworks.net
ErrorLog logs/test.reflexnetworks.net-error_log
CustomLog logs/test.reflexnetworks.net-access_log common
</VirtualHost>
( xxx.xxx.xxx.xxx is the correct IP). The <Directory "/home/reflextest/public_html">...</Directory> part does not make any difference

Permissions:
Code:
ls -lR reflextest/
reflextest/:
total 4
drwxr-xr-x 2 reflextest apache 4096 Mar 25 04:50 public_html

reflextest/public_html:
total 4
-rw-r--r-- 1 reflextest apache 22 Mar 25 04:50 index.html
This is a source compile of apache. See for yourself: [url]

View 4 Replies View Related

Best Way To Handle Transfer Of Hosting

Nov 7, 2007

We are switching our servers, and I am trying to have the smallest amount of downtime possible. What is the best way to go from one host to another.

Should I have the old and new DNS info entered at the site registrar until the new site has been resolved?

View 10 Replies View Related

Can JaguarPC Pc Handle This Load

Jul 24, 2007

my site uses over 15.5 TB every month

mostly because i mirror a lot of open-source projects

but i want to know can i get a unmetered VPS account at JPC and not be suspened for abusing resources

because the site says 1mbps-3mbps unmetered?

View 14 Replies View Related

Can A VPS Under 30$ Can Handle The Digg Effect

Sep 30, 2007

My site will be powered by drupal and I want to know if a vps under $30 can handle instant and huge traffic that comes from digg

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved