bolding a text field

15 pts.
Tags:
SQL
HI, I need to generate a letter, within the letter i want to 'bold' some of the text lines. is there a way to do that?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi if you are sending the email via script you can use the HYTML tags <b><b></b></b> to do it.
Example :
<pre>Set objEmail = CreateObject(“CDO.Message”)
objEmail.From = “admin1@fabrikam.com”
objEmail.To = “admin2@fabrikam.com”
objEmail.Subject = “Server down”
objEmail.HTMLBody = “<b>Server1</b> is no longer accessible over the network.”
objEmail.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/sendusing”) = 2
objEmail.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/smtpserver”) = _
“smarthost”
objEmail.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/smtpserverport”) = 25
objEmail.Configuration.Fields.Update
objEmail.Send
</pre>

————————————–

You will probably need to add HTML formatting to the text of your mail.
The message structure should be something like this:

Normal Headers
Content-Type: multipart/alternative;
boundary=”some_unique_string_not_in_email”

–some_unique_string_not_in_email
Content-Type: text/plain; charset=us-ascii

Text email message here.

–some_unique_string_not_in_email
Content-Type: text/html; charset=us-ascii

<pre><html>
<head>
<title>some subject</title>
</head>
<body>
Your <b>Html</b> email message here.
</body>
</html></pre>

–some_unique_string_not_in_email–

Have a look at <a href=”http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1739411218448″>This question at askTom</a> to see how this can be done with the UTL_SMTP package.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    More information is needed here. What program do you want to do this on ? how are you going to generate the letter ?
    70,190 pointsBadges:
    report
  • Rgillespi
    i'm sorry all, new to this forum..... The process is being written in SQL, using the oracle send-email package. basically i have-- declare v_text long := 'This is a sample of the letter to send immediately'; begin call pkg-to-send email; end ; what i would like to do is have the word " immediately ' bolded when the email is recieved. ie - 'This is a sample of the letter to send immediately'; thanks bob
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following