| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Look simple but dont know how to do !
I'm writing ASp code to send email as following
<% Dim objMail Dim objMailConf Set objMail = Server.CreateObject("CDO.Message") Set objMailConf = Server.CreateObject("CDO.Configuration") objMailConf.Fields.item("http://schemas.microsoft.com/cdo/co...ation/sendusing") = 1 objMailConf.Fields.item("http://schemas.microsoft.com/cdo/co...tion/smtpserver") = "http://localhost" objMailConf.Fields.item("http://schemas.microsoft.com/cdo/co...pickupdirectory") = "c:\inetpub\mailroot\pickup" objMailConf.fields.Item("http://schemas.microsoft.com/cdo/co.../smtpserverport") = 25 objMailConf.Fields.item("http://schemas.microsoft.com/cdo/co...nnectiontimeout") = 60 objMailConf.Fields.Update Set objMail.Configuration = objMailConf objMail.From = "Handson" objMail.To = "order@yahoo.com" objMail.Subject = "New Order " objMail.TextBody = "BODY_TEXT " objMail.Fields.update objMail.Send Set objMail = Nothing response.write "SEND" %> Infact , i want "BODY_TEXT " will be showing in the received email as following "" Total number of items : 3 Banana : 2 Apple : 1 Customer name : Robert "" All of them such as "Banana" , "apple" ... are varibles i got from previous programm I want to obtain this purpose but cant think how to obtain this ANyone can help me or advice for another way to obtain this ? Please help me asap ! (please instruct me detail because i'm not good at ASP , thank u ) |
|
#2
|
||||
|
||||
|
Just concatenate the string you want like:
Code:
strBody = "Total number of items: " & nItems & "<br><br>Banana:" & nBananas & ... etc objMail.TextBody = strBody hth |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Look simple but dont know how to do ! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|