> -----Message d'origine----- > De : Tracy [mailto:[EMAIL PROTECTED] > Envoy=E9 : jeudi 29 avril 2004 01:24 > =C0 : [EMAIL PROTECTED] > Objet : [xmail] Re: Is there a limit to the length of a=20 > response string=20 >=20 >=20 > At 18:58 4/28/2004, you wrote: > > > Is there a limit to the number of characters that can be=20 > sent to the > > > connected SMTP client using SMTPSendError? In glancing=20 > through it, I can't > > > see a limit, but I'm getting session hangs with some of=20 > my error messages > > > (which are, admittedly, fairly long)... > > > >512 >=20 > So, if I add a local routine that will convert "\n" to CRLF,=20 > the following=20 > string would be within the limits? >=20 > "450-Your mail has been blocked from my server.\n450-Your=20 > mail was blocked=20 > because the IP address of your server\n450-has been found in=20 > the headers of=20 > unacceptable mail (spam)\n450-received here. Examples of=20 > unacceptable mail=20 > would be:\n450-viruses, bounces to forged senders, unsolicited bulk=20 > email,\n450-or any mail which generates complaints from my=20 > users.\n450-For=20 > questions, or to remove my local block, please visit\n450=20 > http://www.arisiasoft.com/Mailblock/blocked.aspx" >=20
Why not simply send a : "450 - Mail blocked. See = http://www.arisiasoft.com/Mailblock/blocked.aspx for reasons." Short, is not it ? I don't think placing complete description of possible errors at smtp = level plus a link (that will certainly say the same) help more than sending a short desc with a link... > The reason I ask is because I'm logging some session data=20 > (including the=20 > string sent back to the client), and it appears to be getting=20 > truncated=20 > about 1/2 way through. Of course, this could be an artifact=20 > of the logging=20 > I'm using - it may be getting truncated when logging rather=20 > than when sent=20 > to the client. =20 >=20 For tracking purpose you can add an 'internal' code in the message as : "450 - (450-1) Mail blocked. See http://www.arisiasoft.com/Mailblock/blocked.aspx for reasons." "450 - (450-2) Virus found. See http://www.arisiasoft.com/Mailblock/blocked.aspx for reasons." .. .. .. > - > To unsubscribe from this list: send the line "unsubscribe xmail" in > the body of a message to [EMAIL PROTECTED] > For general help: send the line "help" in the body of a message to > [EMAIL PROTECTED] >=20 - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]