Email sending doesn't work through Webform I'm trying to get drupal webform to send confirmation emails to logged in users after they validated a booking form. (Windows and IIS Server)

I monitored Drupal Log reports/dblog and got this: 

Notice : Undefined index: und in eval() (line 22 in   C:\.....\modules\php\php.module(80) : eval()'d code)


Also, after submitting the booking form it gives this error: Impossible to send mails, please contact administrator if problem persists.

And to add, generally Mail sending works when tryin to reset my admin password.

Apparently I'm not the only one with this problem.
It appears you're running your site on Windows. Either IIS or Apache? 

Sending mail on windows based servers is a bit different. It cannot used php's normal method for sending mail if it were on a linux server. 

You must configure an SMTP server in either your PHP.ini, or leverage the SMTP Auth module and connect to an SMTP server.

PHP.ini setup:


http://www.quackit.com/php/tutorial/php_mail_configuration.cfm
https://stackoverflow.com/questions/112190/php-ini-smtp-how-do-you-pass-username-password