Click to See Complete Forum and Search --> : send mail
BigBosky
Apr 2nd, 2002, 09:38 PM
anyone know how to create an email form that sends whatever they write to a specific email?
crptcblade
Apr 2nd, 2002, 09:58 PM
Using what, just HTML?
filburt1
Apr 2nd, 2002, 10:09 PM
If you want to send a form via e-mail, the easiest way can be done with pure HTML, sort of:
<form action="mailto:you@domain.com">
<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.
BigBosky
Apr 2nd, 2002, 11:22 PM
then i need to do it in another language
do you know how?
punkpie_uk
Apr 3rd, 2002, 02:33 AM
If you use ASP you can do it using the CDONTS object
<%
Set sm = Server.CreateObject("CDONTS.NewMail")
With sm
.From = "fromaddress@domain.com"
.To = "toaddress@domain.com"
.Subject = "subject"
.Body = "body"
.Send
End With
Set sm = Nothing
%>
filburt1
Apr 3rd, 2002, 11:04 AM
PHP, it's, as usual, really easy:
<? mail('somedude@somewhere.com', 'Check this out!', 'http://www.vbforums.com/ , visit it or die'); ?>
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.