PHP mail() not working

Hi,

This is my first post here, I’ve recently installed cyberpanel , and it looks good with great functions .

I’m using php and wordpress

tried to setup contact form with php and with woordpress also contact form7 and none of them works.

Here is error r log from mail server.

May 4 04:26:06 localhost postfix/smtp[21425]: connect to alt1.gmail-smtp-in.l.google.com[74.125.28.27]:25: Connection timed out
May 4 04:26:06 localhost postfix/smtp[21425]: connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:4003:c12::1a]:25: Network is unreachable
May 4 04:26:06 localhost postfix/smtp[21425]: C706F8F821: to=[email protected], relay=none, delay=1061, delays=1001/0.02/60/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:4003:c12::1a]:25: Network is unreachable)
May 4 04:28:19 localhost postfix/pickup[20663]: 71E878F822: uid=1003 from=
May 4 04:28:19 localhost postfix/cleanup[21447]: 71E878F822: message-id=[email protected]
May 4 04:28:19 localhost postfix/qmgr[17498]: 71E878F822: from=[email protected], size=402, nrcpt=1 (queue active)
May 4 04:28:49 localhost postfix/smtp[21450]: connect to gmail-smtp-in.l.google.com[172.217.194.26]:25: Connection timed out
May 4 04:28:49 localhost postfix/smtp[21450]: connect to gmail-smtp-in.l.google.com[2404:6800:4003:c04::1b]:25: Network is unreachable

I’m not sure how I can setup just phpmail function ?

Same Problem any help Please

Same issue