View previous topic :: View next topic |
Author |
Message |
RenaissanceHero -
Joined: 22 Feb 2003 Posts: 9
|
Posted: Sat Mar 08, 2003 4:05 am Post subject: Help...cant figure out my error with ASP problem... |
|
|
I know there are some pretty smart peeps out there and I am a NOOB :oops: , so can someone help me with my formmail.asp problem.
I installed the ASP components, and they work fine. I tested them with a simple clock code.
I am testing a formmail.asp script and when I submit, it says that the following info has been sent...blah blah....but nothing in my e-mail....
Here is what I have done. I d/l and installed the script from [url]http://www.brainjar.com/asp/formmail/[/url] the instructions are awesome and followed them as best I could. I downloaded JMail and installed that.
Here is the information in my Formmail.asp script that they want you to change and how it looks as i have changed it (I have hidden my ip):
referers = Array("localhost","xx.xx.xxx.xx")
mailComp = "jmail"
smtpServer = "mail.shawmail.ca"
fromAddr = "Frank@thekonigs.net"
this is the script i put on the test page:
<form action="/scripts/formmail.asp" method="post">
<p>
<input name="_recipients" type="hidden" value="Frank@thekonigs.net" />
<input name="_requiredFields" type="hidden"
value="Name,Customer ID,Email,Comments" />
Name: <input name="Name" type="text" /><br />
Customer ID: <input name="Customer ID" type="text" /><br />
Email Address: <input name="Email" type="text" /><br />
Comments:<br />
<textarea name="Comments" rows=5 cols=50></textarea>
<input type="submit" value="Submit" />
<input type="reset" value="Clear" />
</p>
</form>
I want to test it locally b4 I upload it. Can anyone tell me why the e-mail is not getting to me???? The scripts works awesome, I just cant get the e-mail....as strong bad would say....where's the e-mail???? |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Mar 10, 2003 1:41 am Post subject: Re: Help...cant figure out my error with ASP problem... |
|
|
Since the problem seems to be closely related to the script you use, we recommend asking the people that wrote it for support. They can help you better than us. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
Dave -
Joined: 11 Feb 2003 Posts: 184 Location: United Kingdom
|
Posted: Mon Mar 10, 2003 4:44 pm Post subject: |
|
|
Does "mail.shawmail.ca" require login info for use? _________________ Any information contained herein is provided in "as is" condition without any guarantee for its accuracy, contains no warrantees - express or implied - and confers no rights.
X1 1.1.4: http://www.aprelium.com/news/abwsx1u1.html |
|
Back to top |
|
 |
RenaissanceHero -
Joined: 22 Feb 2003 Posts: 9
|
Posted: Thu Mar 13, 2003 2:05 am Post subject: shawmail |
|
|
yes it does.....how do I work that in to the script....
Would I be better off using a CGI script for this????
Frank |
|
Back to top |
|
 |
Dave -
Joined: 11 Feb 2003 Posts: 184 Location: United Kingdom
|
Posted: Thu Mar 13, 2003 5:36 pm Post subject: |
|
|
OK, try this code:
Dim objCDO
Set objCDO = Server.CreateObject("CDO.Message")
body = " Test EMail Message"
objCDO.To = "YOUR EMAIL"
objCDO.From = Request.Form("SenderMail")
objCDO.Subject = "Test EMail"
objCDo.TextBody = body
objCDO.Send
I use that code and it works fine for me. _________________ Any information contained herein is provided in "as is" condition without any guarantee for its accuracy, contains no warrantees - express or implied - and confers no rights.
X1 1.1.4: http://www.aprelium.com/news/abwsx1u1.html |
|
Back to top |
|
 |
|