Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

HUGE_DICK_10_INCHES's avatar

Is it normal to be able to send emails form any email with phpmailer

I've made basic laravel website and I added phpmailer, I have some webhosting and when I add that hosting mail info. I can add to from field any email not just my domain mail but any mail is that bad?

Hosting support says it's impossible but I can do it even from localhost?

I know that is bad but why can I do it? Can anyone? (If I use some laravel provided with gmail info I cant)

0 likes
1 reply
Vilfago's avatar

Good or bad is a huge question... question of point of view ;)

But yes, it's very easy for almost everyone to send email with @anything.hack. However, the recipient can find from which server it was sent, and thus check that is consistent with the sending adress.

So if you try, your emails will probably be received in the spam folder.

For information, if you use sparkpost or mailgun or ..., you have to prove that you own the domain from which you send your email.

Please or to participate in this conversation.