473,217 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,217 software developers and data experts.

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.SmtpServer = "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.SmtpServer, when
I upload this website to some webhosting place? Do I just put it as
mail.webhostingplace.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="System.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*****@someaddress.com"

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

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

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

'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.SmtpServer = "mail.optusnet.com.au"

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

</script>

<html>
<body>
<asp:panel id="panelSendEmail" 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="MultiLine"
Columns="40" Rows="10" runat="server" />
<p>

<asp:button runat="server" id="btnSendFeedback" Text="Send Feedback!"
OnClick="btnSendFeedback_Click" />
</form>
</asp:panel>
<asp:panel id="panelMailSent" 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 5168

"Mindful_Spirit" <se******@hotmail.com> wrote in message
news:40***********************@news.optusnet.com.a u...
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*************@TK2MSFTNGP09.phx.gbl...

"Mindful_Spirit" <se******@hotmail.com> wrote in message
news:40***********************@news.optusnet.com.a u...
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
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...
1
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. ...
1
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...
9
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...
2
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...
2
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
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:...
0
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...
6
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...
4
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.