我的邮件总是去垃圾邮件文件夹甚至提供很晚的Codeigniter Php

编程入门 行业动态 更新时间:2024-10-19 12:47:10
本文介绍了我的邮件总是去垃圾邮件文件夹甚至提供很晚的Codeigniter Php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试从我的Web服务器发送邮件在codeigniter框架中使用SMTP PROTOCOL work.my邮件总是提供晚了,并去spam.i已经遵循了许多过去的保存,仍然没有解决这个问题。help我的人解决这个问题。这是我的代码:

I'm Trying To Send Mails From My Web Server Using SMTP PROTOCOL in codeigniter frame work.my mails was always delivering late and going to spam.i had follow many past conservations,still i didn't solve this problem.help me folks to solve this problem.here is my code:

$config = Array('protocol' => 'smtp', 'smtp_host' => 'smtp.tfas/', 'smtp_port' => 465, 'smtp_user' => 'info@tfas', 'smtp_pass' => 'xxxxxxx', 'mailtype' => 'html', 'mailpath' => '/usr/sbin/sendmail', 'charset' => 'utf-8' ); $this->load->library('email', $config); $this->email->set_newline("\r\n"); if (file_exists($attachment_path)) { $this->email->attach("$attachment_path"); $this->email->from('info@tfas','TFAS MEMBER PORTAL'); $this->email->reply_to('info@tfas','Help Center'); $this->email->message($message); $this->email->to($to); $this->email->subject('Greetings From TFAS Member Portal'); } else { $this->email->from('info@tfas','TFAS MEMBER PORTAL'); $this->email->reply_to('info@tfas','Help Center'); $this->email->message($message); $this->email->to($to); $this->email->subject('Greetings From TFAS Member Portal'); } if($this->email->send()) { return true; } else { return false; }

//即使我已通过此链接 https ://github/ivantcholakov/codeigniter-phpmailer 这是一个教程发送邮件与phignailer库在codeigniter但同样的问题araises ..

// Even I had gone through this link github/ivantcholakov/codeigniter-phpmailer which is a tutorial to send mails with phpmailer library in codeigniter but same problem araises..

推荐答案

我认为这不是codeigniter的邮件的问题。通常,电子邮件服务提供商根据内容或IP过滤器将电子邮件标记为垃圾邮件。在您的情况下,您的内容可能因为没有相关的文字和图片而显示为垃圾内容。 Google和大多数提供商都有一份垃圾邮件列表,他们在评估您的电子邮件的垃圾邮件时会留意。检查这一点,因为它可能会帮助你找到一个有用的线索: blog.hubspot/blog/tabid/6307/bid/30684/The-Ultimate-List-of-Email-SPAM-Trigger-Words。 aspx

I don't think this is an issue with codeigniter's mailer. Usually, emails are marked as spam by email service providers based on the content or an IP filter. In your case it's possible that your content appear spam-like due to not having relevant text and images. Google and most providers has a list of spam words that they look out for when evaluating the spam-ness of your emails. Check this out as it may be help you to find a useful lead: blog.hubspot/blog/tabid/6307/bid/30684/The-Ultimate-List-of-Email-SPAM-Trigger-Words.aspx

更多推荐

我的邮件总是去垃圾邮件文件夹甚至提供很晚的Codeigniter Php

本文发布于:2023-10-12 23:52:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1486223.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:垃圾邮件   很晚   文件夹   邮件   Php

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!