Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - General - Error - SMTP inserting spaces
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

General - Error - SMTP inserting spaces

 Post Reply Post Reply
Author
luwandui View Drop Down
Groupie
Groupie


Joined: 10 August 2011
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote luwandui Quote  Post ReplyReply Direct Link To This Post Topic: General - Error - SMTP inserting spaces
    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?

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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"
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.