<%
email = "
[email protected]"
MailAdmin = "
[email protected]"
sito = "Dal Sito 选择的支付方式"
MyBody = "<html><body><center>" & MyBody & "</center></body></html>"
MyBody = MyBody & "<table width=""300"" bgcolor=""#E0E0E0"" border=""1"" align=""center"">" & chr(13) & chr(10)
MyBody = MyBody & "<caption>Prova in HTML</caption>" & chr(13) & chr(10)
MyBody = MyBody & "<tr><th>Prodotti</th><th>选择的支付方式</th></tr>" & chr(13) & chr(10)
MyBody = MyBody & "</table>"
' IMPOSTAZIONE BASE, SMTP SENZA AUTENTICAZIONE
strHost = "smtp.aruba.it"
Session.CodePage = 65001 'UTF-8 code
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = strHost
Mail.From = email
Mail.AddAddress MailAdmin
' soggetto messaggio
Mail.Subject = Mail.EncodeHeader(sito, "utf-8")
' messaggio in html
Mail.IsHTML = True
Mail.Body = MyBody
Mail.CharSet = "UTF-8"
Mail.ContentTransferEncoding = "Quoted-Printable"
strErr = ""
bSuccess = False
On Error Resume Next 'catch errors
Mail.Send ' send message
If Err <> 0 Then 'error occurred
strErr = Err.Description
else
bSuccess = True
Response.Write "<p>Email inviata correttamente!</p>"
End If
%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8">
<TITLE>AspEmail: Invio semplice</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H2>AspEmail</h2>
<% If strErr <> "" Then %>
<h3><FONT COLOR="#FF0000">Errore: <I><% = strErr %></I></FONT></h3>
<% End If %>
<% If bSuccess Then %>
<h3><FONT COLOR="#00A000">Inviata correttamente a <% = Request("To") %>.</FONT></h3>
<% End If %>
<FORM METHOD="POST" ACTION="prova2.asp">
<TABLE CELLSPACING=0 CELLPADDING=2 BGCOLOR="#E0E0E0">
<TR>
<TD>Host :</TD>
<TD><B><% = strHost %></B></TD>
</TR>
<TR>
<TD>Da :</TD>
<TD><INPUT TYPE="TEXT" NAME="From"></TD>
</TR>
<TR>
<TD>Nome Mittente:</TD>
<TD><INPUT TYPE="TEXT" NAME="FromName" value="nome mittente"></TD>
</TR>
<TR>
<TD>A:</TD>
<TD><INPUT TYPE="TEXT" NAME="To"></TD>
</TR>
<TR>
<TD>Oggetto:</TD>
<TD><INPUT TYPE="TEXT" NAME="Subject" value="Prova componente mail"></TD>
</TR>
<TR>
<TD>Messaggio:</TD>
<TD><TEXTAREA NAME="Body">Prova in corso</TEXTAREA></TD>
</TR>
<TR>
<TD COLSPAN=2><INPUT TYPE="SUBMIT" NAME="Send" VALUE="Invia"></TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>