Det är inte så lätt att man kan använda Server.HTMLEncode(dinSträng)?
------------------
"When the 500 isn't right, you're in hell, when a Superbike isn't right, it's ok"
Valentino Rossi, Nastro Azurro Honda
8 svar · 316 visningar · startad av Bendro
Hur får jag ASPmail att tycka om våra vackra bokstäver å, ä och ö?
------------------
"You can not solve todays problems with the same level of thinking that created the problems in the first place" Albert Einstein
Det är inte så lätt att man kan använda Server.HTMLEncode(dinSträng)?
------------------
"When the 500 isn't right, you're in hell, when a Superbike isn't right, it's ok"
Valentino Rossi, Nastro Azurro Honda
Kan väl testa..men undrar om det är det som är felet. Tror att man måste ange något i ASP-mail. Har läst igenom det jag hittar på nätet, men antingen är det för tekiskt för mig eller så är jag helt enkelt för seg idag.
Ett ex på hur det ser ut i mailen..ordet Förnamn kommer fram till mottagaren så här: F6rnamn
------------------
"You can not solve todays problems with the same level of thinking that created the problems in the first place" Albert Einstein
Testat Server.HTMLEncode(dinSträng) och det funkar inte.
------------------
"You can not solve todays problems with the same level of thinking that created the problems in the first place" Albert Einstein
I vilket format skickar du brevet?
Kan man välja Mime osv.?
------------------
"When the 500 isn't right, you're in hell, when a Superbike isn't right, it's ok"
Valentino Rossi, Nastro Azurro Honda
Så här ser koden ut...
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = Request.Form("fnamn") 'från namn
Mailer.FromAddress = Request.Form("email") ' epost till den som skickat
Mailer.RemoteHost = "mail.it-punkten.com" 'mailservern
Mailer.AddRecipient "Mikael Olsson", "dick@doityourself.se" 'skicka mailet till
Mailer.ReturnReceipt = false
Mailer.ConfirmRead = false
Mailer.Subject = "Min åsikt"
strBody = "Förnamn: " & Request.Form("fnamn") &vbcrlf
strBody = strBody & "Efternamn: " & Request.Form("enamn") &vbCrLf
strBody = strBody & "E-post Adress: " & Request.Form("email") &vbCrLf
strBody = strBody & "Meddelande: " & Request.Form("texta") &vbCrLf
Mailer.BodyText = strBody
Mailer.CharSet = 2
If Mailer.SendMail Then
Response.Redirect("kontakt.asp?skickat=ja")
Else
Response.Redirect("kontakt.asp?skickat=nej")
End If
------------------
"You can not solve todays problems with the same level of thinking that created the problems in the first place" Albert Einstein
Det finns ju en funktion som heter CustomCharSet, den kanske går att använda i detta fall.
Jag har aldrig använt ASPMail så jag vet inte, jag vet inte heller i vilket format brevet skall skickas i för att Å Ä Ö skall vara giltliga.
------------------
"When the 500 isn't right, you're in hell, when a Superbike isn't right, it's ok"
Valentino Rossi, Nastro Azurro Honda
Dom CharSet jag har att välja på är US ASCII och ISO-8859-1.
Mailer.CharSet=2 är ISO-8859-1 och det är ju det som är angivet i min kod. Några andra inställningsmöjligheter när det gäller CharSet hittade jag inte i den infotext jag fått tag på om ASP-mail
------------------
"You can not solve todays problems with the same level of thinking that created the problems in the first place" Albert Einstein
Som sagt, den jag skrev ovan finns också. Men jag vet inte vilken du skall välja i den ;)
Vilket format skickas brev i som kan innehåll Å Ä Ö?
------------------
"When the 500 isn't right, you're in hell, when a Superbike isn't right, it's ok"
Valentino Rossi, Nastro Azurro Honda