Re: windows based email form
Can you elaborate on exactly what you are trying to do?
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 .......
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.
Re: windows based email form
thanks a bunch ill give it a try. I havent touched VB in about two years.
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
Re: windows based email form
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.
Re: windows based email form
is it possible to change the font of whats in the email
ryan