0

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.

1 Answer 1

0

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:

7
  • Yes I am running it on Windows and IIS Server. Sorry for not claryfing that earlier. I'm trying your solution now will come back if it works out.
    – Vasmir
    Commented Jan 17, 2017 at 14:48
  • still not working unfortunately.
    – Vasmir
    Commented Jan 18, 2017 at 7:53
  • Doesn't tell me a lot. What steps did you do exactly, what are you using for mail service, etc.
    – Remog
    Commented Jan 18, 2017 at 15:02
  • Sorry for the late answer. I configured my php.ini file by changing the stmp config. (adding my email as sender).
    – Vasmir
    Commented Jan 19, 2017 at 15:21
  • Share your config?
    – Remog
    Commented Jan 19, 2017 at 21:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.