Last post Jan 20, 2007 06:21 PM by firstname.lastname@example.org
Jan 20, 2007 03:13 PM|copperchair32|LINK
Hey, Basically, i get the following error:
The SMTP host was not specified.
I have been using Visual studio 2005 with asp.net2 and c# with ms sql 2005. I have made a createUserWizard successfully, not probs with that. I have been using the maildefintion function found within createuserwizard. To allow my site to send an email when
a new user is created i have to specify my SMTP settings in the config file. I thought i had done this correctly but i got the error message above. What does this error message mean? My config file looks as follows although i have altered some information
for security purposes.
Please help me i'm new to this!
"Custom Config Section"
web.config C# ASP.net
Jan 20, 2007 04:43 PM|ldechent|LINK
Several questions to get this started:
1. Are you willing to use VB for this particular file? Myself and a friend here found out that there are a lot of tutorials out there that do not provide enough information for a new person to get started.
2. Do you want to send email from an .aspx page that is located on your computer and/or located on a host like GoDaddy (just picked out a name at random)?
3. Do you have an account at gmail? If not, are you willing to sign up for one in order to have an account and password to use for authentication?
I'll look for a reference or two for you from previous work.
If necessary, I'm willing to try converting the VB script to C# (not sure if I'm good enough for that yet : -) I'm a C# person too, I just crossed the line when it looked like that would solve the problem.
Jan 20, 2007 04:54 PM|ldechent|LINK
The above page represents work by two people, and the examples show the complete code (.aspx and .aspx.vb). Three versions of the program are shown (we were learning as we went along). The first version is intended to be as simple as possible (as few "things"
in it) to make it easier for a newbie to rap his or her mind around it. In the final version there are text boxes for the email of the person writing the message and the message, and two copies of the email are sent, one to the address typed in by the person
filling out the form, and the other to the address (presumably yours) hard-coded into the page.
If you have any questions about any of the code, let me know. Would you like me to try converting the code to C#?
Jan 20, 2007 06:21 PMemail@example.com|LINK
Also take a look at www.systemnetmail.com.