/    Sign up×
Community /Pin to ProfileBookmark

PHPMailer – Spam/Junk

I’m using PHPMailer to send emails. Almost all users are having the email filtered into junk mail.

Why is this and what can be done to prevent it.

I’m sending it from [email protected] where mydomain.com is the domain it’s being sent from.

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@NachfolgerAug 25.2020 — Did you configure DKIM/SPF/Etc?

I bet not. Start there.
Copy linkTweet thisAlerts:
@kiwisauthorAug 26.2020 — @Nachfolger#1622546

No never heard of that. Can you explain how to do it and what it's for?
Copy linkTweet thisAlerts:
@kiwisauthorAug 26.2020 — When I view the original message in Gmail I see this

DKIM: 'PASS' with domain mydomain.com Learn more

And in outlook

Authentication-Results: spf=pass (sender IP is 123.123.123.123)

smtp.mailfrom=mydomain.com; outlook.com; dkim=pass (signature was verified)

So maybe it's working already?
Copy linkTweet thisAlerts:
@NachfolgerAug 26.2020 — @kiwis80#1622549 If you have never heard of it, how could it have been set up?

https://www.mailjet.com/blog/news/setting-up-dkim-step-by-step/

https://www.validity.com/how-to-build-your-spf-record-in-5-simple-steps/

There are things beyond DKIM/SPF, but start with those two.
Copy linkTweet thisAlerts:
@kiwisauthorAug 27.2020 — @Nachfolger#1622555

It's set up according to my host. I can see it in cPanel

v=spf1 +a +mx +ip4:192.1.1.1 ~all
Copy linkTweet thisAlerts:
@kiwisauthorAug 27.2020 — One thing I should say is my domain name and hosting company are different.

Copy linkTweet thisAlerts:
@kiwisauthorAug 27.2020 — Perhaps just an outlook/hotmail thing. Any help appreciated.
Copy linkTweet thisAlerts:
@hemangjoshi37aAug 31.2020 — I think you might have generalised the definition of spam or junk very wide. So you may need to reconsider redefining your span junk mail definitions.


Hemang Joshi,

Web Designer,

https://hostshire.com
×

Success!

Help @kiwis spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...