Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components 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 March 7th, 2005, 05:52 PM
Authorized User
 
Join Date: Dec 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to datagram Send a message via AIM to datagram
Default Sendmail

Hello, This code below works fine, its the formatting thats pissing me off. I get the test email, and everything is jumbled together in the body of the message. How do I do line breaks and make each contents of the textbox's display on a different line?


Dim from As String = "*****@*****.com"
Dim mailto As String = "******@****.org"
Dim subject As String = "Test"
Dim body As String = TextBox1.Text & TextBox2.Text & TextBox3.Text & TextBox4.Text & TextBox5.Text & TextBox6.Text

SmtpMail.SmtpServer = "***.***.***"
SmtpMail.Send(from, mailto, subject, body)
 
Old March 7th, 2005, 06:04 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;How do I do line breaks and make each contents of the textbox's display on a different line?
Using vbCrLf for each line breaK:

Eg: Dim body As String = TextBox1.Text & vbCrLf & TextBox2.Text..

Wind is your friend
Matt
 
Old March 7th, 2005, 06:09 PM
Authorized User
 
Join Date: Dec 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to datagram Send a message via AIM to datagram
Default

Thank you very much for such a quick reply. This has been bugging me for an hour now and the help files do not help! Thank you!!!!

 
Old March 7th, 2005, 06:12 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Glad to help

Wind is your friend
Matt
 
Old March 8th, 2005, 08:21 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for you i will be very happy from your response

Ihsan





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Sendmail.php How shall i? vinu123 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 January 5th, 2007 03:22 AM
SendMail Problem bahachin Excel VBA 0 November 22nd, 2006 09:45 AM
Sendmail datagram Classic ASP Components 5 April 10th, 2005 06:26 PM
Using Session value in Sendmail Prabhakar_dt Classic ASP Basics 5 September 18th, 2004 08:28 PM
Using SendMail over ASP Paleo Classic ASP Components 1 July 29th, 2003 01:45 PM





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