Questions tagged [email-spam]

Spam is the use of electronic messaging systems to send unsolicited bulk messages indiscriminately.

E-mail spam, known as unsolicited bulk Email (UBE), junk mail, or unsolicited commercial email (UCE), is the practice of sending unwanted e-mail messages, frequently with commercial content, in large quantities to an indiscriminate set of recipients. Spam in e-mail started to become a problem when the Internet was opened up to the general public in the mid-1990s. It grew exponentially over the following years, and today composes some 80 to 85% of all the email in the world, by a "conservative estimate". Pressure to make e-mail spam illegal has been successful in some jurisdictions, but less so in others. Spammers take advantage of this fact, and frequently outsource parts of their operations to countries where spamming will not get them into legal trouble.

Why Did My Email Land in the Spam Folder?

Because the recipient had a filter in place. There is no way you can influence what the recipient does to block or accept your email, and hence, there is no programmatic solution to this problem. (If there was a way to make sure the email your program sends is delivered to the recipient, spammers would promptly start doing that, mail server administrators would prompty respond, and then it would no longer work.) Therefore, questions about email deliverability are off-topic for StackOverflow. See also this meta question.

310 questions
464
votes
24 answers

How do you make sure email you send programmatically is not automatically marked as spam?

This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology. Of late, some of the emails I send out…
Leon Bambrick
  • 26,009
  • 9
  • 51
  • 75
58
votes
3 answers

Best practices: Sending email on behalf of users

The company I work for provides testing services for the healthcare industry. As part of our services, we need to send email to our clients' employees. Typically, these are temp, part-time, or contract employees, and so have private email…
Ben Doom
  • 7,865
  • 1
  • 27
  • 30
31
votes
6 answers

SendGrid Emails Getting Rejected as Spam

I'm making a user management system for my app, and I need to send users a "forgot my password" email with a token that lets them reset their account password. I signed up for SendGrid through Azure (to get the 25,000 emails per month free, which…
Reubend
  • 644
  • 1
  • 6
  • 19
31
votes
4 answers

Setting up DomainKeys/DKIM in a PHP-based SMTP client

It looks like there are some great libraries out there to do DomainKeys signing of emails on C#/.NET, but I'm having a really hard time finding the same kind of support for PHP. Maybe I'm not looking in the right place? The only one I found is…
Alex Weinstein
  • 9,823
  • 9
  • 42
  • 59
30
votes
6 answers

sending email via php mail function goes to spam

I am facing problem in sending mail to my inbox (gmail account) but everytime it goes to spam folder. Here is the code snippet //$ticketDetail is array which contain required information to send. …
Dinesh Nagar
  • 768
  • 2
  • 11
  • 23
29
votes
6 answers

Object Oriented Bayesian Spam Filtering?

I was wondering if there is any good and clean object-oriented programming (OOP) implementation of Bayesian filtering for spam and text classification? This is just for learning purposes.
gyurisc
  • 11,234
  • 16
  • 68
  • 102
24
votes
5 answers

Sendgrid email delivery drop due to Spamhaus listing

Starting on 2020-08-17, Sendgrid IP addresses were listed on Spamhaus for sending phishing emails. Shown here: 1 2 3 This has dropped our email delivery to about 50%, as opposed to the usual 99%. Is there anything I can do to resolve this, besides…
Wouter Florijn
  • 2,711
  • 2
  • 23
  • 38
24
votes
6 answers

Email send through nodemailer goes into spam for gmail

I am sending email through nodemailer it goes into inbox of gmail if i run from local server but goes into spam of gmail if i run script from microsoft azure server. following is my script var nodemailer = require('nodemailer'); var EmailTemplates =…
Rajesh N
  • 6,198
  • 2
  • 47
  • 58
20
votes
1 answer

Do subdomains protect a domain's reputation when sending emails?

I'm working on an application that is meant to distribute emails by the thousands. We've started interfacing with Mandrill to accomplish this. So my coworker suggests that we use a subdomain to send all of theses emails out, so as to protect our…
Captain Hypertext
  • 2,446
  • 4
  • 27
  • 36
17
votes
5 answers

Protecting email addresses from spam bots / web crawlers

How do you prevent emails being gathered from web pages by email spiders? Does mailto: linking them increase the likelihood of them being picked up? Is URL-encoding useful? Obviously the best counter-measure is to only show email addresses to…
Zaz
  • 46,476
  • 14
  • 84
  • 101
16
votes
6 answers

Tracking email bounces, opens, clicks

I found How do you make sure email you send programmatically is not automatically marked as spam? to (hopefully) be a solid guide to avoiding being marked as spam. Are there any other important tips/suggestions? How do I track…
GeekJock
  • 11,066
  • 13
  • 43
  • 44
14
votes
14 answers

Prevent sent emails treated as junk mails using php mail function

I wrote a PHP script to send emails. My script is like this: $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: abc@yahoo.com' . "\r\n"; // Email Variables $toUser =…
Peter
  • 1,073
  • 2
  • 11
  • 9
14
votes
4 answers

How to conduct legitimate email campaigns

We are working on a project that requires us to allow users to register to receive email notifications of certain events. There will potentially be tens or hundreds of thousands of email messages based on any one event. I know that this is done…
Steve Hawkins
  • 1,433
  • 4
  • 17
  • 24
13
votes
5 answers

python: correct method verify if email exists

I am trying to verify if an email actually exists by first resolving its dns, then check if the email is valid using the below code: email = test@cisco.com domain = email.split("@")[-1] records = dns.resolver.query(domain, 'MX') …
Sam Rohn
  • 359
  • 2
  • 5
  • 13
12
votes
12 answers

Does your email client let you add custom headers programmatically?

I'm working on an anti-spam project (centmail) that involves having the sender use a client plugin that adds a custom header (as well as a signature, but that part's easier). The general problem is to add an email header to your outgoing mail where…
dreeves
  • 26,430
  • 45
  • 154
  • 229
1
2 3
20 21