Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyway to avoid message been sent to spam folder? #11

Closed
Frido-Cpp opened this issue Dec 13, 2022 · 4 comments
Closed

Anyway to avoid message been sent to spam folder? #11

Frido-Cpp opened this issue Dec 13, 2022 · 4 comments
Assignees

Comments

@Frido-Cpp
Copy link

No description provided.

@John-Kiruba
Copy link

You could try to assign the Content-Type explicitly as ' text/plain' of the header fields that is sent via script.
Apparently explicitly denoting the charset and type of the message helps .

Source Doc

msg = EmailMessage()
msg.set_content(message, subtype="plain", charset='us-ascii')

Note here the subtype="plain"

Although ,the spam filtering criteria is set by the mailing application , its unclear on what basis a mail falls into spam.
Most of the apps like Gmail have variety of filtering criteria , it decides if the mails are sent to inbox or spam folder.

@Frido-Cpp
Copy link
Author

Thanks

@coderatul
Copy link
Owner

hey @John-Kiruba could you make the following changes

@abao168899
Copy link

未提供描述。
注意标题的元素代码

<script async src="https://www.googletagmanager.com/gtag/js?id=G-GPFC4KD202"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-GPFC4KD202'); </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants