简体   繁体   English

通过joomla发送的电子邮件进入垃圾邮件文件夹

[英]Emails sent through joomla go to SPAM folder

I am using the latest Joomla build for my website. 我正在为我的网站使用最新的Joomla版本。 Allso we use a DNS record for having the mail delivered to our own server instead of the server on which the website is hosted. 总而言之,我们使用DNS记录将邮件传递到我们自己的服务器,而不是托管网站的服务器。

I have used several contact form components, but every sent mail goes to my SPAM folder. 我已经使用了几个联系表单组件,但是每个发送的邮件都转到我的SPAM文件夹中。 After searching hours on the web (and getting linked to this site frequently) i decided to make a new post. 在网上搜索了几个小时后(并经常链接到该网站),我决定发表一篇新文章。

It does not matter if i use the standard joomla forms, or any component. 我是否使用标准的joomla表单或任何组件都没有关系。

Whenever a user fills in a form on my website, the email gets sent. 每当用户在我的网站上填写表格时,都会发送电子邮件。 The user receives a copy of its message, and i receive the message of the user. 用户收到其消息的副本,而我收到用户的消息。 However, this message gets thrown in the spam folder, as phishing. 但是,此邮件作为网络钓鱼被扔到垃圾邮件文件夹中。

The sender of the mail always is: username@nameserver.i3d.net; 邮件的发件人始终是: username@nameserver.i3d.net; namens; 名字 websitename 网站名称

What do i have to change/enable/disable for this to work? 我必须更改/启用/禁用此功能才能做什么?

Thanks in advance. 提前致谢。

Patrick. 帕特里克

(Sorry, I'm new to Joomla, but it uses PHP, so this may apply. Also this answer got a little long...) (对不起,我是Joomla的新手,但是它使用PHP,因此这可能适用。而且这个答案还有些长...)

It might be an issue with the email headers. 电子邮件标题可能是一个问题。 A lot of email clients will automatically spam-box all mail where the address in the From: header doesn't match the envelope sender . 许多电子邮件客户端会自动将所有发件人的垃圾邮件放入垃圾邮件箱中, From:标头中的地址与信封发件人不匹配。 As an analogy, you might not trust a snail-mail letter signed "Your Rich Uncle", mailed in an envelope with a Nigerian return address. 打个比方,您可能不信任在带有尼日利亚寄信人地址的信封中签名的“您的富叔叔”的蜗牛信。 Also if your envelope sender has a different domain than the one the email is actually sent from, that's another quick ticket to the junk bin. 同样,如果您的信封发件人的域与实际发送电子邮件的域不同,则这是到垃圾箱的另一张快速票。 For more info about Gmail's message blocking policies (and general good practices), you can try this help page . 有关Gmail的邮件阻止政策(和一般的良好做法)的详细信息,请尝试此帮助页面

Here's some basic PHP email-sending code: 这是一些基本的PHP电子邮件发送代码:

$to = $userEmailAddress;
$subj = $emailSubject;
$mesg = $emailMessage;
$headers = implode("\r\n",array(
    "MIME-Version: 1.0"
    ,"Content-type: text/html;charset=iso-8859-1"
    ,"From: WEB_ADMIN_NICE_NAME <WEB_ADMIN@YOURSERVER.COM>" // *** 'From:' header
));
$from = "-fWEB_ADMIN@YOURSERVER.COM"; // *** envelope sender
if(!mail($to, $subj, $text, $headers, $from)){
    //Some error handling...
}

On the first line I commented, you'll want to replace WEB_ADMIN_NICE_NAME with the name you want the email recipient to see (eg "Bill Gates"), and on both lines, replace WEB_ADMIN@YOURSERVER.COM with the actual return address (eg "da_boss@microsoft.com"). 在我评论的第一行中,您将用您希望电子邮件收件人看到的名称替换WEB_ADMIN_NICE_NAME (例如“ Bill Gates”),在这两行中,将WEB_ADMIN@YOURSERVER.COM替换为实际的回信地址(例如“ da_boss@microsoft.com”)。 Note: whatever address you choose for the return address is where users' replies will be sent. 注意:您选择的寄信人地址是发送用户答复的地址。

To reiterate, make sure both lines have the same return address (though the nice name can be anything you like), and make sure that the actual server sending the mail is in fact located at YOURSERVER.COM . 重申一下,请确保两行具有相同的返回地址(尽管好名字可以是您喜欢的任何名称),并确保发送邮件的实际服务器实际上位于YOURSERVER.COM

Lastly, I'm not sure where Joomla does its mailing, but if you're totally lost, you can try grepping with -lr for 'mail[[:space:]]*(' . 最后,我不知道在哪里的Joomla做它的邮件,但如果你完全失去了,你可以尝试grepping-lr'mail[[:space:]]*('

there are several reasons that could make your email look suspicious to spam filters; 有多种原因可能会使您的电子邮件看起来像垃圾邮件过滤器; to find out which head on to: 找出前往哪个方向:

http://www.mail-tester.com http://www.mail-tester.com

grab the email address and send an email from your website to it. 抓取电子邮件地址,然后从您的网站向其发送电子邮件。 Then go back to the page and it will tell you what's wrong. 然后返回页面,它将告诉您出了什么问题。

btw I'm struggling with the same issue,my problem being that on Joomla 2.5.9 apparently when you send html emails, a text-only copy is not added to the message, which is considered "spammish behaviour" 顺便说一句,我在同一个问题上挣扎,我的问题是在Joomla 2.5.9上,当您发送HTML电子邮件时,显然没有将纯文本副本添加到邮件中,这被认为是“垃圾邮件行为”

The problem is the i3d.net email address. 问题是i3d.net电子邮件地址。 My personal experience is that their network (31.204.154.0 - 31.204.155.255) is a significant source of spam and they do not action abuse reports. 我的个人经验是,他们的网络(31.204.154.0-31.204.155.255)是垃圾邮件的重要来源,并且他们不处理滥用报告。 I suggest changing your hosting company. 我建议更改您的托管公司。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过smtp.gmail.com发送的电子邮件被Gmail标记为垃圾邮件 - Emails sent through smtp.gmail.com marked as spam by Gmail 如何避免通过php发送的电子邮件进入垃圾邮件文件夹? - How to avoid email sent through php getting into spam folder? 为什么 cpanel 邮件会变成垃圾邮件? - Why cpanel emails go to spam? SMTP电子邮件进入Outlook的垃圾邮件 - SMTP Emails go into SPAM on Outlook 通过 C# SMTP 发送给客户的电子邮件会直接成为某些邮件提供商的垃圾邮件 - Emails sent to customers via C# SMTP go straight to spam for some mail providers 通过nodemailer从我的服务器发送的电子邮件以垃圾邮件的形式通过:(未知发件人) - Emails sent via nodemailer from my server come through as spam: (unknown sender) 已将邮件发送到垃圾邮件文件夹? - Sent mail going to spam folder? 如何从不包含 go 的 php 脚本向垃圾邮件文件夹发送电子邮件(规则建议) - How to send emails from a php script that dont go to the spam folder (rules suggestions) 使用php使用cPanel从服务器发送的电子邮件进入Outlook.com垃圾邮件/垃圾邮件文件夹 - Emails send from server with cPanel using php go to outlook.com junk/spam folder 为什么我的服务器发送的电子邮件标记为垃圾邮件? - Why are emails sent by my server marked as SPAM?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM