JMain-problem ved punktum efter snabel-a (ved Azero)
Hej.Jeg har problemer med JMail hos Azero, når der er mere end ét punktum efter @'et, f.eks. mail@hello.firma.dk. Hvis det er mail@firma.dk, går det godt.
Jeg har følgende funktion til at sende med:
public Function sendMail(sender, receiver, subject, body)
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.Logging = True
JMail.Silent = True
JMail.ServerAddress = "###"
JMail.Sender = sender
JMail.Subject = subject
JMail.AddRecipient receiver
JMail.Body = body
JMail.Priority = 3
JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
If Not JMail.Execute Then
Response.Write "ERROR MESSAGE: " & JMail.ErrorMessage & "<br>"
Response.Write "ERROR SOURCE: " & JMail.ErrorSource & "<br>"
Response.Write "LOG: <pre>" & JMail.Log & "</pre>" & vbCrLf
Else
Response.Write "Emailen er sendt!"
Response.Write "LOG: <pre>" & JMail.Log & "</pre>" & vbCrLf
End If
Set JMail = Nothing
End Function
Dette giver ved mere end ét punktum efter @'et følgende fejl:
ERROR MESSAGE: The message was undeliverable. All servers failed to receive the message
ERROR SOURCE: SMTPConnect()
LOG:
The message was undeliverable. All servers failed to receive the message
.execute()
{
Trying server mail:mail.###.dk
<- 220 tina.andersenit.dk ESMTP Merak 7.4.5 RIKKE; Mon, 11 Apr 2005 20:51:27 +0200
-> EHLO ###
<- 250-tina.andersenit.dk Hello ### [###], pleased to meet you.
250-ENHANCEDSTATUSCODES
250-SIZE
250-EXPN
250-ETRN
250-ATRN
250-DSN
250-CHECKPOINT
250-8BITMIME
250-AUTH CRAM-MD5 DIGEST-MD5 LOGIN PLAIN
250-AUTH=LOGIN
250 HELP
-> MAIL FROM:
<- 250 2.1.0 ... Sender ok
-> RCPT TO:
<- 550 5.7.1 ... we do not relay
-> DATA
<- 503 No recipient(s).
Error: 503 No recipient(s).
.execute()
{
Trying server mail:mail.###.dk
<- 220 tina.andersenit.dk ESMTP Merak 7.4.5 RIKKE; Mon, 11 Apr 2005 20:51:27 +0200
-> EHLO ###
<- 250-tina.andersenit.dk Hello ### [###], pleased to meet you.
250-ENHANCEDSTATUSCODES
250-SIZE
250-EXPN
250-ETRN
250-ATRN
250-DSN
250-CHECKPOINT
250-8BITMIME
250-AUTH CRAM-MD5 DIGEST-MD5 LOGIN PLAIN
250-AUTH=LOGIN
250 HELP
-> MAIL FROM:
<- 250 2.1.0 ... Sender ok
-> RCPT TO:
<- 550 5.7.1 ... we do not relay
-> DATA
<- 503 No recipient(s).
Error: 503 No recipient(s).
1 of 1 servers failed
}
Er der nogen, der har en idé om, hvad jeg kan gøre for at løse problemet?
På forhånd tak,
Mads Pedersen