Created
April 18, 2024 15:40
-
-
Save trycf/7c85c061d79aa38a8af878a7f6bc9f24 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.server" default="testvipmail"> | |
<cfparam name="form.from" default="donotreply@studentloan.org"> | |
<cfparam name="form.to" default="jgray7@gmail.com"> | |
<cfparam name="form.subject" default="Test"> | |
<cfparam name="form.body" default="TEST"> | |
<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="server" id="server" value="#form.server#" style="width:400px;"/> | |
</div> | |
<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> | |
<div> | |
<input type="submit" name="send" value="Send" /> | |
</div> | |
</form> | |
<cfif CGI.REQUEST_METHOD eq "post"> | |
<hr/> | |
<cfif Len(Trim(form.username))> | |
<cfmail | |
from="#form.from#" | |
to="#form.to#" | |
subject="#form.subject#" | |
server="#form.server#" | |
username="#form.username#" | |
password="#form.password#">#form.body#</cfmail> | |
<cfelse> | |
<cfmail | |
from="#form.from#" | |
to="#form.to#" | |
subject="#form.subject#" | |
server="#form.server#">#form.body#</cfmail> | |
</cfif> | |
<div> | |
#form.body# | |
</div> | |
</cfif> | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment