如何防止我的邮件被发送为垃圾邮件 [英] How Do I Prevent My Mail From Being Sent As Spam

查看:90
本文介绍了如何防止我的邮件被发送为垃圾邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我目前有一个程序运行导入的用户需要在生成用户名和密码后添加到系统我需要发送URL链接以及用户的用户名和密码。



这是我目前的代码





Hi

I currently have a program that runs an import of users that need to be added to the system once the username and password are generated I need to send the URL link as well as username and password to the users.

this is the code i currently have


Dim Statement As New MailMessage
                            Dim EmailAdd As String = "Test@email.com"
                            'Dim emailaddress2 As String = sFieldsIn(6).ToString

                            Statement.Subject = "Login details"
                            'Statement.To.Add(emailaddress2)
                            Statement.To.Add(EmailAdd)
                            Statement.Bcc.Add("Test2@email.com")
                            Statement.From = New MailAddress("No-Reply@Test.com")


                            Statement.Body = "Please click the following link and enter the user details below to access your profile" & vbCrLf & "URL:" & System.Configuration.ConfigurationSettings.AppSettings("URL") & vbCrLf & "UserName:" & username & vbCrLf & "Password:" & Password


                            Dim SMTP As New SmtpClient("mail.SMTP.com")

                            SMTP.Credentials = New System.Net.NetworkCredential("Username", "Password")
                            SMTP.Port = CInt("25")
                            SMTP.Send(Statement)





当电子邮件发送时,它会被标记为垃圾邮件或被阻止,我不接收邮件。(我已经测试过将这封邮件发送到Gmail和实时电子邮件地址)



请你能帮忙吗? t $ / b $ b

提前谢谢你



When the email gets sent it either gets flagged as spam or it is blocked and i do not receive the mail.(i have tested sending this to a gmail and live email addresses)

Please could you assist

Thank you in advance

推荐答案

你的代码不是问题。问题是您发送的内容及其来自的电子邮件。例如,如果您使用hotmail帐户从您的应用程序发送邮件,并且如果您的应用程序中有错误的文本,或者没有说明其用户被发送的原因,接收端将阻止它并标记它垃圾邮件。



如果您为发送的电子邮件提供一个小的解释,然后提供凭据(如果有的话),您的邮件有更多机会到达发件人。您最好使用合法的域名来发送邮件,例如yourdomain.com。



如果您只发送一堆凭据而没有关于电子邮件内容的简短说明,它也会被标记为垃圾邮件。如果电子邮件被标记为垃圾邮件,则因为用户应用程序的接收端使用了过滤器。我不建议尝试欺骗电子邮件客户端,因为您的邮件可能被视为恶意,而且最糟糕。
You code is not the issue here. What is the issue is the content you are sending and the email its coming from. For example, if you use a hotmail account to send mail from your application and if your application has badly written text in it or does not explain its purpose as to why the user is being sent it, the receiving end will block it and flag it as spam.

You'd have more chance of your message reaching the sender if you provide a small explanation for the purpose of the email you are sending and then the credentials if any. You would also be better to use a legitimate domain name to send the mails from, such as yourdomain.com.

If you just send a bunch of credentials without a short explanation for what the email is for, it too will be flagged as spam. If an email is flagged as spam, its because of the filters used on the receiving end of the users application. I don't advise trying to trick the email client as your mail could then be seen as malicious and that's worst.


问题与您的代码没有直接关系。软件的接收部分使用某些标准或算法将其分类为垃圾邮件。您可以要求他们更改它,或者说,将发件人地址更改为while列表,或类似的内容。



最好拒绝任何欺骗行为系统(这通常是可能的,但为什么?)......



-SA
The problem is not directly related to your code. The receiving part of software classifies it as spam using some criteria or algorithm. You can ask them to change it, or, say, to the sender address to the while list, or something like that.

It's better to deny any attempts to trick the system (which is usually possible, but why?)...

—SA


这篇关于如何防止我的邮件被发送为垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