Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Domain Validation on new Ticket

We work with various different schools and businesses and constantly get tickets from users entering their domain name wrong when typing their email. Previously on our old help desk system we were able to use the following code to perform a DNS A or MX record lookup to validate the domain, do we think this could be coded into osTicket somehow?

$email = $_REQUEST[email]
list($UserName, $MailDomain) = split("@", $email)
checkdnsrr("$MailDomain." . ".", "A") || checkdnsrr("$MailDomain." . ".", "MX")

If the output comes back good then the domain exists and create the ticket, else pop an alter to ask for the user to check the domain name.
Sign In or Register to comment.