Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problema con gmail

921 views
Skip to first unread message

Nathan Never

unread,
Oct 13, 2017, 6:13:44 AM10/13/17
to
Salve a tutti,

sto riscontrando un problema strano quando mando un'email da una form di un sito verso un indirizzo gmail.

Praticamente l'email non arriva e me la ritrovo nella posta ricevuta della casella inviante (visto che autentico l'smtp) con questo errore



<indirizzo-a-cu...@gmail.com>: host gmail-smtp-in.l.google.com[64.233.166.26] said:
550-5.7.1 [5.144.164.171 11] Our system has detected that this message
is 550-5.7.1 not RFC 5322 compliant: 550-5.7.1 Multiple 'From' headers
found. 550-5.7.1 To reduce the amount of spam sent to Gmail, this message
has been 550-5.7.1 blocked. Please visit 550-5.7.1
https://support.google.com/mail/?p=RfcMessageNonCompliant 550 5.7.1 and
review RFC 5322 specifications for more information. d30si556562wra.15 -
gsmtp (in reply to end of DATA command)

Final-Recipient: rfc822; indirizzo-a-cu...@gmail.com
Original-Recipient: rfc822;indirizzo-a-cu...@gmail.com
Action: failed
Status: 5.7.1
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [5.144.164.171 11] Our system has
detected that this message is 550-5.7.1 not RFC 5322 compliant: 550-5.7.1
Multiple 'From' headers found. 550-5.7.1 To reduce the amount of spam sent
to Gmail, this message has been 550-5.7.1 blocked. Please visit 550-5.7.1
https://support.google.com/mail/?p=RfcMessageNonCompliant 550 5.7.1 and
review RFC 5322 specifications for more information. d30si556562wra.15 -
gsmtp

Qui si parla di "multipli from", ma in realtà ce ne sta solo uno e non so cosa succede.

Avete idee, suggerimenti e/o soluzioni?

Grazie.

fmigliori

unread,
Oct 13, 2017, 11:31:02 AM10/13/17
to
Magari hai scritto male, inviala ad un tuo account (non gmail :)) e guarda il sorgente.

Nathan Never

unread,
Oct 13, 2017, 11:46:38 AM10/13/17
to
Il giorno venerdì 13 ottobre 2017 17:31:02 UTC+2, fmigliori ha scritto:
> Magari hai scritto male, inviala ad un tuo account (non gmail :)) e guarda il sorgente.

mando la stessa email ad un indirizzo non gmail e funziona
la mando ad uno gmail e mi ritorna quell'errore

fmigliori

unread,
Oct 13, 2017, 12:32:26 PM10/13/17
to
posta il sorgente della mail

Nathan Never

unread,
Oct 14, 2017, 10:45:15 AM10/14/17
to
Il giorno venerdì 13 ottobre 2017 18:32:26 UTC+2, fmigliori ha scritto:

> posta il sorgente della mail

questo è il messaggio che arriva (e che viene letto da gmail come se fosse un client di posta elettronica)

