WebSite X5Help Center

 
Gianluca Giuseppe L.
Gianluca Giuseppe L.
User

Errore invio email  it

Autore: Gianluca Giuseppe L.
Visite 722, Followers 1, Condiviso 0  

Ho problemi con l'invio di email e ricezione ordini dal carrello elettronico, ho provato a scaricare il sito dal provider privato di un mio amico e funziona tutto correttamente... Ma in quello dove è ospitato il sito non si riesce a trovare il problema. Il supporto tecnico si è messo a disposizione ,però senza riuscirci, non sa più cosa possa causare il problema... Spero che mi sappiate dare delucidazioni in merito, il provider in questione è dominiofaidate.it

Postato il
11 RISPOSTE - 1 UTILE - 1 CORRETTO
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

...!... non ci sono elementi a disposizione per capire...!...

... è stata verificata la ricezione della email nella cartella dello SPAM....?...

... il LINK della pagina...?...

... è stato fatto i TEST MAIL dal pannello admin: www.tuodito.it/admin/ ...?... ...di cui allegare lo STAMP...?...

... provare anche a fare i test che seguono, e per il 3° verificando anche nello SPAM: http://www.zspace.it/kolasim/mio_php/test_PHP.txt

... sempre che non ci sia problema di protocollo SMTP che non faccia uso della funzione PHP MAIL(), che lo saprebbe solo il server, visto che in altro server ha funzionato regolarmente...

... con ON.COM ed A2Hosting, gemellati con il programma, non ci sarebbero problemi di sorta, ma neanche sui comuni Aruba, TopHost, Altervista e simili...

.

ciao

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
Gianluca Giuseppe L.
Gianluca Giuseppe L.
User
Autore

Ciao grazie per la risposta, allora nella cartella posta indesiderata non vi è nulla.

il link del sito è fontanezen.eu

in allegato il file mail e la foto dellampagina admin

Leggi di più
Postato il da Gianluca Giuseppe L.
Gianluca Giuseppe L.
Gianluca Giuseppe L.
User
Autore

<?php
//Incomedia WebSite X5 EMail Class. All rights reserved.

class imEMail {
var $from;
var $to;
var $subject;
var $charset;
var $text;
var $html;
var $type;
var $newline = "\r\n";
var $exposeWsx5 = true;

var $attachments;

function imEMail($from,$to,$subject,$charset) {
$this->from = $from;
$this->to = $to;
$this->charset = $charset;
$this->subject = strlen($subject) ? "=?" . strtoupper($this->charset) . "?B?". base64_encode($subject) . "?=" : "";
}

function setExpose($expose) {
$this->exposeWsx5 = $expose;
}

/**
* Set the type of email standard (HTML, HTML-X or Text-only)
* @param [type] $type [description]
*/
function setStandardType($type = "html") {
$this->type = $type;
$this->newline = (strtolower($type) == "html-x" ? "\n" : "\r\n");
}

function setFrom($from) {
$this->from = $from;
}

function setTo($to) {
$this->to = $to;
}

function setSubject($subject) {
if (strlen($subject))
$this->subject = "=?" . strtoupper($this->charset) . "?B?". base64_encode($subject) . "?=";
else
$this->subject = "";
}

function setCharset($charset) {
$this->charset = $charset;
}

function setText($text) {
$this->text = $text;
}

function setHTML($html) {
$this->html = $html;
}

function attachFile($name,$content,$mime_type) {
if (strlen($name) === 0)
return false;
$attachment['name'] = "=?" . strtoupper($this->charset) . "?B?". base64_encode($name) . "?=";
$attachment['content'] = base64_encode($content);
$attachment['mime_type'] = $mime_type;
$this->attachments[] = $attachment;
}

function send() {
$headers = "";
$msg = "";

if($this->from == "" || $this->to == "" || ($this->text == "" && $this->html == ""))
return false;

if ($this->type != "text") {

/*
|-------------------------------
| HTML/HTML-X email
|-------------------------------
*/

$boundary_file = md5(time() . "_attachment");
$boundary_alt = md5(time() . "_alternative");

$headers .= "From: " . $this->from . $this->newline;
$headers .= "Message-ID: <" . time() . rand(0,9) . rand(0,9) . "@" . ($this->exposeWsx5 ? "websitex5" : rand(100,200)) . ".users>" . $this->newline;
$headers .= "X-Mailer: " . ($this->exposeWsx5 ? "WebSiteX5 Mailer" : "PHP") . $this->newline;

$headers .= "MIME-Version: 1.0" . $this->newline;

if(is_array($this->attachments)) {
$headers .= "Content-Type: multipart/mixed; boundary=\"" . $boundary_file . "\"" . $this->newline . $this->newline;
$headers .= "--" . $boundary_file . $this->newline;
}

if($this->html == "") {
$headers .= "Content-Type: text/plain; charset=" . strtoupper($this->charset) . $this->newline;<br /> if (strtolower($this->charset) != "utf-8")
$headers .= "Content-Transfer-Encoding: 7bit" . $this->newline;
else
$headers .= "Content-Transfer-Encoding: 8bit" . $this->newline;
$msg .= $this->text . $this->newline . $this->newline;
}
else if($this->text == "") {
$headers .= "Content-Type: text/html; charset=" . strtoupper($this->charset) . $this->newline;<br /> if (strtolower($this->charset) != "utf-8")
$headers .= "Content-Transfer-Encoding: 7bit" . $this->newline;
else
$headers .= "Content-Transfer-Encoding: 8bit" . $this->newline;
$msg .= $this->html . $this->newline . $this->newline;
}
else {
$headers .= "Content-Type: multipart/alternative; boundary=\"" . $boundary_alt . "\"" . $this->newline;

$msg .= "--" .$boundary_alt . $this->newline;
$msg .= "Content-Type: text/plain; charset=" . strtoupper($this->charset) . $this->newline;<br /> if (strtolower($this->charset) != "utf-8")
$msg .= "Content-Transfer-Encoding: 7bit" . $this->newline;
else
$msg .= "Content-Transfer-Encoding: 8bit" . $this->newline;
$msg .= $this->newline;
$msg .= $this->text . $this->newline . $this->newline;

$msg .= "--" . $boundary_alt . $this->newline;
$msg .= "Content-Type: text/html; charset=" . strtoupper($this->charset) . $this->newline;<br /> if (strtolower($this->charset) != "utf-8")
$msg .= "Content-Transfer-Encoding: 7bit" . $this->newline;
else
$msg .= "Content-Transfer-Encoding: 8bit" . $this->newline;
$msg .= $this->newline;
$msg .= $this->html . $this->newline . $this->newline;

$msg .= "--" . $boundary_alt . "--" . $this->newline . $this->newline;
}

if(is_array($this->attachments)) {
foreach($this->attachments as $attachment) {
$msg .= "--" . $boundary_file . $this->newline;
$msg .= "Content-Type: " . $attachment["mime_type"] . "; name=\"" . $attachment["name"] . "\"" . $this->newline;
$msg .= "Content-Transfer-Encoding: base64" . $this->newline;
$msg .= "Content-Disposition: attachment; filename=\"" . $attachment["name"] . "\"" . $this->newline . $this->newline;
$msg .= chunk_split($attachment["content"]) . $this->newline . $this->newline;
}
$msg .= "--" . $boundary_file . "--" . $this->newline . $this->newline;
}

if (function_exists('ini_set'))
@ini_set("sendmail_from", $this->from);

// First attempt: -f flag, no more headers
if(@mail($this->to, $this->subject, $msg, $headers, "-f" . $this->from))
return true;
// Second attempt: no -f flag, no more headers
if (@mail($this->to, $this->subject, $msg, $headers))
return true;
// Third attempt: no -f flag, one more To header
$headers = "To: " . $this->to . $this->newline . $headers;
return @mail($this->to, $this->subject, $msg, $headers);
} else {

/*
|-------------------------------
| Text-only email
|-------------------------------
*/

$headers .= "From: " . $this->from . $this->newline;
$headers .= "Content-Type: text/plain;charset=" . $this->charset . $this->newline;
$msg .= $this->text . $this->newline . $this->newline;

$r = @mail($this->to, $this->subject, $msg, $headers);
return $r;
}
}
}

