0 down vote favorite
I have a webform and I want to send an email to a user on submit action on this webform.
Note: I do not want to use the inbuild emails module for webform as it has some limitations related to the functionality that i want to achieve. Hence I want to send a test email on Submit action via a custom PHP.
I know how to write PHP for a webform but I need some guidance on how to use it for sending emails.
Also I want to send emails on submit action only if user selects a select option on this form.
How can I do this? Please help I am stuck on this for a long time now.
I tried using Rules module but I can not check the webform field values in rules.