Jmail problemer
Jeg har lidt problemer med min Jmail script... Kan det være fordi at den server jeg bruger, skal have login og password? hvis ja, hvordan får jeg så det ind i min kode?Her er min kode:
set msg = Server.CreateOBject( "JMail.Message" )
msg.Logging = true
msg.silent = true
msg.From = "mette.ulrik@adslhome.dk"
msg.FromName = "Afsender"
msg.AddRecipient "mette.ulrik@adslhome.dk", "Ulrik"
msg.AddRecipient "ulro01ab@student.cbs.dk"
msg.Subject = "Dur denne test?"
msg.Body = "Hej Ulrik" & vbCrLf & vbCrLf & "Dur min mail? ..."
if not msg.Send("195.85.218.52" ) then
Response.write "<pre>" & msg.log & "</pre>"
else
Response.write "Message sent succesfully!"
end if
***********************************************
Og her er min fejlmeddelelse:
{
Trying server mail:195.85.218.52
<- 220 s1-12m832-8.dotserv.com ESMTP MailEnable Service, Version: 0-1.19- ready at 01/01/05 16:07:45
-> EHLO s1-2m831-1
<- 250-s1-12m832-8.dotserv.com [195.85.218.52], this server offers 4 extensions
250-AUTH LOGIN
250-SIZE 1125000000
250-HELP
250 AUTH=LOGIN
-> MAIL FROM:
<- 250 Requested mail action okay, completed
-> RCPT TO:mette.ulrik@adslhome.dk
<- 503 This mail server requires authentication. Please check your mail client settings.
-> RCPT TO:ulro01ab@student.cbs.dk
<- 503 This mail server requires authentication. Please check your mail client settings.
-> DATA
<- 503 Bad sequence of commands. You must specify the recipients of a message before you can send it
Error: 503 Bad sequence of commands. You must specify the recipients of a message before you can send it
.execute()
{
Trying server mail:195.85.218.52
<- 220 s1-12m832-8.dotserv.com ESMTP MailEnable Service, Version: 0-1.19- ready at 01/01/05 16:07:45
-> EHLO s1-2m831-1
<- 250-s1-12m832-8.dotserv.com [195.85.218.52], this server offers 4 extensions
250-AUTH LOGIN
250-SIZE 1125000000
250-HELP
250 AUTH=LOGIN
-> MAIL FROM:
<- 250 Requested mail action okay, completed
-> RCPT TO:mette.ulrik@adslhome.dk
<- 503 This mail server requires authentication. Please check your mail client settings.
-> RCPT TO:ulro01ab@student.cbs.dk
<- 503 This mail server requires authentication. Please check your mail client settings.
-> DATA
<- 503 Bad sequence of commands. You must specify the recipients of a message before you can send it
Error: 503 Bad sequence of commands. You must specify the recipients of a message before you can send it
1 of 1 servers failed
}
