• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

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

RagingDemon

Junior Member
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 = "blah@optusnet.com.au"

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?

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 in the next post for what I'm currently using and working on my home machine running IIS.
 
Originally posted by: amdfanboy
Many times you just use localhost.

Oh really, hmm..intresting..

I tried localhost on my home machine and it gave me errors...so I left it as I did in the code attached to the first post..

Also, since I've never actually uploaded dynamic content before...do you suppose it will be that the folders I upload to are the same..i.e just put the files in the "inetpub" folder in the correct places and it should work as normal like on my home machine?
 
Originally posted by: n0cmonkey
I'd put in the SMTP server's address. If you don't know it, contact the hosting company. 😉


See the thing is, I tried an experiment at home. Currently I'm registered with Optusnet ISP..and I decided to try and see what would happen if I specified a different SMTP mail server istead of the one I usually use to check my email.

So in that script, instead of putting SmtpMail.SmtpServer = "mail.optusnet.com.au" , I put
SmtpMail.SmtpServer = "smpt.powerup.com.au"

and in the 'send to ' address I put objMM.To = "blah@powerup.com.au"

Do you know why this small change results in the page not working and not even able to connect to the different mail server?

I just find this odd 😱
 
Originally posted by: RagingDemon
Originally posted by: amdfanboy
Many times you just use localhost.

Oh really, hmm..intresting..

I tried localhost on my home machine and it gave me errors...so I left it as I did in the code attached to the first post..

Also, since I've never actually uploaded dynamic content before...do you suppose it will be that the folders I upload to are the same..i.e just put the files in the "inetpub" folder in the correct places and it should work as normal like on my home machine?

Well, since (localhost == 127.0.0.1 || ::1 || "Your computer") and I bet you don't hae a STMP server installed ? Yeah, it won't work. Yeah, since this is an embeded script , you just upload it to the same place where you put your HTML docs.
 
Originally posted by: RagingDemon
Originally posted by: n0cmonkey
I'd put in the SMTP server's address. If you don't know it, contact the hosting company. 😉


See the thing is, I tried an experiment at home. Currently I'm registered with Optusnet ISP..and I decided to try and see what would happen if I specified a different SMTP mail server istead of the one I usually use to check my email.

So in that script, instead of putting SmtpMail.SmtpServer = "mail.optusnet.com.au" , I put
SmtpMail.SmtpServer = "smpt.powerup.com.au"

and in the 'send to ' address I put objMM.To = "blah@powerup.com.au"

Do you know why this small change results in the page not working and not even able to connect to the different mail server?

I just find this odd 😱

Well, that server probably doesn't exist or is firewalled so only their webservers can get to it.
 
Originally posted by: amdfanboy
Originally posted by: RagingDemon
Originally posted by: n0cmonkey
I'd put in the SMTP server's address. If you don't know it, contact the hosting company. 😉


See the thing is, I tried an experiment at home. Currently I'm registered with Optusnet ISP..and I decided to try and see what would happen if I specified a different SMTP mail server istead of the one I usually use to check my email.

So in that script, instead of putting SmtpMail.SmtpServer = "mail.optusnet.com.au" , I put
SmtpMail.SmtpServer = "smpt.powerup.com.au"

and in the 'send to ' address I put objMM.To = "blah@powerup.com.au"

Do you know why this small change results in the page not working and not even able to connect to the different mail server?

I just find this odd 😱

Well, that server probably doesn't exist or is firewalled so only their webservers can get to it.


