In the next section, you will find the complete code listing for the User Directory application.
/******************************************* This page processes the data entered on email.asp and automatically sends an email to the person selected. It then returns the user to the main menu. *******************************************/ <% Response.ContentType = "text/vnd.wap.wml" %> <!--- Defines XML Version and Document Data Type ---> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd"> <wml> <head> <meta http-equiv="Cache-Control" content="max-age=0"/> </head> <% 'Note: Persits Software's AspEmail Component is used to send this message... 'other components/programs, such as Microsoft's SMTP Server can be used to perform this task Set Mail = Server.CreateObject("Persits.MailSender") Mail.Host = "mail.mamail.com" 'Specify a valid SMTP server Mail.From = "[email protected]" 'Specify sender's address Mail.FromName = "My Wap Phone" 'Specify sender's name Mail.AddAddress Request.Form("email") Mail.Subject = Request.Form("subject") Mail.Body = Request.Form("message") Mail.Send %> <card> <do type="accept" label="Back"> <go href="home.asp"/> </do> <p>The e-mail has been sent</p> </card> </wml> |
18.221.98.71