Salve,
sto per la prima volta provando a realizzare una pagina ASP per inviare email.
Il risultato č che l'email viene inviata, ma con tutti i campi vuoti (nessun soggetto, nessun messaggio, ...):
Il codice che utilizzo č alquanto semplice:
<form name="form1" action="mailsent.asp" method="post">
Nome
<input type="text" name="nome" value=" ">
Email del mittente:
<input name="mailfrom" type="text" id="contact_email" value=".">
Soggetto
<input type="text" name="soggetto" >
Messaggio
<textarea name="messaggio" rows="10" cols=50 value=" "></textarea>
<input type="submit" name="invia_btn" value="INVIA" >
</form>
<%
' config posta
cSmtpServer = "smtp.aruba.it"
cSmtpPort = "25"
cSMTPUser = ""
cSMTPPassword = ""
Set myMail = Server.CreateObject("CDO.Message")
myMail.Subject = request.Form ("soggetto")
myMail.From = request.Form ("mailfrom")
myMail.To = "info@xx.it"
myMail.HTMLBody = request.Form("messaggio")
myMail.Send
Set myMail = Nothing
%>
Grazie