@cyber_user

Возможно ли сделать функции (Прочитано, Доставлено)?

Здравствуйте, написал скрипт отправки писем с помощью NodeJS. Хотел бы написать не большую веб морду, в которой бы по каждой моей рассылки была статистика а именно:

1) Сколько писем доставлено
2) Сколько прочитано
3) Сколько отклонено

google говорит что нужно вставлять не видимый пиксель 1x1 картинку для того что бы отследить кто открыл письмо, работает ли это сейчас?)
Ведь например как я знаю почтовики могут открыть письмо сами и посмотреть содержимое перед тем как пользователь откроет само письмо, и статистика уже будет не верная.

Подскажите как это организовано в email сервисах на подобие SendPulse ?
  • Вопрос задан
  • 170 просмотров
Пригласить эксперта
Ответы на вопрос 2
Adamos
@Adamos
"В целях безопасности, Thunderbird заблокировал в этом сообщении загрузку содержимого из Интернета" - это был ваш посоветованный гуглем пиксель.
Ответ написан
Комментировать
Я на работе для этих целей сделал отправку писем через Amazon Simple Email Service. Он при помощи вебхуков отправляет на нужный урл информацию по письмам.

Отправляемые статусы (https://docs.aws.amazon.com/ses/latest/DeveloperGu...
Sends – The call to Amazon SES was successful and Amazon SES will attempt to deliver the email.

Rejects – Amazon SES accepted the email, determined that it contained a virus, and rejected it. Amazon SES didn't attempt to deliver the email to the recipient's mail server.

Bounces – The recipient's mail server permanently rejected the email. This event corresponds to hard bounces. Soft bounces are only included when Amazon SES fails to deliver the email after retrying for a period of time.

Complaints – The email was successfully delivered to the recipient. The recipient marked the email as spam.

Deliveries – Amazon SES successfully delivered the email to the recipient's mail server.

Opens – The recipient received the message and opened it in his or her email client.

Clicks – The recipient clicked one or more links contained in the email.

Rendering Failures – The email was not sent because of a template rendering issue. This event type only occurs when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail API operations. This event type can occur when template data is missing, or when there is a mismatch between template parameters and data.


Пример отправки письма на PHP: https://docs.aws.amazon.com/ses/latest/DeveloperGu...
Пример JSON'a который приходит от amazon: https://docs.aws.amazon.com/ses/latest/DeveloperGu...
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы