|
-
Apr 2nd, 2002, 10:38 PM
#1
Thread Starter
Lively Member
send mail
anyone know how to create an email form that sends whatever they write to a specific email?
"Sometimes the only way you can feel good about yourself is by making someone else look bad And I'm tired of making other people feel good about themselves"-Homer Simpson
-
Apr 2nd, 2002, 10:58 PM
#2
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Apr 2nd, 2002, 11:09 PM
#3
Member
If you want to send a form via e-mail, the easiest way can be done with pure HTML, sort of:
Code:
<form action="mailto:[email protected]">
<textarea name="monkeypoo">
Yeah, you heard me!
</textarea>
<input type="submit">
</form>
The user will have to have a mail client installed, and what's more they'll be warned that the form will be submitted via e-mail. As for just sending mail without using their client like this, you'd have to use PHP, JSP, or some other server-side language.
-
Apr 3rd, 2002, 12:22 AM
#4
Thread Starter
Lively Member
then i need to do it in another language
do you know how?
"Sometimes the only way you can feel good about yourself is by making someone else look bad And I'm tired of making other people feel good about themselves"-Homer Simpson
-
Apr 3rd, 2002, 03:33 AM
#5
Fanatic Member
If you use ASP you can do it using the CDONTS object
Code:
<%
Set sm = Server.CreateObject("CDONTS.NewMail")
With sm
.From = "[email protected]"
.To = "[email protected]"
.Subject = "subject"
.Body = "body"
.Send
End With
Set sm = Nothing
%>
-
Apr 3rd, 2002, 12:04 PM
#6
Member
PHP, it's, as usual, really easy:
PHP Code:
<? mail('[email protected]', 'Check this out!', 'http://www.vbforums.com/ , visit it or die'); ?>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|