Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 1st, 2004, 07:17 PM
Authorized User
 
Join Date: Apr 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jayirvin
Default ASP email proccessing


I have solved my ASP email problem
 
Old April 1st, 2004, 08:57 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The link below is to an ASP script that emulates Matt Wright's FormMail cgi script (which was originally written in perl).

http://www.brainjar.com/asp/formmail/

There is a link on that page to see/get the asp source. It uses CDONTS as the tranport mechanism. You'll have to review the documentation, also on that webpage.


 
Old April 3rd, 2004, 02:20 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just set the global variable:

mailComp = "CDONTS"

Then the script will use CDONTS instead of ASPMail... In this case the the smtpserver variable is ignored and not needed since CDONTS uses it built-in SMTP.

Forgot to mention: You might have to enable CDONTS in IIS administration management console...
 
Old April 3rd, 2004, 05:41 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I suppose you could put the assignment there, but I meant at the top:
<%
'- Customization of these values is required, see documentation. -----------

referers = Array("www.brainjar.com", "brainjar.com")
mailComp = "CDONTS"
smtpServer = "mail.brainjar.com"
fromAddr = "[email protected]"

'- End required customization section. -------------------------------------
%>

Also don't forget to change the referers array! Put in your domain:
(i.e. replace www.brainjar.com to www.YOUR_DOMAIN_NAME.com and
     replace brainjar.com to YOUR_DOMAIN_NAME.com)

In case you don't know. The referers array is a list of the domains that are allowed to post, and therefore, use the script.

You should also change the fromAddr to your desired email address.
 
Old April 8th, 2004, 03:39 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is no such property named "phone" in CDO.Message object:

Line causing error:
cdoMessage.phone=Request.Form("txt_phone")

Try this:

cdoMessage.TextBody=Request.Form("body") & vbCrLf & Request.Form("txt_phone")

The above simply appends the txt_phone value to the end of the message body. Alas! a way of formating the text body of the message...

 
Old April 9th, 2004, 04:41 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you want to send using a 'remote' smtp host...

http://support.microsoft.com/default...b;EN-US;286431

Look at the code half way down the page... All you have to fill in is the IP of your SMTP server. Replace this string: <remote SMTP server> with the SMTP IP.

The example should an HTML format message. It can be changed to plain text also...






Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP EMAIL tommyt ASP.NET 1.0 and 1.1 Basics 1 June 20th, 2006 10:31 PM
Email in asp.net asif_sharif ASP.NET 1.0 and 1.1 Basics 0 January 3rd, 2006 11:48 AM
need help with ASP form email proccessing jayirvin Classic ASP Basics 3 April 15th, 2004 04:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.