Different Email to Webform Submitter

When you install the Drupal Webform Module, after submitting the form, users are sent mail with the data they have filled through the form. What if you want to send customized email to the submitter ? Below is a simple solution.

When u add a email field, do not check the " E-mail a submission copy " checkbox.
Instead in the webform form settings i'e " Webform advanced settings -> Additional Processing: " add the below code.

Note : In variable $to, we get the email address of the email field, filled by the user.
and u r done.

This is how we can send the customized email to the submitter. Hope this helps someone