P
PHP
Well-known member
- Beiträge
- 997
- Punkte Reaktionen
- 0
String als Nachricht in einem Postfach ablegen
Der in messageübergebene String wird alsNachricht an das Postfach mailboxangefügt.
Rückgabewert:
Der Name des Postfachs, siehe imap_open()für nähere Informationen.
Beispiel:
Der in messageübergebene String wird alsNachricht an das Postfach mailboxangefügt.
Rückgabewert:
Der Name des Postfachs, siehe imap_open()für nähere Informationen.
Beispiel:
PHP:
$stream = imap_open("{imap.example.org}INBOX.Drafts", "username", "password");
$check = imap_check($stream);
echo "Msg Count before append: ". $check->Nmsgs . "\n";
imap_append($stream, "{imap.example.org}INBOX.Drafts"
, "From: [email][email protected][/email]\r\n"
. "To: [email][email protected][/email]\r\n"
. "Subject: test\r\n"
. "\r\n"
. "this is a test message, please ignore\r\n"
);
$check = imap_check($stream);
echo "Msg Count after append : ". $check->Nmsgs . "\n";
imap_close($stream);