Delivered-To: **************@gmail.com
Received: by 10.74.52.84 with SMTP id n20csp880071oof;
Fri, 13 Oct 2017 08:48:46 -0700 (PDT)
X-Google-Smtp-Source: ABhQp+T+0GpBOZI7+ed/SzEQ8RPAfx4l2IvJf2jlqEFf9BQfdedSiinpPFUCsSlAe5Cx2r/TdbZm1KpaKJA=
X-Received: by 10.157.66.186 with SMTP id r55mr1194776ote.1.1507909725394;
Fri, 13 Oct 2017 08:48:45 -0700 (PDT)
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of info@*******.it designates 5.144.164.171 as permitted sender) smtp.mailfrom=info@*******.it
Received-SPF: pass (google.com: domain of info@*******.it designates 5.144.164.171 as permitted sender) client-ip=5.144.164.171;
Received: by 10.202.8.14 with POP3 id 14mf15985628oii.1;
Fri, 13 Oct 2017 08:48:45 -0700 (PDT)
X-Gmail-Fetch-Info: info@*******.it 2 217.64.195.230 110 *******.it
Return-Path: <info@*******.it>
Delivered-To: *******.it@vmbox
Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) by m-05.th.seeweb.it (Postfix) with ESMTP id 3AEA440560 for <info@*******.it>; Fri, 13 Oct 2017 17:48:02 +0200 (CEST)
Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [5.144.164.171]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 03F811A00A5D for <info@*******.it>; Fri, 13 Oct 2017 17:48:01 +0200 (CEST)
Received: from mail.*******.it (unknown [151.45.87.82]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id D76693F259 for <info@*******.it>; Fri, 13 Oct 2017 17:48:00 +0200 (CEST)
To: info@*******.it
From: info@*******.it
Subject: Richiesta Informazioni
MIME-Version: 1.0
Message-id: <3z09oxxc9hes.2tazjjehjku8c@localhost>
Date: 2017-10-13 17:48:01
X-Priority: 3
X-Mailer: PHP/5.4.4
Content-type: text/html; charset=1
from: info@*******.it
Reply-To: info@*******.it
X-Antivirus: Avast (VPS 171013-6, 13/10/2017), Outbound message
X-Antivirus-Status: Clean
X-Virus-Scanned: clamav-milter 0.99.2 at in-3.smtp.seeweb.it
X-Virus-Status: Clean
X-Spam-Status: No, score=3.4 required=7.0 tests=HTML_IMAGE_ONLY_12, HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,HTML_SHORT_LINK_IMG_2,INVALID_DATE, MIME_HTML_ONLY,SPF_PASS,T_REMOTE_IMAGE autolearn=disabled version=3.4.0
X-Spam-Level: ***
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-3.smtp.seeweb.it



<body>
<p>&nbsp;</p>

<p><strong>Email</strong>: *******@gmail.com </p>
<p><strong>Arrivo</strong>: 2017-10-12 </p>
<p><strong>Partenza</strong>: 2017-11-03 </p>
<p><strong>Persone</strong>: 1 </p>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Mail priva di virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a> </td>
</tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>



Questo è invece il messaggio che torna indietro e che dovrebbe essere consegnato ad un indirizzo gmail

Delivered-To: *******@gmail.com
Received: by 10.74.52.84 with SMTP id n20csp880077oof;
Fri, 13 Oct 2017 08:48:46 -0700 (PDT)
X-Google-Smtp-Source: ABhQp+SH1mtzRMTRDGoKZgCZfWzq7IK7oLAAElNdFUPowpbdbwg7higRHnPK1+qX5BVCE3FbdhSlEQEr49E=
X-Received: by 10.157.3.236 with SMTP id f99mr1176187otf.155.1507909725388;
Fri, 13 Oct 2017 08:48:45 -0700 (PDT)
Authentication-Results: mx.google.com;
spf=neutral (google.com: 5.144.164.171 is neither permitted nor denied by best guess record for domain of postmaster@mailer-daemon) smtp.mailfrom=MAILER-DAEMON
Received-SPF: neutral (google.com: 5.144.164.171 is neither permitted nor denied by best guess record for domain of postmaster@mailer-daemon) client-ip=5.144.164.171;
Received: by 10.202.8.14 with POP3 id 14mf15985628oii.1;
Fri, 13 Oct 2017 08:48:45 -0700 (PDT)
X-Gmail-Fetch-Info: info@*******.it 2 217.64.195.230 110 *******.it
Return-Path: <MAILER-DAEMON>
Delivered-To: *******.it@vmbox
Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) by m-05.th.seeweb.it (Postfix) with ESMTP id A593D40560 for <info@*******.it>; Fri, 13 Oct 2017 17:48:02 +0200 (CEST)
Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [5.144.164.171]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 6C4241A00CC2 for <info@*******.it>; Fri, 13 Oct 2017 17:48:02 +0200 (CEST)
Received: by m-r2.th.seeweb.it (Postfix) id 49A6D3F334; Fri, 13 Oct 2017 17:48:02 +0200 (CEST)
Date: Fri, 13 Oct 2017 17:48:02 +0200 (CEST)
From: Mail Delivery System <MAILER...@m-r2.th.seeweb.it>
Subject: Undelivered Mail Returned to Sender
To: info@*******.it
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status; boundary="AFE653EEF8.1507909682/m-r2.th.seeweb.it"
Message-Id: <201710131548...@m-r2.th.seeweb.it>
X-Virus-Scanned: clamav-milter 0.99.2 at in-3.smtp.seeweb.it
X-Virus-Status: Clean
X-Spam-Status: No, score=1.3 required=7.0 tests=HTML_IMAGE_ONLY_16, HTML_MESSAGE,HTML_SHORT_LINK_IMG_2 autolearn=disabled version=3.4.0
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-3.smtp.seeweb.it

