You need to state a temporary directory via the 'tempdir' argument. Example: contactform ( recname => 'John Smith', recmail => 'john.smith@example.com', );