When I send mail using PHP's mail function. The reciever's client shows "via soandsohost". But when I use horde webmail fromt the host's cPanel it does not seem to appear. So haw can I remove the "via" part while still being able to send mail using PHP code ?

Those headers are added on the mail server, which you do not have access to. So, you can't.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.