Fejl Jmail
Hejza, har denne kode som pjelede at virke:strAktiver_kode = Tal1 & Tal2 & Tal3 & Tal4 & Tal5 & Tal6
sql = "INSERT INTO bruger (navn, efternavn, nummer, alder, skole, klasse, bruger, password, mail, aktiv, adgang, aktivkode) values ("
sql = sql & "'" & strNavn & "',"
sql = sql & "'" & strEfternavn & "',"
sql = sql & "'" & strNummer & "',"
sql = sql & "'" & strAlder & "',"
sql = sql & "'" & strSkole & "',"
sql = sql & "'" & strKlasse & "',"
sql = sql & "'" & strBrugernavn & "',"
sql = sql & "'" & strAdgangskode & "',"
sql = sql & "'" & strMail & "',"
sql = sql & "" & 0 & ","
sql = sql & "" & 1 & ","
sql = sql & "'" & strAktiver_kode & "')"
set rs = Conn.ExeCute(sql)
set msg = Server.CreateOBject( "JMail.Message" )
msg.ContentType = "text/html"
msg.Logging = true
msg.silent = true
msg.From = "Noreturn@rasmus-madsen.dk"
msg.FromName = "Rasmus Madsen"
msg.AddRecipient strMail
msg.Subject = "Din kode til Rasmus-Madsen.dk"
msg.Body = "Hej " & strNavn & ". Du har tilmeldt dig vores gæstbog system. <br> Dine data er:<br>Brugernavn : " & strBrugernavn & "<br> Agangskode : " & strAdgangskode & ".<br>Alt dette kan selvfølge ændres når du logger ind. <br>NB. Tryk på det nedestående link for din bruger bliver aktiv !. <p><br>Hilsen Rasmus Madsen (.dk) <a href=Http://www.rasmus-madsen.dk/klasse/system/aktiver.asp?aktiver_kode=" & strAktiver_kode & "&bruger=" & strBrugernavn &" >Aktiver her...</a>"
if not msg.Send("mail.rasmus-madsen.dk") then
Response.write msg.log
else
strText = "Din bruger er nu oprettet. Men kan ikke bruges før du klikker på linket i den mail der lige er sendt..."
end if
Men får denne besked:
The message was undeliverable. All servers failed to receive the message ClientLogging enabled: Client Remote Address: 80.160.115.36 .execute() { Trying server mail:mail.rasmus-madsen.dk <- 220 mailserv02.cliche.dk ESMTP MailMax 5.5 Tue, 07 Oct 2003 14:25:54 +0200 -> EHLO webserv06 <- 250-mailserv02.cliche.dk Hello [195.249.40.105] Pleased to meet you 250-ETRN 250-SIZE 250-AUTH LOGIN 250-AUTH=LOGIN 250 HELP -> MAIL FROM: <- 250 ... Sender ok -> RCPT TO:jeT_fox_madsen@hotmail.com <- 550 You must check your mail from this IP or SMTP Auth before sending to jeT_fox_madsen@hotmail.com -> DATA <- 503 Need RCPT Error: 503 Need RCPT ClientLogging enabled: Client Remote Address: 80.160.115.36 .execute() { Trying server mail:mail.rasmus-madsen.dk <- 220 mailserv02.cliche.dk ESMTP MailMax 5.5 Tue, 07 Oct 2003 14:25:54 +0200 -> EHLO webserv06 <- 250-mailserv02.cliche.dk Hello [195.249.40.105] Pleased to meet you 250-ETRN 250-SIZE 250-AUTH LOGIN 250-AUTH=LOGIN 250 HELP -> MAIL FROM: <- 250 ... Sender ok -> RCPT TO:jeT_fox_madsen@hotmail.com <- 550 You must check your mail from this IP or SMTP Auth before sending to jeT_fox_madsen@hotmail.com -> DATA <- 503 Need RCPT Error: 503 Need RCPT 1 of 1 servers failed }
Ved nogen hvorfor?