|
|
||||||||||||||||||
|
:::
António Nunes :::
Armando Frazão :::
::: Bruno Espadana ::: João Coutinho ::: Marta Veríssimo ::: |
||||||||||||||||||
Assinar o Livro de Visitas do Site Olhares.netNota: * Campos de preenchimento obrigatório!!
") End If Flag = request.form("Flag") %>
" response.write "Error Number=" & err.number & " " response.write "Error Descr.=" & err.description & " " response.write "Help Context=" & err.helpcontext & " " response.write "Help Path=" & err.helppath & " " response.write "Native Error=" & err.nativeerror & " " response.write "Source=" & err.source & " " response.write "SQLState=" & err.sqlstate & " " end if IF conn.errors.count> 0 then response.write "Database Errors Occured" & " " response.write SQLstmt & " " for counter= 0 to conn.errors.count response.write "Error #" & conn.errors(counter).number & " " response.write "Error desc. -> " & conn.errors(counter).description & " "
next
else
response.write " " response.write "" response.write "Ver o Livro de Visitas" end if Conn.Close Set conn = nothing ' ***************************************************************** ' The following section of code sends email to the guestbook owner ' when somebody signs the guestbook. If you don't want this feature, ' just remove this block. Please note that this will ONLY work on ' NT SERVER with built-in SMTP!! If it fails, your host does not have ' this installed - comment this part out or check to see if they have ' a third-party email component available (and then reconfigure to use ' that component). ' ' I M P O R T A N T: ' Make sure to replace "your email address here" with YOUR email address! ' ****************************************************************** Set Mail = Server.CreateOBject( "JMail.Message" ) Mail.Logging = true Mail.silent = true ' get the sender's address, and if empty, put your own If request("email")="" then Sender = "email@joaocoutinho.net" ' put your email address here Else Sender = request("email") End If Mail.From = "email@joaocoutinho.net" Mail.FromName = Sender Mail.AddRecipient "email@joaocoutinho.net" ' put YOUR email address here Mail.Subject = "Livro de Visitas www.olhares.net" ' you can change this to whatever you'd like Msg = "Name: " & request("name") & Chr(10) Msg = Msg & "City: " & request("city") & Chr(10) Msg = Msg & "State: " & request("State") & Chr(10) Msg = Msg & "Country: " & request("Country") & Chr(10) Msg = Msg & "URL: " & URL & Chr(10) Msg = Msg & "Comments:" & Chr(10) Msg = Msg & request("Comments") Mail.Body = Msg If not Mail.Send("127.0.0.1") Then ola = 1 Else ola = 2 End If Set Mail = Nothing '********************************************************************* ' END OF EMAIL CODE '********************************************************************* End If %> |
||||||||||||||||||