WebmasterLingo
JustEdge Dedicated Servers

Go Back   WebmasterLingo > Programming Corner
User Name
Password

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old January 19th, 2004, 09:07 PM   #1
Steveo31
Registered User
 
Join Date: Jan 2004
Posts: 40
Steveo31 is off the scale
Send a message via AIM to Steveo31
Sending HTML form info to ASP mailing form? Please Help!

Hey all-

I have seen a few sites that use this method as opposed to a straight up "mailto:_____" in the action of the form method:
PHP Code:
 <FORM METHOD="post" ACTION="mailto:you@email.com" ENCTYPE="text/plain"

Instead, I have seen this way:
PHP Code:
 <form action="invoicesub.asp" method="POST" name="register" align="center"

I assume in the above example, they send the info in the form to the "invoicesub.asp" which then emails it, correct? Would one of you be kind enoughto send a link or a sample with commentary? I have searched, but haven't found anything.

I don't know much ASP, or any for that matter, I know some PHP, and a bit of HTML. Thanks all.

-Steve
Steveo31 is offline   Reply With Quote
Old January 21st, 2004, 01:11 PM   #2
Dream
Registered User
 
Join Date: Jan 2004
Location: Ohio
Posts: 3
Dream is off the scale
Send a message via AIM to Dream
You can use ASP to send emails and it work much better than the mailto: method.

Here's an example using CDONTS to send an HTML email:


PHP Code:
 Dim objMail
Set objMail 
Server.CreateObject("CDONTS.NewMail")
objMail.From "webmaster@site.com"
objMail.Subject "Email Subject Here"
objMail.To "Send to email"
objMail.Body "<html>" &_
        
"<BODY> Email Message Here</body></html>"
objMail.BodyFormat 0
objMail
.MailFormat 0
objMail
.Send
set objMail 
nothing 
Dream is offline   Reply With Quote
Old January 22nd, 2004, 03:07 PM   #3
desman
Registered User
 
Join Date: Jan 2004
Posts: 1
desman is off the scale
Send a message via AIM to desman
If it’s on a Win 2003 server you can no longer use CDONT (well it doesn’t come installed by default) so CDO is the alternative.
PHP Code:
 Dim objMail

Set objMail 
CreateObject("CDO.Message"

objMail.From "webmaster@domain.com"
objMail.To "user@domain.com"
objMail.Subject "Welcome to our service"
objMail.TextBody "Testing Email services on server."

objMail.Send
Set objMail 
Nothing 


Hope this helps
desman is offline   Reply With Quote
Old January 29th, 2004, 04:22 PM   #4
Steveo31
Registered User
 
Join Date: Jan 2004
Posts: 40
Steveo31 is off the scale
Send a message via AIM to Steveo31
Ahh thanks all

Just curious, what does CDO and CDONT stand for?
Steveo31 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 04:45 PM.

JustEdge Dedicated Servers