|
-
Apr 19th, 2006, 01:07 PM
#1
Thread Starter
New Member
windows based email form
I needed a form that can send an email to our delivery computer. So i
made a form it emails fine. But the problem is when i get the form its
jumbled up an hard to read. So i got the idea just to use
mailformat.html. instead of mailformat.text. My question is how do i
access the text boxes from the form in the html. Or is their another
way that i can format the text in the email
thanks
ryan
-
Apr 19th, 2006, 01:18 PM
#2
Fanatic Member
Re: windows based email form
Can you elaborate on exactly what you are trying to do?
-
Apr 19th, 2006, 01:22 PM
#3
Thread Starter
New Member
Re: windows based email form
ok lets say i have 4text boxes. The user fills in the text boxes and hit send. The email goes through fine, but I would like it to be formated so its easier to read. I want to format the email when it is received to be like this
name.........Ryan
Date......... 05-12-06
Location.....Baton Rouge
JOB...........crappy developer/Network Admin
but withouth the .......
Last edited by mrcmb; Apr 19th, 2006 at 01:25 PM.
-
Apr 19th, 2006, 01:43 PM
#4
Fanatic Member
Re: windows based email form
That is easy to do. Can you send your code?
For the body of the e-mail you would do something like:
VB Code:
Dim sBody as String = ""
sBody += "name" & vbTab & vbTab & txtName.Text & vbCRLF
sBody += "Date" & vbTab & vbTab & txtDate.Text & vbCRLF
sBody += "Location" & vbTab & vbTab & txtLocation.Text & vbCRLF
sBody += "Job" & vbTab & vbTab & txtJob.Text
oMailer.Body = sBody
That came off the top of my head, but I think it is real close. You may have to add or remove some of the Tabs I put in there due to the length of the fields in the title column.
-
Apr 19th, 2006, 01:46 PM
#5
Thread Starter
New Member
Re: windows based email form
thanks a bunch ill give it a try. I havent touched VB in about two years.
-
Apr 19th, 2006, 01:48 PM
#6
Fanatic Member
Re: windows based email form
Which version are you using? Here is some great info about sending mail in VB.NET 2003 and some earlier .NET versions. It changed a little in 2005.
http://www.systemwebmail.com/default.aspx
-
Apr 19th, 2006, 01:49 PM
#7
Thread Starter
New Member
Re: windows based email form
-
Apr 19th, 2006, 01:52 PM
#8
Fanatic Member
Re: windows based email form
In 2005, the e-mail abilities were moved from the System.Web.Mail namespace to the System.Net.Mail namespace.
-
Apr 19th, 2006, 01:54 PM
#9
Thread Starter
New Member
Re: windows based email form
is it possible to change the font of whats in the email
ryan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|