FreePgs.com Forum
February 20, 2017, 01:15:59 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Click Here for Toll-Free Service for your business starting at $2.00 per month and 4.5 cents per minute
 
   Home   Help Search Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: PHP mail() problems  (Read 14599 times)
opmail
Non-Verified Account
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 12

Blog entries (0)

View Profile
« 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()...  Sad

I have tested this using the below:

Code:
<?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 Offline

Posts: 344

Blog entries (0)

View Profile WWW
« 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 Offline

Posts: 12

Blog entries (0)

View Profile
« 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...  Smiley
Logged
c
Non-Verified Account
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7

Blog entries (0)

View Profile
« 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 Offline

Posts: 508

Archived Account

Blog entries (0)

View Profile
« Reply #4 on: March 25, 2006, 03:13:17 PM »

Quote from: c
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 Offline

Posts: 7

Blog entries (0)

View Profile
« 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 Offline

Posts: 508

Archived Account

Blog entries (0)

View Profile
« 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 Offline

Posts: 7

Blog entries (0)

View Profile
« 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 Offline

Posts: 344

Blog entries (0)

View Profile WWW
« 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 Offline

Posts: 130


Yar

Blog entries (0)

View Profile
« 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 Tongue
GP™
Technical Support
Hero Member
*****

Karma: +16/-0
Offline Offline

Posts: 874


Wondermous

Blog entries (0)

View Profile WWW
« 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 Offline

Posts: 508

Archived Account

Blog entries (0)

View Profile
« Reply #11 on: March 26, 2006, 09:40:39 PM »

Quote
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 Offline

Posts: 7

Blog entries (0)

View Profile
« 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 Offline

Posts: 508

Archived Account

Blog entries (0)

View Profile
« Reply #13 on: March 28, 2006, 12:20:49 AM »

Quote
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 Offline

Posts: 12

Blog entries (0)

View Profile
« 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... Sad
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... Sad(
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!