Solved

send e-mail with asp

Posted on 2013-12-04
3
1,526 Views
Last Modified: 2013-12-04
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
Comment
Question by:webdesigner_dk
  • 2
3 Comments
 
LVL 43

Expert Comment

by:Rob
ID: 39694987
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
 
LVL 43

Accepted Solution

by:
Rob earned 500 total points
ID: 39694990
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
 

Author Comment

by:webdesigner_dk
ID: 39695098
Thanks! That solved it!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question