Hello, I have the following situation where on both servers i use custom nameservers and cPanel/WHM:

Server 1:
I host the domain http://www.wooptydoo.com
I have the email contact@wooptydoo.com

Server 2:
I host a subdomain http://sub.wooptydoo.com and this subdomain contains a PHP mail function that sends email from contact@wooptydoo.com.

My question is how would i go about sending email from contact@wooptydoo.com from server 2 while the domain and email is configured on server 1?

Any help is kindly appreciated.

Thank you in advance.

Cem