Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format my email

Status
Not open for further replies.

carranz

Technical User
Nov 17, 2006
40
US

I'm trying to format the body of my email. I want to create bold text for some of the text like "Full Name" "Name"
and change font size or color of font.

anything help would be appreciated

Dim sMessage


sMessage = sMessage & "Full Name:" & Request.Form("txtFull") & VbCrLf
sMessage = sMessage & "Name:" & Request.Form("txtName") & VbCrLf
sMessage = sMessage & "Coll:" & Request.Form("txtColl") & VbCrLf
sMessage = sMessage & "Department:" & Request.Form("txtDepart") & VbCrLf
sMessage = sMessage & "Email:" & Request.Form("txtEmail") & VbCrLf
sMessage = sMessage & "Phone:" & Request.Form("txtPhone") & VbCrLf


Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "es"
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "lin@ooo.com"
.To = "sl@exchange.com"
.Subject = "ECA Access Request Form"
.TextBody = sMessage
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing

%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top