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


ADVERTISEMENT

Plesk 12.x / Linux :: Return Path In Mail Header When Sending Email With PHP Script

Feb 18, 2015

When a PHP script is sending a mail, there is added an return path in mail header. How to change that mail address in return path?

We are using Postfix and CentOS 6.5

Plesk is setting the mail address of the owner of the hosting account. When changing the owners mail address in Plesk, the return path is still the same and is not updated... 

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

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 :: Prematurely Closed Connection While Reading Response Header From Upstream

Jun 25, 2015

I get "502 Bad Gateway" errors in browser and found this in logs:

- upstream prematurely closed connection while reading response header from upstream

- failed (111: Connection refused) while connecting to upstream

restarting Apache solves the problem temporarily.I tried tweaking both nginx and php-fpm config files without success.

View 9 Replies View Related

Plesk 12.x / Linux :: After Upgrade From 11.5 - Function Not Implemented

Jun 19, 2014

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?

View 1 Replies View Related

Plesk 11.x / Linux :: PHP Fatal Error - Call To Undefined Function

Jun 18, 2014

As per title, since few I have this when some php funcion is calling zlib_encode :

PHP Fatal error: Call to undefined function zlib_encode()

I saw that is was a know bug when there are some rewrite rules on .htacccess which is my case [URL] ....

I checked for json as well, and seem to be activated :

json
json support => enabled
json version => 1.2.1

View 1 Replies View Related

Plesk 12.x / Linux :: Call To Member Function GetDomainId On Non-object

Aug 21, 2014

'ERROR: Call to a member function getDomainId() on a non-object (Sites.php:104)'

View 6 Replies View Related

Plesk 12.x / Linux :: Sendmail (linked Function) Doesn't Work

Jul 2, 2014

since my Update up to plesk 12

at the moment none of my websites can send E-Mails via sendmail :-(

View 4 Replies View Related

Plesk 12.x / Linux :: Warning - Incorrect Operation Of Parse URL PHP Function

Jul 17, 2014

I have some problem with my parse_url after last update of Plesk Panel.I ran the test script on my server and on my local computer, and received the following result: Local computer:

HTML:
Array ( [path] => product_features.clear_list [query] => redirect_url=http://www.siteExample.com )
My server:

HTML:
Array ( [host] => product_features.clear_list?redirect_url=http [path] => //www.siteExample.com )
As you can see, the structure of the output data is not identical as it should be.

Test script that I used:

Code:
<?php
$test = 'product_features.clear_list?redirect_url=http://www.siteExample.com';
$test1 = parse_url($test);
print_r($test1);
?>

View 1 Replies View Related

Plesk 11.x / Linux :: Cannot Login After Upgrade - Exception Function Not Implemented

May 21, 2014

I have just upgraded linux VPS running ubuntu 10. I installed all of the latest plesk updates first and then went through the upgrade. There were no pre-upgrade warnings and message at the end said it was successful but i'm now getting the following error instead of the login page:

ERROR: Exception
Function not implemented

View 19 Replies View Related

Plesk 12.x / Linux :: Allow PHP5 Json Decode Function In Chrooted Environment

Mar 4, 2015

I'm Running Plesk 12 latest version. I've been partially followed that instructions to add php5 to a chrooted environment with success : [URL] .....

Code:
bash-4.3$ php --version
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

This is how i did it, as root user :

Code:
./chroot_update.sh --add /usr/lib/php5
mkdir /var/www/vhosts/chroot/usr/share
cp -a /usr/share/zoneinfo /var/www/vhosts/chroot/usr/share
php -i | grep extension_dir
# returns : /usr/lib/php5/20121212/

[Code] .....

View 2 Replies View Related

Plesk Automation :: Postfix CA Bundle File Under PPA - How To Edit Without Risk Of It Being Overwritten

Aug 19, 2013

I see in the maillogs a number of errors lots of different Certificate Authorities - and some I really did NOT expect to see here:

[root@web48002 admin]# grep ' certificate verification failed for' /usr/local/psa/var/log/maillog | wc -l
998
[root@web48002 admin]# grep ' certificate verification failed for' /usr/local/psa/var/log/maillog | head
Aug 19 00:04:45 web48002 postfix/smtp[28115]: certificate verification failed for inbound.hsaforamerica.com.netsolmail.net[206.188.198.64]:25: untrusted issuer /C=US/O=Equifax/OU=Equifax Secure Certificate Authority

[Code] ....

How/where do we edit our CA file under Postfix - and why is the standard one installed by PPA not including some of these VERY MAJOR CAs?!?

I would like instructions on how to edit this in a manner that it will not get overwritten by some PPA update or yum update.

View 3 Replies View Related

Html,CGi Mail Header

Apr 4, 2007

My server is running Red Hat Linux 9 , without PHP only Html and Cgi websites
are running on it.

Is there any Mail Header Patch for Html,CGi.
Some one is sending Spam email from my Server.

Apr 1 04:03:30 iris2 sendmail[15752]: l318soT3015742: to=<dedev@magna-tel.net>, ctladdr=<apache@hostname> (48/48), delay=00:08:35, xdelay=00:00:01, mailer=esmtp, pri=3000357, relay=magna-tel.net. [68.112.42.50], dsn=2.0.0, stat=Sent (4487747 message accepted for delivery)

I am unable to find that script or source which send email from my Server
because at SENDMAIL LOG it shows only sender address "apache@hostname".

Is there any MAIL HEADER PATCH Like PHP, so i will catch that Script or source.

View 0 Replies View Related

[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

View Mail Header Sent By Php Form In Windows

Oct 27, 2007

As stated on subject, how to do it? On Linux, I know I will need to compile php with a patch (for example using Choon's patch) to get it, but dont know how to do on Windows.

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







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