--AFE653EEF8.1507909682/m-r2.th.seeweb.it
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host m-r2.th.seeweb.it.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<*******@gmail.com>: host gmail-smtp-in.l.google.com[74.125.133.27] said:
550-5.7.1 [5.144.164.171 11] Our system has detected that this message
is 550-5.7.1 not RFC 5322 compliant: 550-5.7.1 Multiple 'From' headers
found. 550-5.7.1 To reduce the amount of spam sent to Gmail, this message
has been 550-5.7.1 blocked. Please visit 550-5.7.1
https://support.google.com/mail/?p=RfcMessageNonCompliant 550 5.7.1 and
review RFC 5322 specifications for more information. c5si1046319wrf.48 -
gsmtp (in reply to end of DATA command)

--AFE653EEF8.1507909682/m-r2.th.seeweb.it
Content-Description: Delivery report
Content-Type: message/delivery-status


--AFE653EEF8.1507909682/m-r2.th.seeweb.it
Content-Description: Undelivered Message
Content-Type: message/rfc822

Return-Path: <info@*******.it>
Received: from mail.*******.it (unknown [151.45.87.82]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id AFE653EEF8 for <*******@gmail.com>; Fri, 13 Oct 2017 17:48:01 +0200 (CEST)
To: *******@gmail.com
From: info@*******.it
Subject: Conferma richiesta Informazioni
MIME-Version: 1.0
Message-id: <5sxl44vyszgg.2xs6v73xohk44@localhost>
Date: 2017-10-13 17:48:02
X-Priority: 3
X-Mailer: PHP/5.4.4
Content-type: text/html; charset=1
from: info@*******.it
Reply-To: info@*******.it
X-Antivirus: Avast (VPS 171013-6, 13/10/2017), Outbound message
X-Antivirus-Status: Clean



<body>
<p>Gentile cliente, abbiamo ricevuto la sua email di richiesta prenotazione.</p>
<p>Riceverà risposta entro le prossime 12 ore.</p>
<p>Riepilogo delle prenotazione effettuata:</p>

<p><strong>Email</strong>: *******@gmail.com </p>
<p><strong>Arrivo</strong>: 2017-10-12 </p>
<p><strong>Partenza</strong>: 2017-11-03 </p>
<p><strong>Persone</strong>: 1 </p>
<p>&nbsp;</p>
<p>Cordiali saluti,</p>
<p>Lo staff dell'Hotel Nicolaj, Polignano a Mare</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br>
<br>
</p>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Mail priva di virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a> </td>
</tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>


--AFE653EEF8.1507909682/m-r2.th.seeweb.it--

fmigliori

unread,
Oct 14, 2017, 11:09:22 AM10/14/17
to
> To: info@*******.it
> From: info@*******.it
> Subject: Richiesta Informazioni
...
> from: info@*******.it
> Reply-To: info@*******.it


Magari mi confondo, ma anche io vedo due from.

Leonardo Serni

unread,
Oct 14, 2017, 11:45:20 AM10/14/17
to
On Sat, 14 Oct 2017 07:45:13 -0700 (PDT), Nathan Never <natha...@gmail.com>
wrote:

>Delivered-To: **************@gmail.com
>Received: by 10.74.52.84 with SMTP id n20csp880071oof;
> Fri, 13 Oct 2017 08:48:46 -0700 (PDT)
>X-Google-Smtp-Source: ABhQp+T+0GpBOZI7+ed/SzEQ8RPAfx4l2IvJf2jlqEFf9BQfdedSiinpPFUCsSlAe5Cx2r/TdbZm1KpaKJA=
>X-Received: by 10.157.66.186 with SMTP id r55mr1194776ote.1.1507909725394;
> Fri, 13 Oct 2017 08:48:45 -0700 (PDT)
>Authentication-Results: mx.google.com;
> spf=pass (google.com: domain of info@*******.it designates 5.144.164.171 as permitted sender) smtp.mailfrom=info@*******.it
>Received-SPF: pass (google.com: domain of info@*******.it designates 5.144.164.171 as permitted sender) client-ip=5.144.164.171;
>Received: by 10.202.8.14 with POP3 id 14mf15985628oii.1;
> Fri, 13 Oct 2017 08:48:45 -0700 (PDT)
>X-Gmail-Fetch-Info: info@*******.it 2 217.64.195.230 110 *******.it
>Return-Path: <info@*******.it>
>Delivered-To: *******.it@vmbox
>Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) by m-05.th.seeweb.it (Postfix) with ESMTP id 3AEA440560 for <info@*******.it>; Fri, 13 Oct 2017 17:48:02 +0200 (CEST)
>Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [5.144.164.171]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 03F811A00A5D for <info@*******.it>; Fri, 13 Oct 2017 17:48:01 +0200 (CEST)
>Received: from mail.*******.it (unknown [151.45.87.82]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id D76693F259 for <info@*******.it>; Fri, 13 Oct 2017 17:48:00 +0200 (CEST)

A parte i due from, che ci sono, l'origine è una ADSL ULL di Wind/Infostrada,
ma non registrata come server di posta. Se fai nslookup su mail.[omissis].it,
sei sicuro che ti dica 151.45.87.82?

Non è che stai facendo le prove da un sito di test su un serverino domestico,
o quasi? Perché in quel caso magari è normale che ti rimbalzi.

Leonardo

--

Ya se escucha sonar la metralla, ya el clarín toca fuego graneado:
ahora o nunca, muchachos arriba a acabar a estos hijos del diablo.

Nathan Never

unread,
Oct 14, 2017, 12:20:44 PM10/14/17
to
Il giorno sabato 14 ottobre 2017 17:45:20 UTC+2, Leonardo Serni ha scritto:

> A parte i due from, che ci sono, l'origine è una ADSL ULL di Wind/Infostrada,
> ma non registrata come server di posta. Se fai nslookup su mail.[omissis].it,
> sei sicuro che ti dica 151.45.87.82?
>
> Non è che stai facendo le prove da un sito di test su un serverino domestico,
> o quasi? Perché in quel caso magari è normale che ti rimbalzi.
>
> Leonardo
>
>

Si sto facendo le prove in locale, come faccio sempre
L'ip è quello del mio adsl, non del server mail

Cmq lunedì proverò a fare un test con uno scriptino online per verificare l'ipotesi che sia un problema di server locale

fmigliori

unread,
Oct 14, 2017, 1:22:40 PM10/14/17
to
Il giorno sabato 14 ottobre 2017 17:45:20 UTC+2, Leonardo Serni ha scritto:
> A parte i due from, che ci sono, l'origine è una ADSL ULL di Wind/Infostrada,
> ma non registrata come server di posta. Se fai nslookup su mail.[omissis].it,
> sei sicuro che ti dica 151.45.87.82?
>
> Non è che stai facendo le prove da un sito di test su un serverino domestico,
> o quasi? Perché in quel caso magari è normale che ti rimbalzi.
>
> Leonardo
>
> --
>
> Ya se escucha sonar la metralla, ya el clarín toca fuego graneado:
> ahora o nunca, muchachos arriba a acabar a estos hijos del diablo.


Secondo me non c'entra, nel senso che a lamentarsi del doppio from è il server
smtp di google, che deve essere il server configurato nello script. Per cui da
che ip parta è insignificante. Se Google (smtp) si lamenta del doppio from fa
solo bene, abbiamo constatato che è vero!

Sempre ché tu non abbia visto qualcosa di diverso o io mi sia semplicemente
fatto un film da deduzioni errate.

Leonardo Serni

unread,
Oct 14, 2017, 1:31:12 PM10/14/17
to
On Sat, 14 Oct 2017 10:22:39 -0700 (PDT), fmigliori <fmig...@gmail.com>
wrote:

>> A parte i due from, che ci sono, l'origine è una ADSL ULL di Wind/Infostrada,
>> ma non registrata come server di posta. Se fai nslookup su mail.[omissis].it,
>> sei sicuro che ti dica 151.45.87.82?

>> Non è che stai facendo le prove da un sito di test su un serverino domestico,
>> o quasi? Perché in quel caso magari è normale che ti rimbalzi.

>Secondo me non c'entra, nel senso che a lamentarsi del doppio from è il server
>smtp di google, che deve essere il server configurato nello script. Per cui da
>che ip parta è insignificante. Se Google (smtp) si lamenta del doppio from fa
>solo bene, abbiamo constatato che è vero!

Sì, scusa. Avrei dovuto dire "...è normale che ti rimbalzi COMUNQUE", ovvero:
lui sistema anche il From: extra; ma la mail, ci sta che non passi lo stesso.

Il server dello script è quello di Seeweb, che non pare avere problemi.

Nathan Never

unread,
Oct 16, 2017, 5:10:33 AM10/16/17
to
Il giorno sabato 14 ottobre 2017 19:22:40 UTC+2, fmigliori ha scritto:
Se Google (smtp) si lamenta del doppio from fa
> solo bene, abbiamo constatato che è vero!
>

Scusate, mi sarò perso un passaggio: dove sta il doppio from???? Perchè ho capito che l'errore è quello, ma non lo vedo.

Nathan Never

unread,
Oct 16, 2017, 5:14:29 AM10/16/17
to
ok ok, ho visto solo ora a cosa vi riferite
e non me ne ero mai reso conto

la funzione che uso è questa

function SMTPmail($parametri)
{

// set as global variable
global $variabili;
global $preferenze;


//var_dump($parametri);


// get From address
if ( preg_match("/From:.*?[A-Za-z0-9\._%-]+\@[A-Za-z0-9\._%-]+.*/", $parametri['intestazione']))
{


preg_match("/[A-Za-z0-9\._%-]+\@[A-Za-z0-9\._%-]+/", $froms[0], $fromarr);
$from = $fromarr[0];

}



if ($from=="")
{

$from=$parametri['da'];

}





//print_r($preferenze['smtp']);

// Open an SMTP connection
$cp = @fsockopen ($preferenze["smtp"]['server'], $preferenze["smtp"]['porta'], $errno, $errstr, 1);
if (!$cp)
return "Failed to even make a connection";
$res=fgets($cp,100);
//die ($res);
if(substr($res,0,3) != "220") return "Failed to connect";

// Say hello...


if ($preferenze['smtp']['ehlo'])
{



fputs($cp, "EHLO ".$preferenze["smtp"]['server']."\r\n");
$res = fgets($cp, 515);
if(substr($res,0,3) != "250") return "Failed to Introduce EHLO";
do {
$res = fgets($cp, 515);
} while(substr($res, 3, 1) == "-");

}
else
{
fputs($cp, "HELO ".$preferenze["smtp"]['server']."\r\n");
$res=fgets($cp,256);
if(substr($res,0,3) != "250") return "Failed to Introduce HELO";


}



// perform authentication
fputs($cp, "auth login\r\n");
$res=fgets($cp,256);
if(substr($res,0,3) != "334") return "Failed to Initiate Authentication";

fputs($cp, base64_encode($preferenze["smtp"]['utente'])."\r\n");
$res=fgets($cp,256);
if(substr($res,0,3) != "334") return "Failed to Provide Username for Authentication";

fputs($cp, base64_encode($preferenze["smtp"]['password'])."\r\n");
$res=fgets($cp,256);
if(substr($res,0,3) != "235") return "Failed to Authenticate";

// Mail from...
fputs($cp, "MAIL FROM:<".$from.">\r\n");
$res=fgets($cp,256);
if(substr($res,0,3) != "250") return "MAIL FROM failed";

// Rcpt to...
fputs($cp, "RCPT TO:<".$parametri['a'].">\r\n");

$res=fgets($cp,256);
if(substr($res,0,3) != "250") return "RCPT TO failed";

// Data...
fputs($cp, "DATA\r\n");
$res=fgets($cp,256);
if(substr($res,0,3) != "354") return "DATA failed";

//print $parametri['intestazione']."<br>";

// Send To:, From:, Subject:, other headers, blank line, message, and finish
// with a period on its own line (for end of message)

echo "To: ".$parametri['a']."\r\nFrom: ".$from."\r\nSubject: ".$parametri['titolo']
."\r\n".$parametri['intestazione']."\r\n\r\n".$parametri['testo']."\r\n.\r\n";

fputs($cp, "To:".$parametri['a']."\r\nFrom:".$from."\r\nSubject:".$parametri['titolo']
."\r\n".$parametri['intestazione']."\r\n\r\n".$parametri['testo']."\r\n.\r\n");
$res=fgets($cp,256);
// print $res;
if(substr($res,0,3) != "250") return "Message Body Failed";

// ...And time to quit...
fputs($cp,"QUIT\r\n");
$res=fgets($cp,256);
if(substr($res,0,3) != "221") return "QUIT failed";

//die("qui");
return "0";
}


e ad oggi non mi aveva mai dato problemi

quale dei due from devo togliere a questo punto?

Leonardo Serni

unread,
Oct 16, 2017, 9:04:23 AM10/16/17
to
On Mon, 16 Oct 2017 02:14:28 -0700 (PDT), Nathan Never <natha...@gmail.com>
wrote:

>la funzione che uso è questa

Da' retta a un bischero: importati una classe che supporti SMTP.

Vedrai poi se 'un mi rammenti.
0 new messages