Skip to content

Instantly share code, notes, and snippets.

@bharat20185
Last active January 24, 2024 13:30
Show Gist options
  • Save bharat20185/a69330b0351e460e6aa0a311c545fbc0 to your computer and use it in GitHub Desktop.
Save bharat20185/a69330b0351e460e6aa0a311c545fbc0 to your computer and use it in GitHub Desktop.
<cfscript>
function sendMail(
required string fromAddress,
required string toAddresses,
required string subject,
required string content,
numeric priority = 1, // urgent
string ccAddresses,
string bccAddresses,
array attachments
) output="true" {
dump(arguments)
}
sendMail(
fromAddress = "[email protected]",
toAddresses = "[email protected],[email protected]",
subject = "test email",
content = "body of the email",
attachments = [],
priority = 2
);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment