Wrox Programmer Forums
|
ASP E-commerce As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP E-commerce section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 9th, 2004, 11:52 AM
Registered User
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default cdonts in auction website

i really need some help here. how do i send an email to successful bidders in an auction website? it is based to the highest amount bid for the item. but how do i write the code?

 
Old March 13th, 2004, 10:42 AM
Authorized User
 
Join Date: Dec 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

To send an email using cdonts use something like:
this is to send a HTML mail

strbody=""
set objmail = createobject("cdonts.newmail")
objmail.to = strEmail
objmail.from = "[email protected]"
objmail.Subject = "You are the highest bidder!"

strBody = strBody & "<HTML><body>"
strBody = strBody & "<table width=650 border=0 cellpadding=2 cellspacing=2>"
strBody = strBody & "<tr><td>"
strBody = strBody & "this is an automatic mail. please do not reply to it."
strBody = strBody & " it will not be answered !<BR><BR>"
strBody = strBody & "bla bla bla bla bla.<BR><BR>"
strBody = strBody & "bla bla bla bla bla.<BR><BR><BR>"
strBody = strBody & "Best regards,<BR><BR>"
strBody = strBody & "Your Name"
strBody = strBody & "</td></tr></table>"
strBody = strBody & "</body></html>"

objmail.BodyFormat = 0
objmail.MailFormat = 0

objmail.body = strBody
objmail.send


You can use any known variables in your mail, IE:

strBody = strBody & "Your bid is: " & intBidAmount & "<BR><BR>"


Hope this helps.

HammR






Similar Threads
Thread Thread Starter Forum Replies Last Post
using CDONTS maunishq ASP.NET 1.0 and 1.1 Basics 1 August 23rd, 2007 09:35 AM
Dynamic website to Static website Aboal3ood ASP.NET 1.x and 2.0 Application Design 4 December 7th, 2006 11:46 AM
cdonts p2ptolu Classic ASP Databases 1 March 8th, 2005 11:48 AM
CDONTS asims12 Classic ASP Basics 1 November 13th, 2003 10:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.