473,695 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Format E-mail

JN
Hello,

I use an ASP mail object to send orders filled online to a recipient via an
e-mail. I would like to know if it's possible to format the way the order
looks in an e-mail? I tried the following, but see no change in the format:

H1 = "<b><font size=2 color=#ED171F face=Verdana, Arial, Helvetica,
sans-serif>Order Type:</font></b>"

StrBody = H1 + Request(OrderNu m) + vbCrLf

Then I get Order Type: just as plain as it would come if it didn't have any
formatting.

If I do the following:

StrBody = "<b>Order Type:</b> + Request(OrderNu m) + vbCrLf

Then I get <b>OrderType: </b> as the heading.

Does anyone know if it's possible to format the way the text look in an
e-mail that is sent using the ASP Mail Object? Is there a different way of
controlling the format/appearance of the text that appears in an e-mail?

Thanks for your help.
Jul 19 '05 #1
11 3028
Post your code? It looks like you are sending it as plain text ...
"JN" <Me@MyDomain.co m> wrote in message
news:OF******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

I use an ASP mail object to send orders filled online to a recipient via an e-mail. I would like to know if it's possible to format the way the order
looks in an e-mail? I tried the following, but see no change in the format:
H1 = "<b><font size=2 color=#ED171F face=Verdana, Arial, Helvetica,
sans-serif>Order Type:</font></b>"

StrBody = H1 + Request(OrderNu m) + vbCrLf

Then I get Order Type: just as plain as it would come if it didn't have any formatting.

If I do the following:

StrBody = "<b>Order Type:</b> + Request(OrderNu m) + vbCrLf

Then I get <b>OrderType: </b> as the heading.

Does anyone know if it's possible to format the way the text look in an
e-mail that is sent using the ASP Mail Object? Is there a different way of
controlling the format/appearance of the text that appears in an e-mail?

Thanks for your help.

Jul 19 '05 #2
This article details ways to send HTML formatted e-mail.

http://www.aspfaq.com/2295

"JN" <Me@MyDomain.co m> wrote in message
news:OF******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

I use an ASP mail object to send orders filled online to a recipient via an e-mail. I would like to know if it's possible to format the way the order
looks in an e-mail? I tried the following, but see no change in the format:
H1 = "<b><font size=2 color=#ED171F face=Verdana, Arial, Helvetica,
sans-serif>Order Type:</font></b>"

StrBody = H1 + Request(OrderNu m) + vbCrLf

Then I get Order Type: just as plain as it would come if it didn't have any formatting.

If I do the following:

StrBody = "<b>Order Type:</b> + Request(OrderNu m) + vbCrLf

Then I get <b>OrderType: </b> as the heading.

Does anyone know if it's possible to format the way the text look in an
e-mail that is sent using the ASP Mail Object? Is there a different way of
controlling the format/appearance of the text that appears in an e-mail?

Thanks for your help.

Jul 19 '05 #3
What object are you using? CDO? CDONTS? Some third party object?

Ray at home

"JN" <Me@MyDomain.co m> wrote in message
news:OF******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

I use an ASP mail object to send orders filled online to a recipient via an e-mail. I would like to know if it's possible to format the way the order
looks in an e-mail? I tried the following, but see no change in the format:
H1 = "<b><font size=2 color=#ED171F face=Verdana, Arial, Helvetica,
sans-serif>Order Type:</font></b>"

StrBody = H1 + Request(OrderNu m) + vbCrLf

Then I get Order Type: just as plain as it would come if it didn't have any formatting.

If I do the following:

StrBody = "<b>Order Type:</b> + Request(OrderNu m) + vbCrLf

Then I get <b>OrderType: </b> as the heading.

Does anyone know if it's possible to format the way the text look in an
e-mail that is sent using the ASP Mail Object? Is there a different way of
controlling the format/appearance of the text that appears in an e-mail?

Thanks for your help.

Jul 19 '05 #4
JN
It's a 3rd party object, VB DLL on backend creating a Mail Object via an ASP
page.
"Ray at <%=sLocation% >" <as*@me.forit > wrote in message
news:ul******** ******@TK2MSFTN GP10.phx.gbl...
What object are you using? CDO? CDONTS? Some third party object?

Ray at home

"JN" <Me@MyDomain.co m> wrote in message
news:OF******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

I use an ASP mail object to send orders filled online to a recipient via

an
e-mail. I would like to know if it's possible to format the way the order looks in an e-mail? I tried the following, but see no change in the

format:

H1 = "<b><font size=2 color=#ED171F face=Verdana, Arial, Helvetica,
sans-serif>Order Type:</font></b>"

StrBody = H1 + Request(OrderNu m) + vbCrLf

Then I get Order Type: just as plain as it would come if it didn't have

any
formatting.

If I do the following:

StrBody = "<b>Order Type:</b> + Request(OrderNu m) + vbCrLf

Then I get <b>OrderType: </b> as the heading.

Does anyone know if it's possible to format the way the text look in an
e-mail that is sent using the ASP Mail Object? Is there a different way of controlling the format/appearance of the text that appears in an e-mail?

Thanks for your help.


Jul 19 '05 #5
JN
I did post the relevent code. I am formatting it in the H1 assignment then
sending it.

"John McDermidt" <jmcdt73_at_msn .com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Post your code? It looks like you are sending it as plain text ...
"JN" <Me@MyDomain.co m> wrote in message
news:OF******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

I use an ASP mail object to send orders filled online to a recipient via

an
e-mail. I would like to know if it's possible to format the way the order looks in an e-mail? I tried the following, but see no change in the

