SMTP1 working but still need to write to file