Hi there...
I have a Plesk account and I seem to be having some problems with using PHP mail()... :(
I have tested this using the below:
<?php
$to = "fred@tosomewhere.com";
$from = "admin@somewhereelse.com";
$subject = "test email";
$body = "test body";
$headers = "From:" . $from . "\r\n";
mail($to, $subject, $body, $headers);
echo("finished");
?>
substituting emails with valid addresses however I am not receiving them... Is their anything wrong with the Plesk server???
The Mail function has been disabled on the Plesk server for now because of a mail bombing. It -should- be re-enabled in a day or two.
Thanks for the respond... Can you please advise if mails pending will be sent? Or does php not work that way...
I use a php script to allow users to login to my site... The email is sent automatically.
Hope you can help... :)
Email is not working for me either, I am not using Plesk.
Quote from: cEmail is not working for me either, I am not using Plesk.
Please provide more information. mail() is working fine for me.
I'm using Perl. It was working some time ago.
It looks like the path to sendmail recently changed. This might be your problem (though I don't know, I never used Perl).
Try to use /usr/sbin/sendm2 to send e-mails.
Obviously this was the problem. Are there going to be more changes and where can we read about them?
This change was to stop spamming from the server, and admin never said it publically.
Either way, if theres much more problem with spamming, you won't have to worry at all because mail() will be a disabled function, like on the plesk server.
So there's no way to control mail() on a per-user basis? Like enable it after a few months of being a member?
No, Not at this time, its a server wide setting.
QuoteEither way, if theres much more problem with spamming, you won't have to worry at all because mail() will be a disabled function, like on the plesk server.
That would be sad. Some people like me rely on this function.
Probably the old members can get the name of the new path each time it is changed by subscribing to a mailing list?
QuoteProbably the old members can get the name of the new path each time it is changed by subscribing to a mailing list?
Would work for Perl users, but not for PHP users. In PHP, the sendmail path is hard-coded in the serverwide configuration file (php.ini).
Hi there again... I notice that php mail() has been disabled again... And it seems permenantly this time... :(
I am a php novice and am relying on a script purchased to create a kind of online store.
How can I be informed of when a visitor selects something?
Can someone please assist me here as I seem to be missing a whole heap of emails... :((
The mail function is still enabled on the main server.
It would probably be a good idea to move all your stuff anyway to the main server (because it is more flexible and up-to-date).
Thanks for the info... My domain '5tudio.co.uk' is on the Plesk server I believe (atleast I login to Plesk to administrate/ftp etc)...
What is the main server and how would I move my stuff there???
Do I need to request anything be changed with FreePGS???
THanks again for the help.. :)
The main server (http://system.freepgs.com) should be the one you registered with, and you would have been moved form there to Plesk by a request.
Just login to your Plesk account, download all the files and databases, and upload them to the main server. Then send a contact form request for your domains to be moved from Plesk to the main server, and for any Cron tasks you need moved. You -may- have to change nameservers on the domains for them to be moved, I'm not sure if Plesk uses the same nameservers as the main server does.
QuoteYou -may- have to change nameservers on the domains for them to be moved, I'm not sure if Plesk uses the same nameservers as the main server does
Plesk and the main server use different nameservers and IP addresses, so the change will be necessary.
Today Perl is deactivated and instead of executing the scripts I see their source on the screen!
QuoteToday Perl is deactivated and instead of executing the scripts I see their source on the screen!
Perl was deactivated a few days ago. (http://forum.freepgs.com/?topic=998.msg5003#msg5003)
I have been testing a FormMail script on my PC using the WAMP5 server:
http://www.wampserver.com/en/
http://www.stadtaus.com/en/php_scripts/formmail_script/
I need to set up the referring server details to use it on FreePgs:
$referring_server = 'www.example.com, example.com, 192.0.34.166';
For a FreePgs account is the IP address 64.193.110.130 or 64.193.110.132 ?
"64.193.110.130" should be the working one. The other one leads to an unknown domain error for me.
As webzone said, perl was deactivated, if you haven't already just request it be re-enabled on your account.
Thanks Ben! The script I'm trying out uses PHP.
I have a suggestion:
Instead of:
mail($to, $subject, $body, $headers);
echo("finished");
do this:
if( mail($to, $subject, $body, $headers) ){
echo("finished");
}else{
echo("ERROR IN SENDING EMAIL");
}
That way you will know when there's a problem with the mail function, instead of just always getting a generic success message, you'll get an error message for failure and a success message for success :D
Has the mail function been disabled ??
QuoteHas the mail function been disabled ??
Not on the main server (phpinfo (http://freepgs.com/webzone/fpgs/phpinfo)). I don't know about Plesk.
Configuration: ANJEL 0.6.1- (Joomla! )
sendmail path /usr/sbin/sendm2
xxxx@xxxx.com-> Message could not be sent.
Mailer error: Language string failed to load: execute/usr/sbin/sendm2
or
xxxx@xxxx.com-> Message could not be sent.
Mailer error: Language string failed to load: execute/usr/sbin/sendmail
It's disabled right now, has been since last night at least. If you're able to use SMTP, that still works for me.
It might be disabled on Plesk, but on the Freepgs server it works fine.