Email Helper
The Email Helper provides some assistive methods for working with Email. For a more robust email solution, see revIgniter's Email Library.
Loading this Helper
This helper is loaded using the following code:
loadHelper "email"
The following methods are available:
validEmail("email")
Checks if an email is a correctly formatted email. Note, that this doesn't actually prove the email will recieve mail, simply that it is a validly formed address.
It returns TRUE/FALSE
loadHelper "email"
if validEmail("email@somesite.com") is TRUE then
put "email is valid" into gData["emailCheck"]
else
put "email is not valid" into gData["emailCheck"]
end if
sendEmail("recipient", "subject", "message", "sender", "cc", "bcc")
Sends an email using Mail. For a more robust email solution, see revIgniter's Email Library.
It returns TRUE/FALSE