Forum 

Forum AspNuke.it - Il tuo Portale OpenSource in ASP

Form invio email

Autore Messaggio
sathurnn

Amatore
Amatore
38 Discussioni



Profilo - sathurnn
07 dicembre 2004 alle 14:36:51 Profilo - sathurnnInvia un messaggio privato Rispondi quotando
Modificato il 07 dicembre 2004 alle 14:37:07

Ho creato un form per la richiesta di attivazione delle email sfruttando quello che si trova nell'amministrazione. Il problema è che quando creo l'input "target", con l'indirizzo email del web master (in questo caso la variabile GLOBAL_SITE_EMAIL), non invia l'email . Devo scrivere nel tag value l'indirizzo completo xxxxx@xxxx.it.


Sapreste aiutarmi

Così nn funziona:

Response.Write "<input type=""hidden"" name=""target"" value=""" & GLOBAL_SITE_EMAIL & """>" & vbCRLF

Così funziona:

Response.Write "<input type=""hidden"" name=""target"" value="xxxx@xxxxxxx.it">" & vbCRLF

Grazie mille
djveleno

Amministratore

Esperto
Esperto
1025 Discussioni



Profilo - djveleno
07 dicembre 2004 alle 16:14:11 Profilo - djvelenoInvia un messaggio privato Rispondi quotando
Non ho capito bene cosa deve fare il modulo, però, hai provato con:

GLOBAL_ACCOUNTS_EMAIL

Se posti il codice magari si riesce a capire dove intervenire.
Ciauzz DJ
---------------
A lavare la testa ai somari, ci si rimette l'acqua e il sapone!

http://aspnuke208.somee.com/Default.asp

sathurnn

Amatore
Amatore
38 Discussioni



Profilo - sathurnn
07 dicembre 2004 alle 16:29:09 Profilo - sathurnnInvia un messaggio privato Rispondi quotando
Praticamente dal sito, attivo delle caselle email gratuite per ogni utente che lo richieda. Ho sfruttato il form per l'invio delle email di aspnuke, ogni richiesta arriva alla casella di posta elettronica del webmaster. Il fatto è che nella funzione sendmail l'argomento TARGET che dovrebbe essere l'indirizzo email del destinatario (cioè il webmaster) non mi viene riconosciuto, quindi, al posto di GLOBAL_SITE_EMAIL devo mettere l'indirizzo completo della casella di posta elettronica (xxxxxx@xxxx.it, per intenderci) altrimenti l'email non viene spedita. Ti posto il codice del form. Grazie ancora

Sub DoAdminMail()
Dim sMsg, bHTML

If Request("do") = "sendmail" Then
bHTML = Request.Form("InHTML")
sMsg = Request.Form("Text")
If bHTML Then
sMsg = CodeMessage(sMsg, False)
end if
If SendMail(Request.Form("Sender"), Request.Form("Target"), Request.Form("Subject"), sMsg, bHTML) Then
sInfoPage = GetTranslation("LANG_EMAIL_SUCCESS")
Else
sInfoPage = GetTranslation("LANG_EMAIL_ERROR")
End If
End If
End Sub






Sub DisplayAdminMailPage()
CreateTopTable "SendMail", "Modulo richiesta attivazione e-mail @elmapuche.it"
Response.Write GLOBAL_SITE_SUBTABLE & vbCRLf
Response.Write "<_form name=""sendingmail"" method=""post"" action=""" & sUrlPage & """>" & vbCRLF
Response.Write "<input type=""hidden"" name=""Do"" value=""sendmail"">" & vbCRLF
Response.Write "<input type=""hidden"" name=""sender"" value=""" & Server.HTMLEncode(sPseudo) & """>" & vbCRLF
Response.Write "<input type=""hidden"" name=""target"" value="""& GLOBAL_SITE_MAIL &""">" & vbCRLF
Response.Write "<input type=""hidden"" name=""subject"" value=""Richiesta attivazione e-mail"">" & vbCRLF
Response.Write " <tr class=""tablelinemain"">" & vbCRLF
Response.Write " <td>" & GetTranslation("LANG_FIELD") & "</td>" & vbCRLF
Response.Write " <td>" & GetTranslation("LANG_VALUE") & "</td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
Response.Write " <tr class=""tableline1"">" & vbCRLF
Response.Write " <td>" & GetTranslation("LANG_SENDER") & "</td>" & vbCRLF
Response.Write " <td><span class=""cell"">" & Server.HTMLEncode(sPseudo) & "</span></td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
Response.Write " <tr class=""tableline2"">" & vbCRLF
Response.Write " <td>" & GetTranslation("LANG_RECIPIENT") & "</td>" & vbCRLF
Response.Write " <td><span>el mapuche</span></td>" & vbCRLF & vbCRLF
Response.Write " </tr>" & vbCRLF
Response.Write " <tr class=""tableline1"">" & vbCRLF
Response.Write " <td>" & GetTranslation("LANG_SUBJECT") & "</td>" & vbCRLF
Response.Write " <td><span>Richiesta attivazione e-mail</span></td>" & vbCRLF& vbCRLF
Response.Write " </tr>" & vbCRLF
Response.Write " <tr class=""tableline2"">" & vbCRLF
Response.Write " <td>Tutte le e-mail sono composte<br>nel formato USER@elmapuche.it<br>Scegli una username da associare,<br>inseriscila nel campo sottostante e, inviala.</td>" &vbCRLF
Response.Write " <td>Successivamente alla creazione della tua casella e-mail<br>ti saranno inviate le istruzioni per la configurazione<br>del client e-mail (Outlook Express, Mozilla Mail etc. etc.)</td>" & vbCRLF
Response.write " </tr>" & vbCRLF
Response.Write " <tr class=""tableline1"">" & vbCRLF
Response.Write " <td>" & GetTranslation("LANG_TEXT") & "</td>" & vbCRLF
Response.Write " <td>" & vbCRLF
AddHTMLAREA "text", "", "", 60, 10, "cell", ""
Response.Write " </td></tr>" & vbCRLF
Response.Write " <tr class=""tableline2"">" & vbCRLF
Response.Write " <td>HTML</td>" & vbCRLF
Response.Write " <td>" & vbCRLF
Response.Write " <select name=""InHTML"" class=""cell"">" & vbCRLF
Response.Write " <option value=""1"" selected>" & GetTranslation("LANG_YES") & "</option>" & vbCRLF
Response.Write " <option value=""0"">" & GetTranslation("LANG_NO") & "</option>" & vbCRLF
Response.Write " </select>" & vbCRLF
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
Response.Write " <tr class=""tablelinemain"">" & vbCRLF
Response.Write " <td colspan=""2""><input type=""button"" class=""button"" name=""bsubmit"" value=""" & GetTranslation("LANG_SUBMIT") & """ onClick=""document.sendingmail.submit()""></td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
Response.Write "<tr class=""tableline1"">" & vbCRLF
Response.Write"<td align=""right""> " & sInfoPage &"</td>" & vbCRLF
Response.Write"<td></td>" & vbCRLF
Response.Write"</tr>" & vbCRLF
Response.Write "</_form>" & vbCRLF
Response.Write "</table>" & vbCRLF
CreateBottomTable ""
End Sub


Spero si legga!
sathurnn

Amatore
Amatore
38 Discussioni



Profilo - sathurnn
07 dicembre 2004 alle 16:37:03 Profilo - sathurnnInvia un messaggio privato Rispondi quotando
Ok con GLOBAL_ACCOUNTS_EMAIL funziona, ma qual'è allora la differenza?
benacus

Avanzato
Avanzato
177 Discussioni



Profilo - benacus
07 dicembre 2004 alle 16:44:52 Profilo - benacusInvia un messaggio privato Rispondi quotando
Modificato il 07 dicembre 2004 alle 16:48:29

Ciao, per caso quello che hai fatto è simile a questo che ho fatto io?

http://www.sirmioneonline.it/email.asp

comunque il problema nell'invio della mail è che il servizio SMTP di win2003 per ragioni di sicurezza non invia mail con mittenti anonimi o quantomeno "diversi" dal formato classico "nomecasella@dominio.x". io sono su aruba e ho lo stesso problema

ciao
---------------
http://www.sirmioneonline.it
sathurnn

Amatore
Amatore
38 Discussioni



Profilo - sathurnn
07 dicembre 2004 alle 17:08:45 Profilo - sathurnnInvia un messaggio privato Rispondi quotando
benacus è simile al tuo, cmq la funzione che svolge è la stessa. cmq il formato della casella di posta è quello classico e, sono le stesse sia in GLOBAL_SITE_EMAIL che GLOBAL _ACCOUNTS_EMAIL....
benacus

Avanzato
Avanzato
177 Discussioni



Profilo - benacus
07 dicembre 2004 alle 17:15:29 Profilo - benacusInvia un messaggio privato Rispondi quotando
so che è strano, ma purtroppo dipende tutto da come l'SMTP interpreta il mittente, anch'io ho avuto qualche problema e ho dovuto fare delle modifiche
ciao [lo]
---------------
http://www.sirmioneonline.it

Log in

Login
Password
Memorizza i tuoi dati:

Cerca

 

Sostieni AspNuke

Un piccolo gesto per aiutarci a mantenere AspNuke.it online

Promo

MusicWebItalia.it
Video Testi Traduzioni Spot Colonne sonore Accordi e Spartiti gratis.

Visitatori

Visitatori Correnti : 217
Membri : 0 offline Anna

Iscritti

 Utenti: 18940
Ultimo iscritto : glauco
Lista iscritti
Messaggi privati: 3373 Commenti: 2210 Immagini: 39 Downloads: 144 Articoli: 49 Pagine: 101 Siti web: 558 Notizie: 180 Sondaggi: 11 Preferiti: 5688598 Post sui forum: 51195 Libro degli ospiti: 4 Eventi: 7

Versioni

Temi