Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1568
  • Last Modified:

send e-mail with asp

Hey,

I send an automatic email to users after they have completed a form. Recently though, the e-mail is being block by some spam filters with the following error:

 ----- Transcript of session follows -----
.. while talking to gw1.security.comendo.com
>>> DATA
<<< 552 5.6.0 Body line too long (see RFC2822 section 3.5)

I have been told that the error might be in the break lines of my script which look like that:

 str = str & "  <span" & cssBold & ">Configurator link:</span> " & config_url & "<br>"

Any thoughts?
0
webdesigner_dk
Asked:
webdesigner_dk
  • 2
1 Solution
 
RobOwner (Aidellio)Commented:
You will need to break the line with \r\n.  Even though you're using <br> that doesn't break the line as the line is interpreted as text.  By using \r\n you are sending the command to break the line.
0
 
RobOwner (Aidellio)Commented:
http://www.ietf.org/rfc/rfc2822.txt

3.5 Overall message syntax

   A message consists of header fields, optionally followed by a message
   body.  Lines in a message MUST be a maximum of 998 characters
   excluding the CRLF, but it is RECOMMENDED that lines be limited to 78
   characters excluding the CRLF.  (See section 2.1.1 for explanation.)
   In a message body, though all of the characters listed in the text
   rule MAY be used, the use of US-ASCII control characters (values 1
   through 8, 11, 12, and 14 through 31) is discouraged since their
   interpretation by receivers for display is not guaranteed.

CRLF is "Carriage Return Line Feed" which is \r\n

so to take part of your code above:

str = str & "  <span" & cssBold & ">Configurator link:</span> " & config_url & "<br>\r\n"

Open in new window

0
 
webdesigner_dkAuthor Commented:
Thanks! That solved it!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now