created function to send the content