|
Brad -> RE: Changing From ASP to CDONTS (7/1/2003 17:31:20)
|
Okay...awesome. So, if my page is currently this: ----------------------------------------------------------------------------------------------------- Set rsPass = dbquery(passRet,con) if not rsPass.eof then Password = rsPass(0) Email = rsPass(1) FromName = " Administrator" FromEmail = Application(" AdminEmail" ) Subject = " Your Password." BodyText = " Dear " &FirstName&" " &LastName&" ," &vbcrlf&vbcrlf&" your password is " &Password&" ." &vbcrlf&" Thankyou for using our services " &vbcrlf&vbcrlf&" Regards," &vbcrlf&" Administrator." Set Mailer = Server.CreateObject (" SMTPsvg.Mailer" ) Mailer.FromName = FromName Mailer.FromAddress = FromEmail Mailer.Subject = Subject Mailer.BodyText = BodyText Mailer.RemoteHost = " mail-fwd.boca15-verio.com" Mailer.AddRecipient FirstName&" " &LastName , Email if Mailer.SendMail then mailSent = True else ' Message send failure mailSent = False end if Set Mailer = Nothing ------------------------------------------------------------------------------------------------------ And I want it to go CDONTS I would make it: ----------------------------------------------------------------------------------------------------- Set rsPass = dbquery(passRet,con) if not rsPass.eof then Password = rsPass(0) Email = rsPass(1) FromName = " Administrator" FromEmail = Application(" AdminEmail" ) Subject = " Your Password." BodyText = " Dear " &FirstName&" " &LastName&" ," &vbcrlf&vbcrlf&" your password is " &Password&" ." &vbcrlf&" Thankyou for using our services " &vbcrlf&vbcrlf&" Regards," &vbcrlf&" Administrator." Set Mailer = CreateObject(" CDONTS.NewMail" ) Mailer.From = FromName Mailer.MailFormat = 0 Mailer.Subject = Subject Mailer.Body = BodyText Mailer.To FirstName&" " &LastName , Email if Mailer.Send then mailSent = True else ' Message send failure mailSent = False end if Set Mailer = Nothing
|
|
|
|