php.de

Zurück   php.de > Webentwicklung > PHP-Fortgeschrittene

PHP-Fortgeschrittene Arbeiten mit PHP ohne Einschränkungen

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 09.02.2005, 17:27  
Gast
 
Beiträge: n/a
Standard Formatprobleme mit PHPMailer

Ich möchte via PHPMailer ein Email im txt - format verschicken und krieg das einfach nicht hin.

$mail->isHTML(0);
$mail->AltBody = $Jobanfrage;
$mail->Body = $Jobanfrage;
$mail->AddAddress($Emailadres);
$mail->AddBCC($_SESSION['FMailadrCont']);
$mail->isHTML(0);
if(!$mail->Send())
$_SESSION['VerwMessageText'] = "Fehler";
Der Versand funktioniert und auf auf AltBody kommts richtig raus mit allen links etc. im txt - format (habs mit gmx.ch getestet).

Er erkennt das Email aber einfach nicht als txt - mail sondern sendet es immer als html-Email was ich aber aus Sicherheitsgründen nicht möchte.

der Befehl isHTML bewirkt nur, dass er alles ohne Formatierung als HTML-Mail verschickt (links auf URL und Emailadresse werden nur als text dargestellt). das möchte ich aber nicht.

Frage: Was muss ich machen, dass das Email im txt - format (mit allen txt formatierungen) verschickt wird.

Versand erfolgt mittels smtp unter Exchange2003 (sollte aber keinen Einfluss haben).

hier noch die Headerinfos
Microsoft Mail Internet Headers Version 2.0
Received: from www.findjob.ch ([192.168.100.203]) by server3.itjob.ch with Microsoft SMTPSVC(5.0.2195.6713);
Wed, 9 Feb 2005 17:03:47 +0100
Date: Wed, 9 Feb 2005 17:03:47 +0100
Return-Path: jhn@itjob.ch
To: mathias6@gmx.ch
From: Jeannette Nilitschka <jhn@itjob.ch>
Subject: Jobanfrage
Message-ID: <1d911025f98005dcdaa01f755edae86e@www.findjob.ch >
X-Priority: 3
X-Mailer: PHPMailer [version 1.72]
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_1d911025f98005dcdaa01f755edae86e"
X-OriginalArrivalTime: 09 Feb 2005 16:03:47.0875 (UTC) FILETIME=[F0583730:01C50EC0]

--b1_1d911025f98005dcdaa01f755edae86e
Content-Type: text/plain; charset = "iso-8859-1"
Content-Transfer-Encoding: 8bit

--b1_1d911025f98005dcdaa01f755edae86e
Content-Type: text/html; charset = "iso-8859-1"
Content-Transfer-Encoding: 8bit


--b1_1d911025f98005dcdaa01f755edae86e--
  Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 09.02.2005, 17:41  
Gast
 
Beiträge: n/a
Standard

$mail->isHTML(0); kannst du dir sparen, per Default wird eine Textmail verschickt. Außerdem solltest du $mail->AltBody = $Jobanfrage; weglassen

Gruß
phpfan
  Mit Zitat antworten
Alt 09.02.2005, 17:46  
Gast
 
Beiträge: n/a
Standard

Zitat:
Zitat von phpfan
$mail->isHTML(0); kannst du dir sparen, per Default wird eine Textmail verschickt. Außerdem solltest du $mail->AltBody = $Jobanfrage; weglassen

Gruß
phpfan
tja .. so einfach ist das.
Vielen Dank für den Tipp. Es funktioniert wirklich und ist nachträglich betrachtet ja auch logisch

Vielen dank.

  Mit Zitat antworten
Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
PHPMailer Problem ochsi PHP Tipps 2008 7 08.07.2008 10:34
phpmailer -> body mit " " Soese PHP Tipps 2008 13 07.11.2007 10:56
phpmailer & Autenfizierung von Postausgansserver Klaus PHP Tipps 2006 3 25.09.2006 14:57
phpmailer + 2 verschiedene E-Mails Sebja PHP-Fortgeschrittene 3 25.06.2006 21:18
phpmailer: Bei smtpf html-Formatierung weg... PHP Tipps 2006 31 11.02.2006 15:43
[Erledigt] wieder ein Problem bei phpmailer und smtp PHP Tipps 2006 24 07.02.2006 01:07
Probleme mit PHPMailer bei mehreren Email-Adressen... PHP Tipps 2006 5 03.02.2006 09:30
PHPMailer findet eigene Variable net seejay PHP Tipps 2007 6 04.01.2006 12:55
PHPMailer mailt nicht Smiley PHP Tipps 2007 4 06.12.2005 16:33
phpmailer Fehler bei den Adressen Cyberbob_at_tot PHP Tipps 2007 3 30.11.2005 14:40
PHPMailer - Mail als Text PHP Tipps 2007 3 19.11.2005 21:39
phpmailer an mehrere Adressen gleichzeitig Sonja PHP Tipps 2007 12 09.11.2005 14:06
phpmailer an mehrere Adressen gleichzeitig Sonja PHP Tipps 2007 4 09.11.2005 12:48
phpmailer: Problem mit Pfad PHP Tipps 2005 4 10.02.2005 15:13
umlaute im phpmailer PHP Tipps 2005 3 26.01.2005 15:07

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
phpmailer ishtml, phpmailer altbody, phpmailer formatieren, phpmailer formatierung, http://www.php.de/php-fortgeschrittene/17563-erledigt-formatprobleme-mit-phpmailer.html, phpmailer message-id, phpmailer mime-version, phpmailer priority, phpmailer $mail->addaddress, phpmailer x-priority, phpmailer content-type, <ishtml>1</ishtml>, phpmailer textmail formatieren, \phpmailer\ mailer body, ishtml, $mail->ishtml, phpmailer $mail->contenttype, phpmailer tabelle, phpmailer tabelle textmail, phpmailer body formatieren

Alle Zeitangaben in WEZ +2. Es ist jetzt 20:18 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.