Wrox Programmer Forums
|
BOOK: Professional ASP.NET 1.0, Special Edition/1.1
This is the forum to discuss the Wrox book Professional ASP.NET 1.1 by Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson; ISBN: 9780764558900
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 1.0, Special Edition/1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 1st, 2005, 12:44 PM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Anyone have any ideas!!!!!

Hi,

I have been developing a site and have set up a form to email:

<%@ Page Language="VB" Debug="True" runat="server" %>
<%@ Import Namespace="System.Web.Mail" %>

<%
    Dim Email As New MailMessage()

    Email.From = Session("EmailAddress")
    Email.To = "[email protected]"
    Email.Subject = "Web Site Development Inquiry Form "
    Email.Body = "<html><head><title></title></head><body><table width='400'>" & _
          "<tr colspan='2'><th>New Customer Info</th></tr>" & _
          "<tr><td>First Name: </td><td>" & Session("FirstName") & "</td></tr>" & _
      "<tr><td>Last Name: </td><td>" & Session("LastName") & "</td></tr>" & _
      "<tr><td>Company Name:</td><td> " & Session("CompanyName") & "</td></tr>" & _
      "<tr><td>Phone No.: </td><td> " & Session("PhoneNo") & "</td></tr>" & _
      "<tr><td>Fax No.: </td><td> " & Session("FaxNo") & "</td></tr>" & _
      "<tr><td>E-Mail Address:</td><td>" & Session("EmailAddress") & "</td></tr>" & _
      "<tr><td>Pages Required:</td><td>" & Session("PagesRequired") & "</td></tr>" & _
      "<tr><td>Photos Required:</td><td> " & Session("PhotosRequired") & "</td></tr>" & _
      "<tr><td>Features Required:</td><td> " & Session("FeaturesRequired")& "</td></tr>" & _
      "</table></body></html>"

    SmtpMail.SmtpServer = "mail.microhana.com"
%>

I dont receive any error message and in the same time I cannot get the email sent on the server , i dont recieve any error message.


Anyone have any ideas?
It would be appreciated.

Thanks in advance

Hana


 
Old April 4th, 2005, 07:06 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

SmtpMail.Send(Email)

Try adding that.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Sub Form Ideas [email protected] VB Databases Basics 8 January 29th, 2007 02:10 AM
PLEASE HELP - I need ideas brettk_1 ASP.NET 1.0 and 1.1 Professional 1 July 13th, 2005 12:42 PM
PLEASE HELP - I need ideas brettk_1 ASP.NET 1.0 and 1.1 Basics 1 July 13th, 2005 12:42 PM
Any Ideas????? f117b2 Classic ASP XML 0 January 23rd, 2004 04:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.