Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp email

Status
Not open for further replies.

jared5494

Technical User
Jun 9, 2002
111
US
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
 
You might want to ask in the VBScript or ASP forums... unless you want help converting that VB code to [server-side] JavaScript.

Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top