Problem med jmail.
Skal sende et mail med html, men kan ikke rigtigt få det til at virke.Kode:
strSQL = "Insert into rabatten (name,birthday,address,zipcode,city,email) values('"& request.form("fullname")&"','"& request.form("birthday")& "','"& request.form("address")& "','"& request.form("zipcode")& "','"& request.form("city")& "','"& request.form("email")& "')"
'response.write strSQL
' SQL sætning eksekveres
conn.Execute(strSQL)
strSQLid = "SELECT id from rabatten WHERE email='"& request.form("email")& "'"
'response.write strSQLid
' SQL sætning eksekveres
set RS = conn.execute(strSQLid)
subject = "Jourblomman/Rabatten"
recipient = Request.Form("email")
body = "Här kommer ditt presentkort på 50:-" & Chr(13) & Chr(10)
body = body & "Skriv ut detta mail och fyll i dina uppgifter på kortet." & Chr(13) & Chr(10)
body = body & "Födelsedag: " & Request.Form("birthday") & Chr(13) & Chr(10)
body = body & "Namn: " & Request.Form("fullname") & Chr(13) & Chr(10)
body = body & "Adress: " & Request.Form("address") & Chr(13) & Chr(10)
body = body & "Postnummer: " & Request.Form("zipcode") & Chr(13) & Chr(10)
body = body & "Stad: " & Request.Form("city") & Chr(13) & Chr(10)
body = body & "E-Post: " & Request.Form("email") & Chr(13) & Chr(10) & Chr(13) & Chr(10)
body = body & "Är informationen fel, skicka ett mail till webmaster@jourblomman.se" & Chr(13) & Chr(10)
'OBS OBS Her opstår problemerne
body = body & "<img src='http://www.jourblomman.se/bilder/presentkort.jpg' width='567' height='300'>" & Chr(13) & Chr(10)
body = body & "<font color='#000000' size='7' face='Verdana, Arial, Helvetica, sans-serif'><strong>Nummer000 "& =rs('id') &" </strong></font>"
Fejlmeddelse:
Kompileringsfel i Microsoft VBScript (0x800A03EA)
Syntaxfel
/jourblomman2/laggTillRabatten.asp, line 45, column 113
body = body & "<font color='#000000' size='7' face='Verdana, Arial, Helvetica, sans-serif'><strong>Nummer000 "& =rs('id') &" </strong></font>"
