EMails sent show server id not the domain.
Sending EMails from a cpanel account via PHP Mailer, but the From field is being replaced by the admin account and server instead of the actual EMail account .
Like it's being overwritten .....
For instance, the EMails are supposed to be coming from
username@domain.com
.......but when they are received, they're showing as coming from
defaultuser@serverhostname.com..........admcgg is the default mail 'system' cpanel EMail account......and pikavi.pikavi.com is the SERVER.....lol
In fact, PHP Mailer isn't even throwing an error when I log into the SMTP account with a bad password.......lol
Bottom Line: SMTP is Broken....................
Went back to PHP v 7.4 and now it shows the domain EMail the EMails are coming from.
So I guess v8 reflects the true sender, which is the admin account on the domain, if there's no actual login to another mail account.
However it doesn't matter if the actual login to an EMail account via SMTP actually is done.
The EMails through PHPMailer get sent anyway........
This is really blowing my mind........wtf is going on?
OK...not only does SMTP have to be set.....but SMTPAuth also needs to be set.
$mailer->isSMTP();
$mailer->SMTPAuth = TRUE;
But its' disconcerting that PHPMailer can just send mail w/o authentication of any type.
I guess if the local mail server is being used, it's allowed.
It's UnBelievable how something as simple as EMail has become so freaking Complicated...........sigh
z
-
It is my understanding that the PHP Mailer scripts are unique to the domain, so adding them to each website is all you would need to do. 0
Please sign in to leave a comment.
Comments
2 comments