opmail
Non-Verified Account
Newbie
Karma: +0/-0
Offline
Posts: 12
Blog entries
( 0)
|
 |
« on: March 20, 2006, 07:53:56 AM » |
|
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???
|
|
|
Logged
|
|
|
|
Ben
FreePgs Tech Support
Technical Support
Sr. Member
   
Karma: +12/-0
Offline
Posts: 344
Blog entries
( 0)
|
 |
« Reply #1 on: March 20, 2006, 01:14:11 PM » |
|
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.
|
|
|
Logged
|
|
|
|
FreePgs.com Forum
|
 |
« Reply #1 on: March 20, 2006, 01:14:11 PM » |
|
|
|
|
Logged
|
|
|
|
opmail
Non-Verified Account
Newbie
Karma: +0/-0
Offline
Posts: 12
Blog entries
( 0)
|
 |
« Reply #2 on: March 20, 2006, 02:27:48 PM » |
|
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... 
|
|
|
Logged
|
|
|
|
c
Non-Verified Account
Newbie
Karma: +0/-0
Offline
Posts: 7
Blog entries
( 0)
|
 |
« Reply #3 on: March 25, 2006, 01:39:47 PM » |
|
Email is not working for me either, I am not using Plesk.
|
|
|
Logged
|
|
|
|
FreePgs.com Forum
|
 |
« Reply #3 on: March 25, 2006, 01:39:47 PM » |
|
|
|
|
Logged
|
|
|
|
webzone (archived)
Official Technical Support
Verified Account
Hero Member
Karma: +0/-0
Offline
Posts: 508
Archived Account
Blog entries
( 0)
|
 |
« Reply #4 on: March 25, 2006, 03:13:17 PM » |
|
Email is not working for me either, I am not using Plesk. Please provide more information. mail() is working fine for me.
|
|
|
Logged
|
|
|
|
c
Non-Verified Account
Newbie
Karma: +0/-0
Offline
Posts: 7
Blog entries
( 0)
|
 |
« Reply #5 on: March 26, 2006, 03:13:22 PM » |
|
I'm using Perl. It was working some time ago.
|
|
|
Logged
|
|
|
|
webzone (archived)
Official Technical Support
Verified Account
Hero Member
Karma: +0/-0
Offline
Posts: 508
Archived Account
Blog entries
( 0)
|
 |
« Reply #6 on: March 26, 2006, 03:36:28 PM » |
|
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.
|
|
|
Logged
|
|
|
|
c
Non-Verified Account
Newbie
Karma: +0/-0
Offline
Posts: 7
Blog entries
( 0)
|
 |
« Reply #7 on: March 26, 2006, 08:01:53 PM » |
|
Obviously this was the problem. Are there going to be more changes and where can we read about them?
|
|
|
Logged
|
|
|
|
Ben
FreePgs Tech Support
Technical Support
Sr. Member
   
Karma: +12/-0
Offline
Posts: 344
Blog entries
( 0)
|
 |
« Reply #8 on: March 26, 2006, 08:17:00 PM » |
|
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.
|
|
|
Logged
|
|
|
|
dest
1337 hax0r
Verified Account
Full Member
Karma: +0/-0
Offline
Posts: 130
Yar
Blog entries
( 0)
|
 |
« Reply #9 on: March 26, 2006, 08:47:31 PM » |
|
So there's no way to control mail() on a per-user basis? Like enable it after a few months of being a member?
|
|
|
Logged
|
meh 
|
|
|
GP™
Technical Support
Hero Member
   
Karma: +16/-0
Offline
Posts: 874
Wondermous
Blog entries
( 0)
|
 |
« Reply #10 on: March 26, 2006, 09:04:19 PM » |
|
No, Not at this time, its a server wide setting.
|
|
|
Logged
|
|
|
|
webzone (archived)
Official Technical Support
Verified Account
Hero Member
Karma: +0/-0
Offline
Posts: 508
Archived Account
Blog entries
( 0)
|
 |
« Reply #11 on: March 26, 2006, 09:40:39 PM » |
|
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. That would be sad. Some people like me rely on this function.
|
|
|
Logged
|
|
|
|
c
Non-Verified Account
Newbie
Karma: +0/-0
Offline
Posts: 7
Blog entries
( 0)
|
 |
« Reply #12 on: March 26, 2006, 11:56:11 PM » |
|
Probably the old members can get the name of the new path each time it is changed by subscribing to a mailing list?
|
|
« Last Edit: March 27, 2006, 10:32:05 PM by c »
|
Logged
|
|
|
|
webzone (archived)
Official Technical Support
Verified Account
Hero Member
Karma: +0/-0
Offline
Posts: 508
Archived Account
Blog entries
( 0)
|
 |
« Reply #13 on: March 28, 2006, 12:20:49 AM » |
|
Probably 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).
|
|
|
Logged
|
|
|
|
opmail
Non-Verified Account
Newbie
Karma: +0/-0
Offline
Posts: 12
Blog entries
( 0)
|
 |
« Reply #14 on: March 29, 2006, 05:07:09 PM » |
|
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...  (
|
|
|
Logged
|
|
|
|
|