[Typo3-german] Encoding-Fehler

Sebastian Widmann bruce at web.de
Thu Aug 18 13:22:25 CEST 2005


Hi!

Wenn ich mit der Extension td_newsletter Mails verschicke, dann kommt 
sowas an:

Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: BASE64

Qml0dGUga2xpY2tlbiBTaWUgZGllc2VuIExpbms6ICBodHRwOi8vdHNwLnNld2lkLmRlL2luZGV4

LnBocD9pZD0xMDMmaD0zYWM3ODc2MDkyMDM5ODk3NDlmZDkzNWFlNTZlZGE2ZSAgdW0gSWhyZSBF

LU1haWwgQWRyZXNzZSB6dSBiZXN0w6R0aWdlbiBvZGVyIHp1IGzDtnNjaGVuLiBTb2xsdGVuIFNp

ZSBkaWVzZSBFLU1haWwgbmljaHQgZXJ3YXJ0ZXQgaGFiZW4sIGlyZ25vcmllcmVuIFNpZSBzaWUg

Yml0dGUu





Der entsprechende Quelltext sieht so aus:

function updateDBSendEmail($email, $update=0)
	{
	   $now = time();
		 /*
		 *  If it is a new user or someone who forgot to validate toDo=0
		 *  Else he wants to unsubscribe, so toDo=2
		 */
		 if($update == 0 || $update== 1)
		 { $toDo = 0; }
		 else
		 { $toDo = 2; }

		 $insertFields = array(
				'pid' => intval($GLOBALS["TSFE"]->id),
				'email' => $email,
				'tstamp' => $now,
				'tx_tdnewsletter_newsletter' => $toDo
			);

		  //If this is a new entry
			if($update==0)
			{ $GLOBALS['TYPO3_DB']->exec_INSERTquery('tt_address',$insertFields); }

			//If the user wants to have the email again
			else
			{ 
$GLOBALS['TYPO3_DB']->exec_UPDATEquery('tt_address','email="'.$email.'"',$insertFields); 
}

			//send email
			$link = 
"http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?id=".intval($GLOBALS["TSFE"]->id)."&h=".md5($now.",".$email);
			$plain_message = $this->pi_getLL("email_validate_part1")." ".$link." 
".$this->pi_getLL("email_validate_part2");
			$headers=array();
		     if ($this->conf["orderEmail_from"])	{$headers[]="FROM: 
".$this->conf["orderEmail_fromName"]." 
<".$this->conf["orderEmail_from"].">";}

			$GLOBALS["TSFE"]->plainMailEncoded($email, 
htmlspecialchars($this->pi_getLL("email_validate_subject")), 
$plain_message, implode($headers,chr(10)));

			$content = htmlspecialchars($this->pi_getLL("email_send"));
			return $content;
	}


Weiß jemand, was ich da ändern muss?

Gruß
Sebastian



More information about the TYPO3-german mailing list