Ciao a tutti
Il mio problema è che nella pagnia SENDMAIL non riesce ad inviarmi l'allegato...
Quando ricvo la mail dal sito, mi compare tutto e al posto di ricevere il file in allegato vedo solo il PATH da dove è stato preso l'allegato...
COME FARE ?
Grazie a tutti per la collaborazione.....
vi allego la mia pagina così vedete....
----------------------------------------------------------
<%@LANGUAGE="VBSCRIPT"%>
<html>
<head>
<title>Commento o invio materiale per inserimento nel sito</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body leftmargin="1" topmargin="38">
<%
if Request.Form("invia_btn") = "INVIA" then
Dim Mail
Set objMail = Server.CreateObject("CDONTS.NewMail")
strFrom = Request.Form("mittente")
strTxt = "<font face= arial size=2> DATI :
"
strTxt = strTxt & "<font face= arial size=2>--------------------------------------
"
strTxt = strTxt & " Nome: <font face= arial size=4>" & Request.Form("nome") & "</font>
"
strTxt = strTxt & "Cognome: <font face= arial size=4>" & Request.Form("cognome") & "</font>
"
strTxt = strTxt & " Email: <font face= arial size=2>" & Request.Form("mittente") & "</font>
"
strTxt = strTxt & " Email: <font face= arial size=2>" & Request.Form("messaggio") & "</font>
"
strTxt = strTxt & " Email: <font face= arial size=2>" & Request.Form("FILE") & "</font>
"
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = strFrom
objMail.To = "XXXXX@XXXXX.it"
objMail.Subject = ("Commento dal sito XXXXXXX")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = strTxt
objMail.Importance = 1
objMail.Send
Set objMail = Nothing
Response.Write "<CENTER>
<font color=#E68A00 size=2 face=Verdana, Arial, Helvetica, sans-serif>Il tuo messaggio è statao inviato correttamente</font></CENTER>
"
Response.Write "<center><input type=reset onclick=window.close() name=Submit value=CHIUDI style=font-family:verdana; font-size:11px; color:#E68A00></center>"
else
%>
<form action="mail.asp" method="post">
<table width="348" height="276" border=0 align=center cellpadding="2" cellspacing="3">
<tr valign="middle">
<td height="25" colspan="3"><div align="center"><font color="#E68A00" size="2" face="Verdana, Arial, Helvetica, sans-serif">INSERISCI
I TUOI DATI</font></div></td>
</tr>
<tr valign="middle">
<td height="25"><div align="right"><font color="#E68A00" size="1" face="Verdana, Arial, Helvetica, sans-serif">NOME:</font></div></td>
<td height="25" colspan="2"><input name="nome" type="text" id="NOME" style="font-family:verdana; font-size:11px; color:#0000FF" size="25"></td>
</tr>
<tr valign="middle">
<td height="25"><div align="right"><font color="#E68A00" size="1" face="Verdana, Arial, Helvetica, sans-serif">COGNOME:</font></div></td>
<td height="25" colspan="2"><input name="cognome" type="text" id="COGNOME" style="font-family:verdana; font-size:11px; color:#0000FF" size="25"></td>
</tr>
<tr valign="middle">
<td width="95" height="25"> <div align="right"><font color="#E68A00" size="1" face="Verdana, Arial, Helvetica, sans-serif">E-MAIL:</font></div></td>
<td height="25" colspan="2"> <input type="text" name="mittente" size="25" style="font-family:verdana; font-size:11px; color:#0000FF">
</td>
</tr>
<tr valign="middle">
<td height="74" align=center valign="top"> <div align="right"><font color="#E68A00" size="1" face="Verdana, Arial, Helvetica, sans-serif">RICHIESTE
PARTICOLARI:</font> </div></td>
<td colspan="2" align=center valign="top"> <div align="left">
<textarea name="messaggio" rows="4" cols="34" style="font-family:verdana; font-size:11px; color:#0000FF"></textarea>
</div></td>
</tr>
<tr>
<td height="25" align=center valign="top"><font color="#E68A00" size="1" face="Verdana, Arial, Helvetica, sans-serif">ALLEGA
FILE</font></td>
<td colspan="2" align=left valign="top"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="FILE" type="file" id="FILE" size="25" />
</font></td>
</tr>
<tr>
<td height="25" align=center></td>
<td align=center></td>
<td align=center></td>
</tr>
<tr>
<td height="25" align=center></td>
<td width="88" align=center><div align="left">
<input type="submit" name="invia_btn" value="INVIA" style="font-family:verdana; font-size:11px; color:#000099">
</div></td>
<td width="131" align=center> <div align="center">
<input type="reset" onclick="window.close()" name="Submit" value="CHIUDI" style="font-family:verdana; font-size:11px; color:#000099">
</div></td>
</tr>
</table>
</p>
</div>
</form>
<div align="left">
<%
end if
%>
<p align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font></p>
</div>
</body>
</html>

Rispondi quotando