Plesk 12.x / Windows :: PHP Mail Function Not Work
Aug 13, 2014PHP 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]
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]
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
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";
}
?>
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 Relatedsince my Update up to plesk 12
at the moment none of my websites can send E-Mails via sendmail :-(
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?
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.
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.
FTPS is not working after upgrade from plesk 11. On plesk 11 windows and linux worked fine, after upgrade my windows server, it stopped working.
Code:
PS C:Windowssystem32> & "C:Program Files (x86)ParallelsPleskadmininpmm-ras.exe" --check-repository --dump-storage=ftps://****:****@***.***.***.***:21 --debug --verbose
[2014-11-11 21:16:12.981| 4688] INFO: pmm-ras started : "C:Program Files (x86)ParallelsPleskadmininpmm-ras.exe" --check-repository "--dump-storage=ftps://****:****@***.***.***.***:21" --debug --verbose
[2014-11-11 21:16:12.997| 4688] INFO: Repository 'ftps://***.***.***.***:21': Initializing...
[code]....
How to enable subdomain? I do not work for subdomains SSL...
View 6 Replies View RelatedI tried to use the software x2engine, but the software seems not to work.Furtheremore I tried the following softwares:
-webzash
-frontaccounting
-sql ledger
the attached screenshots appear when I load the pages! I used to just rent a webspace from a hoster and have my domains there, but now I decided to move to a VPS Server but as you see I can not get this stuff to work!
working are the softwares:
-webtrees
-wordpress
And how do I import Database exports from phpmyadmin?
I installed wordpress on a website space of my customer using the plesk install-wordpress function.
I bought a wordpress template to templatemonster.com .
I followed instructions to install it [URL] .....
After the cherryframework upload, when I click on "activate", the server returns a 500 error.
I contacted the templatemonster.com technical support, and they say that it is a plesk issue ( [URL]
My download button doesn't work in File Manager.
View 2 Replies View RelatedWe can no longer create a working subscription
Microsoft Windows Server 2012 R2
12.0.18 Update #26
After the creation of a subscription, DNS does not work properly.
The last successful subcription was created Sept 26, 2014.
I thought something ontoward had happened at first so attempted to delete the subscription and re-create.
On attempting to delete the subscription the following error is given
Error: Some of the selected subscriptions were not removed.
Unable to remove domain: Error during domain.com removeZone: dnsmng failed: Unknown error 0x80131509 (COM Interop Error 80131509, Description: System.InvalidOperationException: Operation is not valid due to the current state of the object. at System.Management.ManagementObject.Delete(DeleteOptions options) at System.Management.ManagementObject.Delete() at WMIMsDNS.Provider.DeleteRecordsByType(String zone, String type) at WMIMsDNS.Provider.DeleteZone(String zone, UInt32& serial)) at removeZone ZoneName = 'domain.com'Click to expand...
I am wondering whether client SSL certificates work for mail as well as their website?
Can it work over SNI or by dedicated IP or both? Does Postfix even have SNI support...
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.
I have upgrade from 11.0 to 11.5 three days ago and yesterday then from 11.5 to 12 due to the need of the outgoing mail control limit feature... but that ist not working.
I have enabled the feature and set a limit for one emailadress to two mails per hour. i have sent definitely more then 3 test mails via this email address but nothing happens.. and when i look into the statistics screen - this email address has sent 0 mails in the last 12 hours - which is definitely wrong. Seems the piece in the middle which counts mails etc is not working... how does the outgoing control limit works? is there some special configuration needed after an upgrade etc?
Good work on Version 12!
Plesk 12.0.18 on CentOS 6.5 using Postfix...i have configured outgoing mail control to have a limit on a domain. I have removed all entries from the server wide white list.This setting - Allow scripts and users to use Sendmail is unchecked.However I can send any number of messages using PHP's mail() command from a PHP script on the domain.I see this in the maillog:Error during 'limit-out' handler...But the email is sent and no limit is applied.
View 7 Replies View RelatedI 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 RelatedI 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
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
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?
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..
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.
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
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?
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.
Best platform for IMAP mail (Cpanel, Plesk Linux or Plesk Windows)
I need to setup 5 email accounts on my domain, each will use IMAP and store messages on server, so total space taken by each account will be 2-5 GB.
I have decided to go with eurovps.com as I'm close to them and ping is fast.
What is the best solution for IMAP and large email accounts: Linux Cpanel, Linux Plesk or Windows Plesk?
Each account will be accessed by 2 people differently by Thunderbird and occasionally by webmail, so nice webmail is a plus.
I am getting the "Function not implemented" error from /var/log/plesk/panel.log I have tried reading this article but it seems to only apply to Ubuntu and I am running CentOS 6 x64
How can I get past this error?