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
 
 
When You Register, These Ads Go Away!
Old 11-06-2008, 08:32 PM Re: Dressing up ASP Email
chrishirst's Avatar
Super Moderator

Posts: 22,260
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!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
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: 73
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.
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?
__________________
www.yurx.com
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.12957 seconds with 13 queries