Hej!
Använder Imail mailserver och Dimac mailkomponent.. får följande felmeddelande två ggr på samma sida:
The message was undeliverable. All servers failed to receive the message
ClientLogging enabled: Client Remote Address: 212.116.80.103
.execute()
{
Trying server mail:mail.sluzzen.com
<- 220 X1 NT-ESMTP Server sluzzen.com (IMail 6.06 EVAL 1-1)
-> EHLO jymdis
<- 250-sluzzen.com says hello
250-SIZE 0
250-8BITMIME
250-DSN
250-ETRN
250 EXPN
-> MAIL FROM:
<- 250 ok
-> RCPT TO:
<- 550 not local host home.se, not a gateway
-> DATA
<- 503 must have sender and recipient first
Error: 503 must have sender and recipient first
ClientLogging enabled: Client Remote Address: 212.116.80.103
.execute()
{
Den mycket enkla frågan, med vad jag tycker ett mycket svårare svar är, vad gör jag för fel?
------------------
-------------------
Andreas Lännerberg
Jag hör till dom som betalar mina räkningar med glädje, men dom vill hellre ha betalt i pengar.
' Create the JMail message Object
set msg = Server.CreateOBject( "JMail.Message" )
' Set logging to true to ease any potential debugging
' And set silent to true as we wish to handle our errors ourself
msg.Logging = true
msg.silent = true
' Most mailservers require a valid email address
' for the sender
msg.From = "register@sluzzen.com"
msg.FromName = "Sluzzen Registrering"
' Next we have to add some recipients.
' The addRecipients method can be used multiple times.
' Also note how we skip the name the second time, it
' is as you see optional to provide a name.
msg.AddRecipient "jymdspionen@tjohoo.se"
' The subject of the message
msg.Subject = "Välkommen till Sluzzen Community"
' 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.
'
' Note the use of vbCrLf to add linebreaks to our email
msg.Body = "Grattis!" & vbCrLf & vbCrLf & "Som nybliven medlem hos Sluzzen Community kan du chatta, irca och en massa annat." & vbCrLf & vbCrLf & " Din aktiveringskod: " & Recordset1("Aktiveringskod") & " (logga in med ditt nick och password, aktiveringsidan dyker upp!) Hälsningar Sluzzen Staff ( http://www.sluzzen.com )"
' There.. we have now succesfully created our message.
' Now we can either send the message or save it as a draft in a Database.
' To save the message you would typicly use the Message objects Text property
' to do something like this:
'
' SaveMessageDraft( msg.Text )
' Note that this function call is only an example. The function does not
' exist by default, you have to create it yourself.
' If i would like to send my message, you use the Send() method, which
' takes one parameter that should be your mailservers address
'
' To capture any errors which might occur, we wrap the call in an IF statement
if not msg.Send( "mail.sluzzen.com" ) then
Response.write "Ett fel har uppstått. Var vänlig att kontakta admin@sluzzen.com med följande felmeddelande:" & vbCrLf & vbCrLf & "<pre>" & msg.log & "</pre>"
set msg = nothing
else
Response.write "<font face='Verdana, Arial, Helvetica, sans-serif' size='1'>Meddelande skickat!"
set msg = nothing
response.redirect "utloggning.asp"
end if
' And we're done! the message has been sent.
%>
Så ser den ut =)
------------------
-------------------
Andreas Lännerberg
Jag hör till dom som betalar mina räkningar med glädje, men dom vill hellre ha betalt i pengar.
Jag kan ju säga så mycket som att sidan har fungerat innan.. men jag var tvungen å lägga om mailservern så jag gissar att det är den det är fel inställningar eller nåt.. behöver man skapa ett konto eller liknande till Jmail?
/Jymdis
------------------
-------------------
Andreas Lännerberg
Jag hör till dom som betalar mina räkningar med glädje, men dom vill hellre ha betalt i pengar.
273 ms totalt · 4 externa anrop · v20260731065814-full.a51de22e