473,626 Members | 3,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Website "Email Feedback Form" (ASP.NET)--Quick Help Needed :(

I'm trying to set up a basic email feed back form
like
this
, and was wondering about some basic configuration settings. I
have used code from
this
website
. I have it working just fine. I'm running IIS on my home
machine.

My problem is that I need to upload this stuff to a webhosting place and
register a domain and I'm not sure what to put as the smtp mail server value
in this script??

Currently I am with the Optusnet ISP and thus for the SMTP server i put

SmtpMail.SmtpSe rver = "mail.optusnet. com.au"

and then up towards the top of the script I have the contents of the form to
be sent to the following email address,

objMM.To = "bl**@optusnet. com.au"

[SIZE=3]My question is, what value to I put for SmtpMail.SmtpSe rver, when
I upload this website to some webhosting place? Do I just put it as
mail.webhosting place.com.au or how do you know what to put for the SMTP
server?[/SIZE]


I know this is basic and that many of you would have done it a million times
before but I just don't know the answer to this and noone seems to be able
to give me a straight answer.

Any help would be greatly appreciated. See the script below for what I'm
currently using and working on my home machine running IIS.
<%@ Page Language="vb" Debug="true" %>
<% @Import Namespace="Syst em.Web.Mail" %>
<script language="vb" runat="server">

Sub btnSendFeedback _Click(sender as Object, e as EventArgs)

'Create an instance of the MailMessage class
Dim objMM as New MailMessage()

'Set the properties - send the email to the person who filled out the
'feedback form.
objMM.To = "bl**@optusnet. com.au"
objMM.From = txtEmail.Text

'If you want to CC this email to someone else, uncomment the line below
'objMM.Cc = "so*****@somead dress.com"

'If you want to BCC this email to someone else, uncomment the line below
'objMM.Bcc = "so*****@somead dress.com"

'Send the email in text format
objMM.BodyForma t = MailFormat.Text
'(to send HTML format, change MailFormat.Text to MailFormat.Html )

'Set the priority - options are High, Low, and Normal
objMM.Priority = MailPriority.No rmal

'Set the subject
objMM.Subject = "Redlands Cricket Academy - Feedback"

'Set the body
objMM.Body = "At " + DateTime.Now + " feedback was sent from an ASP.NET "
& _
"Web page. Below you will find the feedback message " & _
"send by " & txtName.Text & "." & vbCrLf & vbCrLf & _
"---------------------------------------" & vbCrLf & vbCrLf &
_
txtMessage.Text & vbCrLf
'Specify to use the default Smtp Server
SmtpMail.SmtpSe rver = "mail.optusnet. com.au"

'Now, to send the message, use the Send method of the SmtpMail class
SmtpMail.Send(o bjMM)
panelSendEmail. Visible = false
panelMailSent.V isible = true
End Sub

</script>

<html>
<body>
<asp:panel id="panelSendEm ail" runat="server">
<form runat="server">
<h2>We are interested in your feedback! Please enter the following
requested information below to send us your comments.</h2>

<b>Your Name:</b>
<asp:textbox id="txtName" runat="server" />
<br>

<b>Your Email Address:</b>
<asp:textbox id="txtEmail" runat="server" />
<p>

<b>Your Message:</b><br>
<asp:textbox id="txtMessage " TextMode="Multi Line"
Columns="40" Rows="10" runat="server" />
<p>

<asp:button runat="server" id="btnSendFeed back" Text="Send Feedback!"
OnClick="btnSen dFeedback_Click " />
</form>
</asp:panel>
<asp:panel id="panelMailSe nt" runat="server" Visible="False" >
An email has been sent to the email address you specified. Thanks!
</asp:panel>
</body>
</html>
Jul 19 '05 #1
2 5210

"Mindful_Spirit " <se******@hotma il.com> wrote in message
news:40******** *************** @news.optusnet. com.au...
I'm trying to set up a basic email feed back form
like
this
, and was wondering about some basic configuration settings. I
have used code from
this
website
. I have it working just fine. I'm running IIS on my home
machine.

My problem is that I need to upload this stuff to a webhosting place and
register a domain and I'm not sure what to put as the smtp mail server value in this script??

[snip]

The general practice for ASP.Net hosts here in the US is for them to
configure CDO on the server to automatically use their SMTP server so all
you have to do is:

dim objMail as new CDO.Message
with objMail
.Sender = strMsgFrom
.To = strMsgTo
.Subject = strMsgSubject
.TextBody = strMsgText
.Send
end with

I would avoid using a host that requires you to establish and maintain your
own CDO config for apps that don't have a specific configuration
requirement. Ask the hosting company to point you to the "how-to"
references in the support section of their website where using CDO and other
permission/authentication configuration issues are explained. If they don't
have such an area, go elsewhere.
Jul 19 '05 #2
Thanks for the advice J. Alan Rueckgauer, I'll do exactly that :)

"J. Alan Rueckgauer" <vo**@dev.nul > wrote in message
news:u9******** *****@TK2MSFTNG P09.phx.gbl...

"Mindful_Spirit " <se******@hotma il.com> wrote in message
news:40******** *************** @news.optusnet. com.au...
I'm trying to set up a basic email feed back form
like
this
, and was wondering about some basic configuration settings. I
have used code from
this
website
. I have it working just fine. I'm running IIS on my home
machine.

My problem is that I need to upload this stuff to a webhosting place and
register a domain and I'm not sure what to put as the smtp mail server value
in this script??

[snip]

The general practice for ASP.Net hosts here in the US is for them to
configure CDO on the server to automatically use their SMTP server so all
you have to do is:

dim objMail as new CDO.Message
with objMail
.Sender = strMsgFrom
.To = strMsgTo
.Subject = strMsgSubject
.TextBody = strMsgText
.Send
end with

I would avoid using a host that requires you to establish and maintain

your own CDO config for apps that don't have a specific configuration
requirement. Ask the hosting company to point you to the "how-to"
references in the support section of their website where using CDO and other permission/authentication configuration issues are explained. If they don't have such an area, go elsewhere.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1657
by: *** HAWK | last post by:
I'm trying to make a music CD webpage (eg hmv.com) using ASP. I want it to follow these guidelines: All visitors should be able to obtain a list of 1 - all CDs in the database listed by A-Z by arist name 2 - CD's which price is within a range (minimum & maximum) specified by the user 3 - titles of the tracks on a CD 4 - CD's which include both CD & track titles contains keywords inputted into a 'search box' 5 - Also an option that...
1
1456
by: DavidM | last post by:
I'm currently developing a website for my company. I would like to provide list server functionality to the site, if possible. We have a third party mail service, so I can easily POP and SMTP. Does anyone know of any nice and reasonably priced list servers for ASP? I'd also like to know if anyone knows of any good event calendar components for display a small calendar on web page and listing events that are upcoming. Having an admin...
1
1737
by: Bob | last post by:
I'm trying to centralize some of the resources (images, css, footer etc) into one website that all my apps can use. Simple things like images and css would be a direct link (e.g. img src=http://myresourcecenter.com/images/logo.gif) and some others would be a web service call with the results to be cached by individual apps. The problem is, if this resource website is down, all my web apps would cease to work, so I need to put in a mirror...
9
3733
by: JimmySlam | last post by:
How can I do it? I have a bit of idea but searching on the internet is not enough information (or I didnt find it) Any one knows how to Send an XML to ASP form FLASH, the ASP saves it into a XML on the server... If i just could send the XML and from ASP say something like save XML... Would be easy.
2
1477
by: shery | last post by:
hi plz help me out i need a php script i have made a link in my website for feedback and i need a good script (php) which will sought out the problem for me ..plus if some one is having a good programme for inserting a online forum in my site.. waiting for a good relpy
2
1505
by: RajeevSekar | last post by:
Hai Experts, How to provide feedback in an ASP.NET page when something is going on in the background. Thanks in Advance, S.Rajeev.
1
1100
by: FrankieBakerJr | last post by:
Hello I have an ASP.NET 2005 web application that I'd like to be able to determine it's full url from within code. Here's an example: My URL for this sample web site is: https://sapps.cincinnatistate.edu/apply I would like to be able to gather that URL from within an ASPX or a VB file within my web application. Any help would be greatly appreciated.
0
1397
by: softwarecompany | last post by:
Web software outsourcing company support affordable custom web site design and software development services assist by experience software developers, programmers, and web designers have expertise in web application development, website development with the knowledge of .net Advantages of ASP Development Services Minimize network traffic Flexibility to view in any browser High security - ASP code cannot be viewed from the browser...
6
2830
by: bhappy | last post by:
Hi All, I have implemented google website optimizer (GWO) in my asp application. It is not working? I have a dynamic asp page which contains header, footer and some contents in body. I have some radiobuttons in my page and I need to compare these radio buttons design by placing dropdown list? I could not able to apply GWO because header and footer belongs to one project and body belongs to an other project. I am including 2nd project in...
4
4576
by: Ravi Dhoriya | last post by:
hello... i'm creating a web application in asp.net in which i would like to give user a one JavaScript code, through which the user can get content from my website to his/her own website. i've used one generic handler to process user request in my website. so, now How can i do this, i've tried using jQuery.. jQuery can only process requests from current server, not from other server (if i'm not wrong) code on www.otherwebsite.com
0
8259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8192
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8358
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4195
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.