Home › Forum › Plugin e temi di WP › utilizzo di contact form 7
-
AutorePost
-
-
19 Aprile 2017 alle 22:18 #31379LucienPartecipante
Salve,
vorrei fare una domanda sul plugin contact form 7. Ho wordpress 4.7.3, tema sydney e ho installato il plugin in questione. Quando dal plugin vado a cliccare su Settings, quindi inizio a compilare i campi per la definizione del modulo contatti, cosa dovrei indicare nella tab ‘Mail’ alle voci ‘To’ e ‘From’? Per la prima ho inserito il mio indirizzo mail (di gmail), nella seconda cosa andrebbe messo? Subject, additional headers e message body li ho lasciati come da default, non ho toccato nient’altro (neanche nelle altre tab), quindi ho salvato.
Vado a copiare lo shortcode nella pagina, ma quando cerco di inviare il forum compare un messaggio ‘There was an error trying to send your message. Please try again later.’
Sto lavorando da locale, non so se questo possa incidere e se devo tenere conto di questo nella compilazionne dei campi per la configurazione del modulo contatti.
Ho trovato qualche tutorial online, dal quale ho saputo che può essere consigliabile installare anche il plugin WP mail SMTP per configurare l’invio della mail, ho seguito le indicazioni fornite ma rimane lo stesso errore.
Per cui avrei bisogno di informazioni su come vanno compilate le voci per la creazione del modulo (to, from, subject, ecc.) e se conoscete possibili motivi per cui esce quel messaggio di errore. Grazie
-
20 Aprile 2017 alle 6:24 #121545SteveAglAmministratore del forum
Il problema non riguarda il plugin e probabilmente nemmeno il tema ma non riesce a spedire l’email per una mal configurazione del server (che comunque essendo locale potrebbe venir rifiutato da servizi come gmail o messo in spam. Avendo il server locale puoi facilmente leggere il log degli errori e diagnosticare il problema che dubito dipenda da WP plugin o temi.
-
20 Aprile 2017 alle 8:43 #121548TittiModeratore
Per la prima ho inserito il mio indirizzo mail (di gmail), nella seconda cosa andrebbe messo?
Esattamente quello che c’è scritto nella documentazione del plugin
Altro esempio: From [your-name] <contactform@tuosito.com>
Mettendo [your-name] <[your-email]> com’era una volta il messaggio arriva, ma essendo quello del mittente un altro server rispetto a quello del ricevente va in spam, quindi affinché non vada in spam devi mettere @tuosito.com
-
20 Aprile 2017 alle 11:17 #121549LucienPartecipante
dalla documentazione vedo che hanno inserito la stessa mail in entrambi i campi ‘To’ e ‘From’. Ma se questa è relativa al mio sito wordpress, devo cercarla perchè già esistente o devo crearla in quel momento scrivendo semplicemente un testoqualsiasi@miosito.com.
Tra l’altro adesso stando in locale che estensione dovrei dare dopo la @?
Comunque a breve passerò on line, quindi quest’ultimo punto non è importante. Dovrei in quel caso capire qual è l’indirizzo mail associato al dominio / spazio web (è uno spazio altervista già usato in precedenza) e quindi scriverlo sia nel campo ‘to’ che ‘from’?
Oppure posso utilizzare nel campo ‘to’ il mio indirizzo gmail (non connesso al sito) per leggere lଠi messaggi che mi invierebbero gli utenti. Ma immagino che non posso farlo se mittente e destinatario devo stare sullo stesso server, giusto?
Scusate ma non mi era/é chiaro come funziona l’invio di messaggi via contact form e probabilmente faccio un po’ di confusione.
-
20 Aprile 2017 alle 13:02 #121551TittiModeratore
Ma immagino che non posso farlo se mittente e destinatario devo stare sullo stesso server, giusto?
Non è cosà¬: in “Da” ci va lo stesso dominio del sito, non la stessa email, è spiegato anche nel link che ti ho messo “best practice”… lo stesso dominio non significa “lo stesso dominio di ‘A’ o lo stesso indirizzo di ‘A'”, ma significa lo stesso dominio in cui risiede il sito da cui parte il modulo contatti.
Hai detto di usare @gmail.com come indirizzo destinatario (“A”), va bene (va bene qualsiasi indirizzo in cui decidi di ricevere i contatti), ma in “Da” non puoi mettere gmail.com (o yahoo o altro) per due motivi:
– intanto non lo metteresti perché semmai lଠci andrebbe l’indirizzo del mittente <[your-email]> com’era prima, ma se metti quello va in spam o peggio
– e di conseguenza perché l’host può richiedere che le email inviate via WP provengano da un indirizzo valido sul tuo dominio.
Tutto ciò a meno di non settare SMTP per mandare email attraverso un provider esterno (ma questo non riguarda WP né questo forum).
Quindi in “Da” ci va un qualsiasi indirizzo email che appartenga allo stesso dominio in cui risiede il tuo WP, purché sia valido: o contactform@tuodominio.com, o quello che chiedi al tuo provider@tuodominio.com se ne hanno uno di preferenza, o noreply@tuodominio.com. Oppure forse puoi anche lasciarlo vuoto perché mi par di ricordare che WP di default metta wordpress@tuodominio.com se non trova nulla. Davanti metterai [your name] per avere il nome del mittente, cosà¬: from: [your name] <contactform@tuodominio.com>.
Tutto ciò basta testarlo e sà¬, dovrai testarlo online perché spesso i server locali non hanno la funzionalità di posta elettronica.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.