Autor Zpráva
4li
Profil
Zdravim.

Z e-mailu, ktory automaticky pride ak e-mailova adresa prijimatela neexistuje potrebujem ziskat e-mailovu adresu na ktoru bola zaslany povodny e-mail.
http://php.net/manual/en/book.imap.php

Pozadovana adresa sa v hlavicke nenachadza. Nasiel som ju len v tele spravy, ktore vyzera takto, ale neviem akym sposobom ju pridelit ako hodnotu k premennej. Jedna sa o "fdsdfdsfdasfdhkdfhdss@hotmail.com".

Telo spravy:

This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. The following addresses failed: SMTP error from remote server after RCPT command: host mx4.hotmail.com[65.55.92.184]: 550 Requested action not taken: mailbox unavailable --- The header of the original message is following. --- Received: from oxltgw04.schlund.de (oxltgw04.schlund.de [172.19.158.42]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MYLMf-1PPo2V3CQD-00VHZy; Sun, 12 Sep 2010 15:32:42 +0200 Date: Sun, 12 Sep 2010 14:32:42 +0100 (BST) From: "Carla B." Reply-To: "Carla B." To: fdsdfdsfdasfdhkdfhdss@hotmail.com Message-ID: <1424833642.28719.1284298362724.JavaMail.open-xchange@oxltgw04.schlund.de> Subject: fsfdsf MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_28718_1205862333.1284298362581" X-Priority: 3 X-Mailer: Open-Xchange Mailer v6.14.0-Rev24 X-Provags-ID: V02:K0:82hJzTwbXtd0FLP2hb1MHwnuRU2TSIjhq2aVcjfLYsP 36bBHs/DbVgxA4wLS6jJY5WoC0Mb6dGSvME2j0EQ2tBJX5eGL1 5qGkDnizqCjpgVVBpJIPCpCnE5+Mjc/9NJAaHASlQIt/XmCDPE lpn2sG4AxDUg1TLU0SwJXxQZXnyA/34+iW4bqDB63KvIba8RTj 94SQkyW8g+OUVy2d2gZ372Yar023Z06lQ35Kl3jIRw=

Dik za kazdu radu! :)
Keeehi
Profil
Najděte ji regulárním výrazem. např takto:
preg_match("~ To: (.*?) ~",$telo_spravy,$vysledek);
adresa by měla být ve $vysledek[1];

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm: