Hi Jan,
thanks for your replay. The problem is that my mail server just accepts proper request (according RFC 820 or so...) where the replay address has to be in brackets.
Well I changed on 3 positions the code like you told me, but the result is still the same...
In adition I added to line 153 this: echo $header."<-myheader<br>";
to make sure that the brackets are set, but unfortunately the complete header is never displayed:
-------------------Error message-------------
Return-Path: myemail@domain.net From: <-myheader
Email Error: MAIL FROM invalid mail server response: 501 Syntax error, missing brackets
-------------------Error message-------------
That's all what I got...
Is there a place in the code where I could display the complete header/email just to make sure everything is send correctly?
Your help is appreciated
Hanspeter