I am compelled to write this to save many hours of frustration any other developer might be facing:
If you are trying to set email body using mailto: link dynamically, then naturally your first tendency is to use urlencode() to make the content compatible right?
But there’s a problem that email clients don’t understand the encoding produced by urlencode() since it produces encoding which is compatible for URLs not emails. So what do you do now?
Enter rawurlencode() which is you savior in this sticky situation!
Hope this helps somebody!