Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Dressing up ASP Email
Old 11-06-2008, 04:43 PM Dressing up ASP Email
Average Talker

Posts: 27
Trades: 0
Is there a way to add font sizes, bold, color, etc to the body of the email generated by a form.

Here is the code I am using currently:

Dim Body
Body = Body & "You have a e-mail!" & VbCrLf & VbCrLf
Body = Body & "_________________________________________________ __________________" & VbCrLf & VbCrLf
Body = Body & "To: " & ToFirstName & " " & ToLastName & VbCrLf & VbCrLf
Body = Body & "From: " & FromFirstName & " " & FromLastName & VbCrLf & VbCrLf
Body = Body & "Subject: " & Subject & VbCrLf & VbCrLf
Body = Body & "" & Message & VbCrLf & VbCrLf & VbCrLf & VbCrLf
Body = Body & "Additonal Text? " & VbCrLf & VbCrLf & VbCrLf
Body = Body & "_________________________________________________ __________________" & VbCrLf

Thank you,

Rusty
jengiss is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-06-2008, 08:32 PM Re: Dressing up ASP Email
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Yep create it as HTML and send it. Make sure it goes as the HTMLBody in whatever SMTP component you are using.

You can't use external stylesheets and images must be referenced externally (HTTP address) but in-line styles and HTML formatting are ok
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-08-2008, 02:46 AM Re: Dressing up ASP Email
itHighway's Avatar
Skilled Talker

Posts: 83
Name: Zeeshan Dar
Location: GUJ
Trades: 0
Create your email in HTML format i.e create it using TABLES, BR and other html tags. When sending it use HTMLBody property of your email component.
__________________
Zeeshan Dar
itHighway -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
itHighway is offline
Reply With Quote
View Public Profile
 
Old 11-10-2008, 12:48 PM Re: Dressing up ASP Email
Average Talker

Posts: 27
Trades: 0
Yeah I thought HTML was the only way to do it. Guess I will have to learn another aspect of programming.

jengiss is offline
Reply With Quote
View Public Profile
 
Old 12-20-2008, 07:08 PM Re: Dressing up ASP Email
Super Talker

Posts: 143
Trades: 0
Is this like sending a newsletter?
__________________

Please login or register to view this content. Registration is FREE
specialk is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Dressing up ASP Email
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40432 seconds with 12 queries