473,473 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problems with the php-mail()-command ...

Hello

I have a small Problem by using the mail() command from php. To surround
the problem, I do the following:

1. I go to the server and send me a mail using the linux-mail-Command.

In This mail I'll never find the two parameters "Content-Type" and
"Content-Transfer-encoding"

2. I start a smal php-Script, which sends me a mail. The different
variables are defined by:

$strFrom = '"Bestellsystem" <fr************@devsup.de>';
$strReturnhtml = 'http://www.grieser-verlag.com/';
$strEmpfaenger = "fr************@devsup.de";
$strMailtext = "Special German Characters: äöü ÄÖÜ ß\n";
$strMailtext .= "Hewbrew Characters: אבגדהוזחטיךכלםמ\n";
$strMailtext .= "Greek Characters : αβγδεζηθικλμνξο\n";
if(get_magic_quotes_gpc()) {
$strMailtext = stripslashes($strMailtext);
};
$strSubject = 'Test des Mail-Befehls (ohne Content-Type)';

2a. and then I start the mail()-command:
mail($strEmpfaenger, $strSubject, $strMailtext, "From: $strFrom");

In this second Mail I will find the two parameters:
Content-Type: text/plain: charset=UTF-8
Content-Transfer-encoding: BASE64

2b. and then I use the command:
$strSubject = 'Test des Mail-Befehls (mit Content-Type)';
mail($strEmpfaenger, $strSubject, $strMailtext, "From:
$strFrom\r\nContent-Type: text/plain;
charset=utf-8\r\nContent-Transfer-encoding: quoted-printable\r\n");

In this third Mail I will find the FOUR parameters:
Content-Type: text/plain: charset=utf-8
Content-Transfer-encoding: quoted-printable
Content-Type: text/plain: charset=UTF-8
Content-Transfer-encoding: BASE64

I have checked the php.ini file, the Mail.php, PEAR.php, pearcmd.php and
the System.php and I do not have any idea about the reason for those
additional parameters.

Additional php-Information (Version 4.3.9): http://devsup.de/phpInfo.php
Version of Mail.php: // $Id: Mail.php,v 1.6 2003/06/26 07:05:36 jon Exp $

Does someone have any idea to find the flag or the file/module which is
responsible for those parameters to switch them off?

Thank you very much for your interest and for the help.

Best regards
Wolfgang
Jul 17 '05 #1
0 2754

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

Similar topics

0
by: Craig Reynolds | last post by:
Hi, I'm having problems compiling php 4.3.4 on HPUX 11.0 After configure completes successfully, I type make and the following happens: $ make gcc -Iext/ctype/...
4
by: Dan Weeb | last post by:
Hi All, I have struggled through this far with help from many of you so thanks. I am stuck again. I am really new to this so don't be harsh :-) There are a few problems. You can run the script...
38
by: Tim Tyler | last post by:
Here's what this morning's security advisory read here: ``In the last 3 months we have noticed an marked increase in the number of web-server attacks and successful compromise on our network....
0
by: phpnube | last post by:
I used this php package to install on my system... (i had problems with the isapi package from php so im back to the cgi portion of PHP php-cgi.exe) PHP 5.0.0 installer - 26 July 2004 (CGI...
0
by: Andrew | last post by:
Hi guys, Has anyone else had trouble with the latest releases of PHP in IIS (using the ISAPI module)? I updated our copies of PHP recently and very soon IIS became very unstable with the...
20
by: John | last post by:
I have a page that requests an index number from the user using a form. The submit then calls itself and a php lookup table determines the web page required and then does a jump. echo...
5
by: Frances | last post by:
a few days ago I installed XAMPP in my Windows 2000 machine, it completely messed my existing MySQL installation.. I've had it installed for over a year now (4.1) have never had any problems with...
3
by: Matthias Leopold | last post by:
hi i've got problems getting php4 scripts which use curl to work on RHEL4 (Nahant Update 4) and CentOS 4.4. when the script is accessed the browser "hangs", after a couple of minutes i'm...
6
by: fpcreator2000 | last post by:
Hello everyone. I'm having problems with a page I've created that is used to insert data into a database. It uploads two files into two distinct folder, and it takes the filenames and inserts...
5
by: dipperdan | last post by:
Hi, I'm trying to use sessions to create a login system to administer a website - add new info to database,etc but i'm running into some problems. The first page login.php seems to work okay, it...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
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...
0
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...
0
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 projectplanning, coding, testing,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.