Original geschrieben von themonk
]Hab nun nach Zeien umbrüchen getrennt mit ...
]Hab nun nach Zeien umbrüchen getrennt mit ...
--========GMXBoundary253351105102357 ?
echo "From Address: ";
echo $fromaddr=sprintf("%s@%s",
$from[0]->mailbox,
$from[0]->host).
"<BR>";
echo "Personal : ".
$from[0]->personal.
"<br>";
echo "Adl : ".
$from[0]->adl.
"<br>";
echo "Mailbox : ".
$from[0]->mailbox.
"<br>";
echo "Host : ".
$from[0]->host.
"<br>";
echo "Subject : ".
$subject.
"<br>";
echo "Date : ".
$date.
"<br>";
echo "To Address : ".
$header->toaddress.
"<br><BR><BR>";
echo "From Address: ";
echo $fromaddr=sprintf("%s@%s",
$from[0]->mailbox,
$from[0]->host).
"<BR>";
echo "Personal : ".
$from[0]->personal.
"<br>";
echo "Adl : ".
$from[0]->adl.
"<br>";
echo "Mailbox : ".
$from[0]->mailbox.
"<br>";
echo "Host : ".
$from[0]->host.
"<br>";
echo "Subject : ".
$subject.
"<br>";
echo "Date : ".
$date.
"<br>";
echo "To Address : ".
$header->toaddress.
"<br><BR><BR>";
// Für das Subject
$pattern = "#Subject: (.+)\r\n#U";
preg_match($pattern, $header_der_mail, $matches);
echo '<pre>' . print_r($matches, true) . '</pre>';
function unfold(&$header)
{
$pattern = "#\r\n[\t ]+#";
$replace = " ";
$header = preg_replace($pattern, $replace, $header);
return true;
}
<?
include 'pop3.class.php';
$server = "localhost"; ## oder localhost:110/pop3 ???
$port = 110;
$user = "user";
$pass = "pw ";
$pop3 = POP3( $server, $port, $user, $pass );
if ( !$pop3error = $pop3->open() ) {
EDIT:
nochmal zu dem Beitrag von eben mit der Verbindung.
Muss das localhost sein oder das was ich bei Outlook auch für POP3 eingebe?
<?
include 'pop3.class.php';
$server = "mail.gmx.net";
$port = 110;
$user = "78999irgendwas";
$pass = "top_secre*g*";
$pop3 = POP3( $server, $port, $user, $pass );
if ( !$pop3error = $pop3->open() ) {
Comment