News:

LVCS.NET offers low cost domain registration services.

Main Menu

PHP mail() problems

Started by opmail, March 20, 2006, 12:53:56 PM

Previous topic - Next topic

webzone (archived)

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).

opmail

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.. :)

Ben

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.
--Ben
Ben@freepgs.com

webzone (archived)

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.

c

Today Perl is deactivated and instead of executing the scripts I see their source on the screen!

webzone (archived)

#20
QuoteToday Perl is deactivated and instead of executing the scripts I see their source on the screen!

Perl was deactivated a few days ago.

bookish

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 ?

Ben

"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.
--Ben
Ben@freepgs.com

bookish

Thanks Ben! The script I'm trying out uses PHP.

sixthcrusifix

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
Visite me website at http://www.sixthcrusifix.com

possum

Has the mail function been disabled ??

webzone (archived)

QuoteHas the mail function been disabled ??

Not on the main server (phpinfo). I don't know about Plesk.

possum


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


protegechris

It's disabled right now, has been since last night at least. If you're able to use SMTP, that still works for me.

webzone (archived)

It might be disabled on Plesk, but on the Freepgs server it works fine.