class= " lineNumbers " del
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
|
class= del
>< notpretty " del class= " del id= " codeSnippet775467 del mailbox di ritorno. “@„. $obj->host;
}
/* si collegano all'assistente */
$hostname = “{10.2.1.248: 995/pop3/ssl/novalidate-cert} INBOX„;
$username = “xxxxxx„;
$password = “xxxxxx„;
prova di/* da collegarsi */
$inbox = imap_open ($hostname, $username, $password) o muoiono (“non può collegarsi all'assistente: „. imap_last_error ());
email della gru a benna di/* */
$emails = imap_search ($inbox, “TUTTO ");
$headers = imap_headers ($inbox);
$numEmails = sizeof ($headers);
per ($i = 1; $i < $numEmails+1; $i++)
{
$mailHeader = @imap_headerinfo ($inbox, $i);
$from = $mailHeader->reply_toaddress;
$subject = strip_tags ($mailHeader->subject);
$body = htmlentities (imap_body ($inbox, $i));
$date = $mailHeader->date;
$rows = “SELEZIONANO * A PARTIRE dalle richieste„;
$result = mysql_query ($rows);
$num=mysql_numrows ($result);
$query = “INSERTO NEI VALORI di richieste (“`della data, “da `, “da `tematico, “dal `del messaggio) (" “.date (“D d m. H: i„). „„, “$from„, “$subject„,„ “.mysql_real_escape_string ($body). „ ") “;
}
imap_delete ($inbox, “1: *");
imap_expunge ($inbox);
/* chiudono il collegamento */
imap_close ($inbox);
? >
|