Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 4th, 2006, 05:10 AM
Friend of Wrox
 
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default Line break on mail sent

hello

I made a activation script to the registers of my page, and in the message that follows for mail I wanted to send for example:

Code:
Dim SendMail As New MailMessage
...
SendMail.Body ="Hello <break> Thanks for register! <break> Please click in order to proceed to activaction <break> " & link 
...
what can I write instead of "<break>" to obtain the break line?

Anyone can help please?

Mail format: "text"

Thanks



 
Old September 4th, 2006, 10:39 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

VB.NET : vbCRLF
C#: "\r\n";

If you are sending the email as HTML you can use <BR> if sending as plain text, the above methods should work

hth

"The one language all programmers understand is profanity."
 
Old September 4th, 2006, 11:32 AM
Friend of Wrox
 
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks!

I'm using vb!

vbCrLf works fine!

Max

 
Old September 4th, 2006, 11:45 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Glad it worked.

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
Line Break in CrossTab timothyc Crystal Reports 0 March 12th, 2008 09:25 PM
line break Cyber Shiva HTML Code Clinic 1 May 17th, 2007 06:04 AM
line break problem XSLT 1 February 20th, 2006 11:18 AM
break up line crmpicco Javascript How-To 1 June 6th, 2005 06:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.