473,782 Members | 2,507 Online
Bytes | Software Development & Data Engineering Community
+ 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_qu otes_gpc()) {
$strMailtext = stripslashes($s trMailtext);
};
$strSubject = 'Test des Mail-Befehls (ohne Content-Type)';

2a. and then I start the mail()-command:
mail($strEmpfae nger, $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($strEmpfae nger, $strSubject, $strMailtext, "From:
$strFrom\r\nCon tent-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 2779

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

Similar topics

0
1465
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/ -I/staff/cyp/creyn003/src/WWW/php-4.3.4/ext/ctype/ -DPHP_ATOM_INC
4
2405
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 here http://www.pbrown.com/research/test1.php to see the formatting issues Formatting Issues
38
3227
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. These are mostly PHP-script exploits and are giving hackers easy shell access to virtual servers, as mentioned in the PHP Security Advisory in the News section of the control centre. We really cannot do much about these network attacks other than to...
0
1898
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 only, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included It works fine... as the test page outputs the...
0
1347
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 websites (both php4 and 5) not responding and even FTP not working. Restarting IIS would get them back temporarily but they'd fail soon afterwards.
20
1703
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 "<script>window.location.href='$a'</script>"; Details of the page are passed in the address line and pulled off with POST. All works fine no problems, However if the user hits the back button the jump is made again and
5
5335
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 it whatsoever (I connect to it from Tomcat and from stand-alone Java classes), now since I installed XAMPP I cannot connect to it at all, cannot start service... I uninstalled XAMPP completely, and my MySQL server still doesn't work.. so why...
3
3543
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 prompted to save the php-file, obviously nothing is executed. what i've checked: ..) curl in php works with a selfcompiled php5 binary executed via cgi on the same server
6
2179
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 them into a MYSQL database along with other product information. Here is the entire .php file. I list it because the errors are not showing at all, and I need a fresh pair of eyes to look at it. Any answers, critisims (constructive), or other talk...
5
1551
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 authenticates the user then takes them to the next page update_db.php but when i get to this page, it seems all the session data is lost :icon_conf login.php <?php session_start(); // we must never forget to start the session $errorMessage =...
0
9641
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10313
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
10080
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
8968
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, and deploymentwithout 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
7494
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
5378
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
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

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.