// End of file imemail.inc.php

Leggi di più
Postato il da Gianluca Giuseppe L.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... ok, ... come pannello admin dovresti essere a posto...

... hai effettuato i TEST MAIL proposti nel pannello del tuo STAMP...?...

... provali e posta il risultato ottenuto dai vari tentativi, indicando quello che risponde a dovere...

.

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
Gianluca Giuseppe L.
Gianluca Giuseppe L.
User
Autore

Non arriva in alcuna modalità' :-(

Leggi di più
Postato il da Gianluca Giuseppe L.
Gianluca Giuseppe L.
Gianluca Giuseppe L.
User
Autore

in nessuna modalità 

Leggi di più
Postato il da Gianluca Giuseppe L.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... e dal mio 3° test che risultati ottieni...?...

... se l'email non arrivasse neanche questa, allora è un problema del server che non usa la fnzione MAIL() PHP

... farsela attivare, o cambiare server(*), o usare un form_mail terzo al programma...

(*) - da preferire

.

ciao

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
Gianluca Giuseppe L.
Gianluca Giuseppe L.
User
Autore

Grazie ancora per le info. Oggi mi sono accorto che entrando nell'area amministratore e facendo vari test di invio mail succede la seguente cosa:

ho provato diverse mie email e con tutte l'invio avviene sempre, quando inserisco una email mia di hotmail.it non arriva nulla, se metto una mail di un mio collaboratore hotmail.com funziona.... boh non so piu' cosa pensare.

spero che qualcuno mi possa aiutare...

Leggi di più
Postato il da Gianluca Giuseppe L.
Gianluca Giuseppe L.
Gianluca Giuseppe L.
User
Autore

Grazie ancora per le info. Oggi mi sono accorto che entrando nell'area amministratore e facendo vari test di invio mail succede la seguente cosa:

ho provato diverse mie email come mittenti e con tutte l'invio avviene sempre, tranne quando uso come destinatario *** non arriva nulla, se invece provo altri come ad esempio *** funziona.... boh non so piu' cosa pensare.

spero che qualcuno mi possa aiutare...

Leggi di più
Postato il da Gianluca Giuseppe L.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... non saprei, forse dipende dalle impostazioni di protezione del servizio hotmail...

... io sono su hotmail.com, e tutte le email ricevute da altri utenti di Answers mi sono sempre arrivate per la PRIMA VOLTA nella cartella SPAM, ed una volta accettata come posta sicura, le successive sono state sempre ricevute regolarmente...

... di altro non saprei cosa dirti, se non  quello già detto di provare i vari script proposti nel test mail...

... attendi l'intervento degli esperti in campo...

.

ciao

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
Gianluca Giuseppe L.
Gianluca Giuseppe L.
User
Autore

grazie mille, risolto... probabilmente è l'antispam di hotmail.it ho creato un'altra email e tutto sta funzionando

Leggi di più
Postato il da Gianluca Giuseppe L.