Print Page | Close Window

General - Error - SMTP inserting spaces

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=29697
Printed Date: 28 March 2026 at 11:13pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: General - Error - SMTP inserting spaces
Posted By: luwandui
Subject: General - Error - SMTP inserting spaces
Date Posted: 25 August 2011 at 10:12am
Hi,

I'm sending long HTML emails via SMTP, however it seems to put a line break in after so many characters (hard to say how many) which can sometimes cause links to not work or just generally mess up the template design.

What's the best way of addressing this?




Replies:
Posted By: dpyers
Date Posted: 26 August 2011 at 5:30pm
It's likely that it's a setting in your email client to break at 80 characters.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: WebWiz-Bruce
Date Posted: 26 August 2011 at 5:46pm
Have seen this before with some email components, such as CDONTS.

The way to prevent it is to insert a Carriage Return and Line Break in to the body of the email sent to the mail server.

If you are using ASP with VbScript as I believe you are you need to add vbCrLf between lines eg:-

strEmailBody = "text here" & _
vbCrLf & "<br />next email body line"


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net