Hello,
I am very new to .ASP pages and using them. Here is what i am trying to do: When a user subscribes to a service, i want to email them their username/password, etc. The variables i will be using (from the signup) will be
sFirstName, sLastName, sEmail, sReferral
here is the code i have so far to email. Please check the subject line and the body... should i keep the variables in parenthensies? see below:
<%
Dim objCDOMail 'Holds the CDONTS NewMail Object
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = "DoNotReply@datahealthusa.com"
objCDOMail.To = sEmail
objCDOMail.Subject = "Thank you for registering sFirst sLast!"
objCDOMail.Body = "Your username = sUserName <br> Your password = sPassword"
objCDOMail.Send
Set objCDOMail = Nothing
%>
so there it is... is that the correct way of doing it? i very much appreciate you looking at this and any information you can give me.
Thanks again,
Jared
I am very new to .ASP pages and using them. Here is what i am trying to do: When a user subscribes to a service, i want to email them their username/password, etc. The variables i will be using (from the signup) will be
sFirstName, sLastName, sEmail, sReferral
here is the code i have so far to email. Please check the subject line and the body... should i keep the variables in parenthensies? see below:
<%
Dim objCDOMail 'Holds the CDONTS NewMail Object
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = "DoNotReply@datahealthusa.com"
objCDOMail.To = sEmail
objCDOMail.Subject = "Thank you for registering sFirst sLast!"
objCDOMail.Body = "Your username = sUserName <br> Your password = sPassword"
objCDOMail.Send
Set objCDOMail = Nothing
%>
so there it is... is that the correct way of doing it? i very much appreciate you looking at this and any information you can give me.
Thanks again,
Jared