Is this possible?

Status
Not open for further replies.

Macemore

Circumcised pineapples
Aug 26, 2011
1,681
819
Haidere, I'd like to know if I could setup a E-Mail form on my website (using PHP & ASP & HTML)
I was looking through w3schools' ASP tutorial and I saw this code:
Code:
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="[email protected]"
myMail.To="[email protected]"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>
and I was thinking if I could setup a form where I can just fill it out and send an email from there? Like so:
HTML:
<form name="input" action="send_the_fucking_email.php" method="get">
Subject: <input type="text" name="subject" />
To: : <input type="text" name="to" />
Message: : <input type="text" name="textbody" />
<input type="submit" value="Send the fucking email already!" />
</form>
but I have no idea how (or if you can) set that up with PHP.
any help here guys?

Thanks!
 

Heaplink

Developer & Designer
Nov 9, 2011
510
173
You mix can't three languages with each other - defiantly not ASP & PHP. Just use PHP, easy and theres even a function called mail(); that can do it for you.

 
Status
Not open for further replies.

Users who are viewing this thread

Top