473,836 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mail function generates 500 internal server error

Hey,

I had a hard disc problem last week on my server. I replaced the disc and
copied al the files to the new hard disc, everything works fine again except
some php scripts that are using the mail() function. When executing these
scripts I get this error:
"500 Internal Server Error
The server encountered an internal error or misconfiguratio n and was unable
to complete your request.

Please contact the server administrator, we*******@mydom ain.com and inform
them of the time the error occurred, and anything you might have done that
may have caused the error.

More information about this error may be available in the server error log."
In my logs I find this:malformed header from script. Bad
header=/home/mydomain/dead.letter...: php-script

Does somebody know what the problem could be?

grt,

Lieven
May 12 '06
11 12319
Lieven wrote:
Lieven,

Did you try asking the authors of the PHP class? Not knowing what it does
(or even which class it is) makes it impossible to tell what's going on.


This script is just the normal phpmailer
(http://phpmailer.sourceforge.net/), there you can specify that you want to
use smtp like this:
$mailman = new PHPMailer();

$mailman->IsSMTP();

Using this tool, sending mails from our php scripts works, but it is
impossible to ask all our customers to change their php scripts.
Does a simple mail() command work? That would be the place to start if
you're asking in this group.

No, that is the whole problem. The mail function doesn't work anymore. After
a hard disk crash I copied the whole corrupt hard disk to a new disk,
everything else is working perfectly afterworths except php scripts that are
using the mail() function are getting the internal server error. I didn't
change anything to my configuration files or didn't update any application
on the server. Only raisonable explenation I have is that their must be some
kind of file corrupt after copying it to the new disk.

grt,

Lieven

--
============= =====
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@att global.net
============= =====



Well, it's always possible a file got corrupted. Especially since you copied
files from a corrupt hard disk.

At this point I agree with Rik - you need to reinstall at least sendmail, php
and apache for a start. You should be able to keep your configuration files
(after ensuring they aren't corrupt), but get the rest of the files installed
with fresh copies.

Otherwise you may be spending days trying to find this bug - and even when you
find it, you wouldn't know if you might have another (more serious) bug.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
May 16 '06 #11



Well, it's always possible a file got corrupted. Especially since you
copied files from a corrupt hard disk.

At this point I agree with Rik - you need to reinstall at least sendmail,
php and apache for a start. You should be able to keep your configuration
files (after ensuring they aren't corrupt), but get the rest of the files
installed with fresh copies.

Otherwise you may be spending days trying to find this bug - and even when
you find it, you wouldn't know if you might have another (more serious)
bug.

Ok I think this will be indeed the right solution. I will reinstalled it and
I hope it will be fixed afterwards. Thanks for the support!!

grt,

Lieven
May 18 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4902
by: Tanya | last post by:
Running a PHP mail script on Linux which has Exchange as the mail server. The script does not send mail to any internal email address but sends it to any other address outside its domain! Can somebody please help... Thanks Tanya www.bluent.co.in
5
11148
by: paul brown | last post by:
Hi, I have this website that contains an internal message system that allows users to send each other "email" messages. My client wants me to extend the system so that when a user receives an internal message, the system will send an actual email to the user's email address. here's the sample code: function notify_recipient()
1
2599
by: Raziel? | last post by:
Greetings, When Installing Visual Studio .NET the following error occurs: Internal Error 25300 I've tried setup in safemode and the same error occurs. The disk is brand new and clean.
7
2578
by: David Berry | last post by:
I'm trying to use a recordset inside of a function but I'm getting an "object required 'adoRS" error. At the top of the page I create my recordset, ex: dim strConnection, adoCN, adoRS, strSQL strConnection = <Connection> Set adoCN = server.CreateObject("ADODB.connection") Set adoRS = server.CreateObject("ADODB.recordset") adoCN.Open strConnection
8
2698
by: Drew | last post by:
I am trying to setup an error reporting system for our Intranet. We have a Windows 2000 Server with SQL Server and we have an Exchange Server 5.5. I need to set it up so I can use CDO mail. I have used CDO before, but have never set it up to work. I built a small little page with some CDO code on it, but I get an error when I try to run it. How can I set this up to send mail from the webserver to people in our facility? Thanks, Drew
8
5484
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
2
4441
by: GD | last post by:
Hi, An intranet application, with a SMTP mail function that lets users to attach files with emails by selecting files in their local computers (through a file browser component), works perfect on my local machine. However, after deployment to a server that has Windows 2003 Sever installed, the mail function is able to attach the file created by the application. However, when users attach some files selected from their local machines, it...
0
2416
by: howardr101 | last post by:
Hi, Have hunted around on the groups and can't find anything, hence. I've tried this against 2 mail servers (mailtraq and hmailserver) and it occus with both. The problems seems to be that when the SMTPClient attaches to the server and the server sends it greeting message, if anything other than +OK is received by the client it throws an exception and falls over.
5
3253
by: Gordon | last post by:
I'm working on a reset password script for my CMS, that will generate a random password and email it to a user when they request one. The problem I am having is that the mails being sent out are beign marked as spam by our internal mail system and never reaching users' inboxes. I've also discovered that Yahoo Mail considers these mails to be spam, but it moves them to the spam folder instead of just dropping them. I wrote a simple...
0
10834
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10584
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10248
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7782
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5645
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5817
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4446
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3108
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.