format:

H1 = "<b><font size=2 color=#ED171F face=Verdana, Arial, Helvetica,
sans-serif>Order Type:</font></b>"

StrBody = H1 + Request(OrderNu m) + vbCrLf

Then I get Order Type: just as plain as it would come if it didn't have

any
formatting.

If I do the following:

StrBody = "<b>Order Type:</b> + Request(OrderNu m) + vbCrLf

Then I get <b>OrderType: </b> as the heading.

Does anyone know if it's possible to format the way the text look in an
e-mail that is sent using the ASP Mail Object? Is there a different way of controlling the format/appearance of the text that appears in an e-mail?

Thanks for your help.


Jul 19 '05 #6
The relevant code would be where your ASP calls the object.

"JN" <Me@MyDomain.co m> wrote in message
news:ux******** ******@tk2msftn gp13.phx.gbl...
I did post the relevent code. I am formatting it in the H1 assignment then
sending it.

"John McDermidt" <jmcdt73_at_msn .com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Post your code? It looks like you are sending it as plain text ...
"JN" <Me@MyDomain.co m> wrote in message
news:OF******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

I use an ASP mail object to send orders filled online to a recipient via
an
e-mail. I would like to know if it's possible to format the way the order looks in an e-mail? I tried the following, but see no change in the format:

H1 = "<b><font size=2 color=#ED171F face=Verdana, Arial, Helvetica,
sans-serif>Order Type:</font></b>"

StrBody = H1 + Request(OrderNu m) + vbCrLf

Then I get Order Type: just as plain as it would come if it didn't
have
any
formatting.

If I do the following:

StrBody = "<b>Order Type:</b> + Request(OrderNu m) + vbCrLf

Then I get <b>OrderType: </b> as the heading.

Does anyone know if it's possible to format the way the text look in

an e-mail that is sent using the ASP Mail Object? Is there a different way of controlling the format/appearance of the text that appears in an

e-mail?
Thanks for your help.



Jul 19 '05 #7
> I did post the relevent code.

No, you didn't.
Jul 19 '05 #8
> It's a 3rd party object,

WHICH ONE? There are only about 100 3rd party e-mail com objects...
Jul 19 '05 #9
The name of it? Did you check the documentation for it?

Ray at work

"JN" <Me@MyDomain.co m> wrote in message
news:OH******** ******@TK2MSFTN GP10.phx.gbl...
It's a 3rd party object, VB DLL on backend creating a Mail Object via an ASP page.

Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2158
by: Lowell Kirsh | last post by:
In Peter Norvig's Infrequently Answered Questions he explains that the following 2 fnctions look almost identical but are not the same: def printf(format, *args): print format % args, def printf(format, *args): print str(format) % args, The only difference is that in the second one, str(format) replaces format. If args are not given and the format string contains a '%', the first will work but the second will not. Why is this so? It...
15
43006
by: Simon Brooke | last post by:
I'm investigating a bug a customer has reported in our database abstraction layer, and it's making me very unhappy. Brief summary: I have a database abstraction layer which is intended to mediate between webapps and arbitrary database backends using JDBC. I am very unwilling indeed to write special-case code for particular databases. Our code has worked satisfactorily with many databases, including many instances MS SQLServer 2000...
3
19227
by: stevek | last post by:
How do I format an integer. Add commas. 1234565 1,234,565 TIA
6
31166
by: Dario Di Bella | last post by:
Hi all, we have the following urgent issue affecting our development team. Initially we had one particular workstation that failed executing queries on a DB2 database, raising an invalid date format exception (SQLSTATE=22007). The same queries worked fine on all the other workstations. The date format we want to use is "dd/mm/yyyy".After reinstalling several times the db2 runtime client w/ different options, we found on a technical forum...
3
12133
by: Melissa | last post by:
What specifically causes the Format event of a report's section to fire? Thanks! Melissa
11
5938
by: Grumble | last post by:
Hello, I have the following structure: struct foo { char *format; /* format string to be used with printf() */ int nparm; /* number of %d specifiers in the format string */ /* 0 <= nparm <= 4 */ };
7
6492
by: Alpha | last post by:
Hi, I'm maintaining C# code and am fairly new with C# programming. I'm looking for codes that's droping the 2nd digit of a nuber printed out and I suspect it's the code below. Can someone tell me where I can look up explaination on the String.Format, the format string part like "("{0:.#0}". What's the trailing 0 and what is that "0:" means? I assume the "#" is the place holder character for th value obtain after the comma in the code. ...
4
1633
by: David Morris | last post by:
Hi Could somebody please explain what the following line of code means String.Format("{0}\{1}.{2:00}", C:\, myfile.txt, 1 It's actually the first argument that I don't understand. What is the purpose of "{0}\{1}.{2:00}"? I've been using VB .NET for a year now, and have never come across anything like this Best Regards David Morris
13
3298
by: Roy | last post by:
Hi all, I'm creating a project that should always use this date format when displays the dates or create dates. The back end database is a SQL Server and I like to know what is the logical way to configure server, sql server or program so it always deals with date as mm/dd/yyyy format. Thanks in advance. Roy
3
1951
by: Carl Trachte | last post by:
Hello. Python 3.0.a1 has been released. I'm trying to get the hang of the new string formatting in the form: '5.66' There are more options in PEP 3101 (fill, alignment, etc.), but I'm having trouble implementing them. The doc has not yet been written. I haven't consulted the source code yet.
0
8631
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9115
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8984
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7661
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5839
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3003
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2272
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.