hanxiao Posted April 26, 2006 Share Posted April 26, 2006 Just wonder how to make it in HTML? Or do I need to use other languages, such as JavaScript, PHP and ASP.NET?I only know the mailto thing, which load outlook in user's computer and send a email to the address specified. Any way can do sending a web page or article on that page to a friend's email address? It's like you put your friend's name and maybe your name as well, then friend's email and some comments, click the button, a email from the website will send to the email address.Thanks. Link to comment Share on other sites More sharing options...
real_illusions Posted April 26, 2006 Share Posted April 26, 2006 you'll need a server side scripting language such as php or asp to process the email sending.the one i use on my site (see siggie) is kinda completed for a beginner, and so it'll probably baffle you as its not that easy to edit the way you want it.do a google search for "tell a friend script" and you should find a few.we can help you with setting it up, and pointing you in the right direction, but not providing complete scripts Link to comment Share on other sites More sharing options...
Bluecrest Posted April 27, 2006 Share Posted April 27, 2006 This is the code in asp.net. hope i could help you. Dim mail, emailmsgusername = n1.GetFieldValue("Select Firstname as field_value from Users where useremail='" & txtemailforgot.Text & "'")emailmsg = "<html><body topmargin=0 leftmargin=0><font face='Verdana, Arial, Helvetica, sans-serif' size=2 color=#003399><b>Dear " & username & ":<br><br>Login Details for CommDragon.com<br><br></b></font><table width='50%' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;'><tr><td width='35%'>Login Name:</td><td width='65%'>" & txtemailforgot.Text & "</td></tr><tr><td>Password:</td><td>" & pass & "</td></tr></table><br><font face='Verdana, Arial, Helvetica, sans-serif' size=2 color=#003399><b>Regards:<br>www.commdragon.com</b></font></body></html>"mail = Server.CreateObject("Persits.MailSender")mail.IsHTML = Truemail.Subject = "Your account in commdragon.com"mail.From = "websitemanager@commdragon.com"mail.FromName = "Commdragon.com"mail.Addaddress(txtemailforgot.Text)mail.Host = "mail.mindragon.com"mail.body = emailmsgOn Error Resume Nextmail.Send()mail = Nothinglblerrors.Text = "Your password has been mailed to your account.<br>Please check your email immediately and sign in to CommDragon.com."lblerrors.Visible = True Link to comment Share on other sites More sharing options...
hanxiao Posted April 30, 2006 Author Share Posted April 30, 2006 Thanks both of you.I will try to make a try and if I got problems I will come back and find my buddies here.Thank. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now