' Get the recipients mailbox from a form (note the lack of an equal sign).
JMail.AddRecipient "info@vincore.com"
' The body property is both read and write.
' If you want to append text to the body you can
' use JMail.Body = JMail.Body & "Hello world!"
' or you can use JMail.AppendText "Hello World!"
' which in many cases is easier to use.
JMail.Body = "hej"
' Must make sure that IUSR_???? has access to the following files.
' I've disabled the attachments and footer in this demo
'JMail.AppendBodyFromFile "e:\mail\standard_footer.txt"
'JMail.AddAttachment "e:\products\MyProduct.exe"
Någon som ser felet här, jag får bara att sidan inte kan laddas??
Det felmeddelandet brukar vara IEs fel. Gå in i inställningarna och avmarkera Friendly http error messages eller Egna http-felmeddelanden, så får du ett riktigt felmeddelande.
Jag installerade Jmail på min IIS server och körde koden för att skicka mail.. fungerade kanon... Sen laddade jag upp samma kod till mitt webhotell och körde den där, då får jag detta meddelande..
jmail.SMTPMail error '8000ffff'
The message was undeliverable. All servers failed to receive the message
The error you're getting is a general error. JMail was unable to connect to the mailserver, perhaps an incorrect serveraddress has been set in
JMail.ServerAddress.
Enable logging by setting
JMail.Logging = true.Then read JMail.Log
with
Response.Write jmail log
Om du har Tiscali som ISP är det nog så att du får använda deras mailserver för att skicka mail, men bara om du sitter på deras nät. Webhotellets server får alltså inte prata med Tiscalis mailserver, och det är som det borde vara.
Kanske har webhotellet en egen mailserver du kan använda för att skicka mail med JMail?
Mvh,
383 ms totalt · 4 externa anrop · v20260731065814-full.6fe65c25