Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 7th, 2005, 05:08 AM
challengerr challengerr is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 29 challengerr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 32 m 24 sec
Reputation Power: 0
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 )

Reply With Quote
  #2  
Old April 8th, 2005, 02:05 AM
Yeruhn's Avatar
Yeruhn Yeruhn is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Netherlands
Posts: 428 Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 16 h 35 m 27 sec
Reputation Power: 10
Just concatenate the string you want like:
Code:
strBody = "Total number of items: " & nItems & "<br><br>Banana:" & nBananas & ... etc
objMail.TextBody = strBody


hth
Comments on this post
nofriends agrees!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Look simple but dont know how to do !


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT