Click here to Skip to main content
16,008,183 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Another CDONTS question Pin
Jon Sagara21-Jan-03 13:59
Jon Sagara21-Jan-03 13:59 
Generalrefreshing only particular code in a webpage Pin
mariag21-Jan-03 9:26
mariag21-Jan-03 9:26 
GeneralRe: refreshing only particular code in a webpage Pin
SimonS21-Jan-03 21:13
SimonS21-Jan-03 21:13 
GeneralRe: refreshing only particular code in a webpage Pin
Vasudevan Deepak Kumar23-Jan-03 1:07
Vasudevan Deepak Kumar23-Jan-03 1:07 
General3-tier client/server applications Pin
Mark Sanders21-Jan-03 8:07
Mark Sanders21-Jan-03 8:07 
GeneralRe: 3-tier client/server applications Pin
ez221-Jan-03 9:22
ez221-Jan-03 9:22 
GeneralCDONTS Pin
Sarvesvara (BVKS) Dasa20-Jan-03 18:54
Sarvesvara (BVKS) Dasa20-Jan-03 18:54 
GeneralRe: CDONTS Pin
Megan Forbes20-Jan-03 22:13
Megan Forbes20-Jan-03 22:13 
First - make sure you have SMTP installed on your IIS server (should be there, but if it isn't, this could cause you hours of insane frustration if nobody warns you Roll eyes | :rolleyes: ).

Dim objMail,sMailBody, strBody, email, name 'Dim necessary vars
Set objMail = Server.CreateObject("CDONTS.NewMail") 'create object

email = "you@whoever.com"
name = "A Name"
objMail.From = "me@whoever.com" 'set the from for the email
objMail.Subject = "CDONTS Email" 'set the subject for the email
objMail.To = email
'Build the body in HTML format
strBody = "" & _
"" & _
"" & _
" Hello name " & _
" I am writing to you bla bla bla." & _
"

" & _
"" & _
""
objMail.Body = strBody
'set the format before the send
objMail.MailFormat = 0
objMail.BodyFormat = 0
'send the mail
objMail.Send

Set objMail = nothing 'destroy the object again

Hope that helps. Note- the HTML formatting for the body of the email is not necessary, but it is a nice touch. Smile | :)




A pack of geeks, pale and skinny, feeling a bit pumped and macho after a morning of strenuous mouse clicking and dragging, arriving en masse at the gym. They carefully reset the machines to the lowest settings, offer to spot for each other on the 5 lb dumbells, and rediscover the art of macrame while attempting to jump rope. -Roger Wright on my colleagues and I going to gym each day at lunch

GeneralRe: CDONTS Pin
Sarvesvara (BVKS) Dasa20-Jan-03 22:16
Sarvesvara (BVKS) Dasa20-Jan-03 22:16 
GeneralRe: CDONTS Pin
Megan Forbes21-Jan-03 1:39
Megan Forbes21-Jan-03 1:39 
GeneralRe: CDONTS Pin
Sarvesvara (BVKS) Dasa21-Jan-03 2:23
Sarvesvara (BVKS) Dasa21-Jan-03 2:23 
GeneralRe: CDONTS Pin
Jon Sagara21-Jan-03 5:36
Jon Sagara21-Jan-03 5:36 
GeneralRe: CDONTS Pin
Sarvesvara (BVKS) Dasa21-Jan-03 20:30
Sarvesvara (BVKS) Dasa21-Jan-03 20:30 
GeneralValid XHTML Pin
Rohit  Sinha20-Jan-03 9:16
Rohit  Sinha20-Jan-03 9:16 
GeneralEmail downloading Pin
BoudewijnEctor20-Jan-03 4:04
BoudewijnEctor20-Jan-03 4:04 
Generalhttp 500 internal server error Pin
Sarvesvara (BVKS) Dasa18-Jan-03 19:42
Sarvesvara (BVKS) Dasa18-Jan-03 19:42 
GeneralRe: http 500 internal server error Pin
Sarvesvara (BVKS) Dasa18-Jan-03 19:45
Sarvesvara (BVKS) Dasa18-Jan-03 19:45 
GeneralMultiple Select Pin
Waltertje18-Jan-03 7:53
Waltertje18-Jan-03 7:53 
GeneralOpening a new browser window Pin
egalt17-Jan-03 9:02
egalt17-Jan-03 9:02 
GeneralRe: Opening a new browser window Pin
DFU2320-Jan-03 10:11
DFU2320-Jan-03 10:11 
GeneralJScript: store 2D-Array in Application object Pin
peterchen17-Jan-03 4:23
peterchen17-Jan-03 4:23 
GeneralRe: JScript: store 2D-Array in Application object Pin
DFU2320-Jan-03 10:22
DFU2320-Jan-03 10:22 
GeneralRe: JScript: store 2D-Array in Application object Pin
peterchen20-Jan-03 10:29
peterchen20-Jan-03 10:29 
GeneralRe: JScript: store 2D-Array in Application object Pin
DFU2320-Jan-03 10:32
DFU2320-Jan-03 10:32 
GeneralRe: JScript: store 2D-Array in Application object Pin
peterchen20-Jan-03 11:26
peterchen20-Jan-03 11:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.