Created
April 18, 2024 15:32
-
-
Save trycf/f9b7c7645cd304168d9287930302475f to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Send Test Email</h2> | |
<cfparam name="form.from" default="donotreply@studentloan.org"> | |
<cfparam name="form.to" default=""> | |
<cfparam name="form.subject" default="Test"> | |
<cfparam name="form.body" default="TEST"> | |
<cfparam name="form.server" default=""> | |
<cfparam name="form.username" default=""> | |
<cfparam name="form.password" default=""> | |
<cfoutput> | |
<form action="" method="post"> | |
<div> | |
<label for="value">From:</label> | |
<input type="text" name="from" id="from" value="#form.from#" style="width:400px;"/> | |
</div> | |
<div> | |
<label for="value">To:</label> | |
<input type="text" name="to" id="to" value="#form.to#" style="width:400px;"/> | |
</div> | |
<cfif CGI.REQUEST_METHOD eq "post"> | |
<div> | |
<cfmail | |
from = "#form.from#" | |
to = "#form.to#" | |
subject = "#form.subject#" | |
server = "#form.server#" | |
username = "#form.username#" | |
password = "#form.password#">#form.body#</cfmail> | |
</div> | |
</cfif> | |
<div> | |
<input type="submit" name="send" value="send" /> | |
</div> | |
</form> | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment