anyone know how to create an email form that sends whatever they write to a specific email?
Printable View
anyone know how to create an email form that sends whatever they write to a specific email?
Using what, just HTML?
If you want to send a form via e-mail, the easiest way can be done with pure HTML, sort of:
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.Code:<form action="mailto:[email protected]">
<textarea name="monkeypoo">
Yeah, you heard me!
</textarea>
<input type="submit">
</form>
then i need to do it in another language
do you know how?
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
%>
PHP, it's, as usual, really easy:
PHP Code:<? mail('[email protected]', 'Check this out!', 'http://www.vbforums.com/ , visit it or die'); ?>