Kontrolere min mail-script kode
Forhåbentlig et lille nemt spørgsmål:Jeg har følgende kode, fra et demo script:
strBodyText = strBodyText & "Ordre/Order: #"&ID&"" + vbCrLf
strBodyText = strBodyText & "Transaction: #"&TransID&"" + vbCrLf
strBodyText = strBodyText & "Ordre Dato/Order Date: "&RS("DateTime")&"" + vbCrLf
strBodyText = strBodyText & "" + vbCrLf
strBodyText = strBodyText & " "&RS("Name")&"" + vbCrLf
strBodyText = strBodyText & " "&RS("Address")&"" + vbCrLf
strBodyText = strBodyText & " "&RS("ZipCode")&"" + vbCrLf
strBodyText = strBodyText & " "&RS("City")&"" + vbCrLf
strBodyText = strBodyText & " "&RS("Phone")&"" + vbCrLf
strBodyText = strBodyText & " "&RS("Email")&"" + vbCrLf
strBodyText = strBodyText & "" + vbCrLf
Jeg skal så have tilføjet nogle få linier i den automatiske mail.
Derved kommet filen til at se således ud:
strBodyText = strBodyText & "Bekræftelse af betaling / Confirmation of payment" + vbCrLf
strBodyText = strBodyText & "" + vbCrLf
strBodyText = strBodyText & "Ordre/Order: #"&ID&"" + vbCrLf
strBodyText = strBodyText & "Transaction: #"&TransID&"" + vbCrLf
strBodyText = strBodyText & "Ordre Dato/Order Date: "&RS("DateTime")&"" + vbCrLf
strBodyText = strBodyText & "" + vbCrLf
strBodyText = strBodyText & "Ordregiver / Customer:" + vbCrLf
strBodyText = strBodyText & " "&RS("Name")&"" + vbCrLf
strBodyText = strBodyText & " "&RS("Address")&"" + vbCrLf
strBodyText = strBodyText & " "&RS("ZipCode")&"" + vbCrLf
strBodyText = strBodyText & " "&RS("City")&"" + vbCrLf
strBodyText = strBodyText & " "&RS("Phone")&"" + vbCrLf
strBodyText = strBodyText & " "&RS("Email")&"" + vbCrLf
strBodyText = strBodyText & "" + vbCrLf
strBodyText = strBodyText & "Lejlighed-Pris / Apartment-Price:" + vbCrLf
Er det korrekt lavet ??
Er det i orden, bare at skrive mellem de to "er
Der er ikke nogen max længde ??
Jeg ville blive glad, hvis der var nogen der lige ville sige god for eksemplet, da det er lidt besværligt selv at teste, når det nu er et betalingsmodul.
Mange tak
Peter