The thing is my brother has an account with the powerup ISP and he checks his email (through optusnet ISP) using pop.powrup.com.au (incoming) and smtp.powerup.com.au (out-going)...so the servers definitely do exist but yeah, why do you suppose the powerup ISP is firewalled in that way when the optus ISP allows me to use their webserver? (granted that I'm with them as my ISP)

But basically as you guys say, all I need to do in order to configure this scrip is to find out what smtp the webhosting company is using for their mail server and plug that into the code, and it should work fine right?
 
Originally posted by: RagingDemon
Originally posted by: amdfanboy
Originally posted by: RagingDemon
Originally posted by: n0cmonkey
I'd put in the SMTP server's address. If you don't know it, contact the hosting company. 😉


See the thing is, I tried an experiment at home. Currently I'm registered with Optusnet ISP..and I decided to try and see what would happen if I specified a different SMTP mail server istead of the one I usually use to check my email.

So in that script, instead of putting SmtpMail.SmtpServer = "mail.optusnet.com.au" , I put
SmtpMail.SmtpServer = "smpt.powerup.com.au"

and in the 'send to ' address I put objMM.To = "blah@powerup.com.au"

Do you know why this small change results in the page not working and not even able to connect to the different mail server?

I just find this odd 😱

Well, that server probably doesn't exist or is firewalled so only their webservers can get to it.


The thing is my brother has an account with the powerup ISP and he checks his email (through optusnet ISP) using pop.powrup.com.au (incoming) and smtp.powerup.com.au (out-going)...so the servers definitely do exist but yeah, why do you suppose the powerup ISP is firewalled in that way when the optus ISP allows me to use their webserver? (granted that I'm with them as my ISP)

But basically as you guys say, all I need to do in order to configure this scrip is to find out what smtp the webhosting company is using for their mail server and plug that into the code, and it should work fine right?

This might be a situation involving something called relaying. Relaying can be bad, so it is only allowed from certain hosts. I'd shoot the ISP/webhost an email to see what their SMTP server is. If you want, you can try to load an SMTP server on your home machine and use it for testing. But that can be difficult for some people.

EDIT: Tell them what you want to do in the email. The basics should help them help you. 🙂

I want to have a form email my account, what SMTP server should I use?
should be a decent explanation...
 
Originally posted by: n0cmonkey
Originally posted by: RagingDemon
Originally posted by: amdfanboy
Originally posted by: RagingDemon
Originally posted by: n0cmonkey
I'd put in the SMTP server's address. If you don't know it, contact the hosting company. 😉


See the thing is, I tried an experiment at home. Currently I'm registered with Optusnet ISP..and I decided to try and see what would happen if I specified a different SMTP mail server istead of the one I usually use to check my email.

So in that script, instead of putting SmtpMail.SmtpServer = "mail.optusnet.com.au" , I put
SmtpMail.SmtpServer = "smpt.powerup.com.au"

and in the 'send to ' address I put objMM.To = "blah@powerup.com.au"

Do you know why this small change results in the page not working and not even able to connect to the different mail server?

I just find this odd 😱

Well, that server probably doesn't exist or is firewalled so only their webservers can get to it.


The thing is my brother has an account with the powerup ISP and he checks his email (through optusnet ISP) using pop.powrup.com.au (incoming) and smtp.powerup.com.au (out-going)...so the servers definitely do exist but yeah, why do you suppose the powerup ISP is firewalled in that way when the optus ISP allows me to use their webserver? (granted that I'm with them as my ISP)

But basically as you guys say, all I need to do in order to configure this scrip is to find out what smtp the webhosting company is using for their mail server and plug that into the code, and it should work fine right?

This might be a situation involving something called relaying. Relaying can be bad, so it is only allowed from certain hosts. I'd shoot the ISP/webhost an email to see what their SMTP server is. If you want, you can try to load an SMTP server on your home machine and use it for testing. But that can be difficult for some people.

EDIT: Tell them what you want to do in the email. The basics should help them help you. 🙂

I want to have a form email my account, what SMTP server should I use?
should be a decent explanation...


Thank you n0cmonkey, I will definitely do that. Actually I'm in the process of reading some documentation on setting up my own SMTP server now. I think I could do it, but, in the end this type of thing should already be set up and ready to go at the webhosting company right?

I'll definitely follow your suggestion though about finding out "I want to have a form email my account, what SMTP server should I use?" 🙂
 
I'm not sure how hosting companies handle this. I'd imagine they would have something setup and ready to go. Might/probably requires authentication though.
 
Originally posted by: n0cmonkey
I'm not sure how hosting companies handle this. I'd imagine they would have something setup and ready to go. Might/probably requires authentication though.


ahh i see--yeah you're probably right : /
 
Originally posted by: RagingDemon
Originally posted by: n0cmonkey
I'm not sure how hosting companies handle this. I'd imagine they would have something setup and ready to go. Might/probably requires authentication though.


ahh i see--yeah you're probably right : /

lol Not at 1&1, all you need to do is point at localhost an shoot. I'm sure its firewalled though.
 
Originally posted by: amdfanboy
Originally posted by: RagingDemon
Originally posted by: n0cmonkey
I'm not sure how hosting companies handle this. I'd imagine they would have something setup and ready to go. Might/probably requires authentication though.


ahh i see--yeah you're probably right : /

lol Not at 1&1, all you need to do is point at localhost an shoot. I'm sure its firewalled though.

127.0.0.1 is probably allowed to relay. Authentication isn't too important if no one that hasn't authenticated already (the ftp or whatever to put the files in place) has access to it. 😉
 
Back
Top