从个人domian发送电子邮件 [英] Sending Email from personal domian

查看:88
本文介绍了从个人domian发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

我发个人域名发送电子邮件给某个带有嵌入式图片的电子邮件ID(公司徽标),

但是发送的邮件有一个prblm是接收器的垃圾邮件文件夹。

什么是prblm ..如何在收件箱中发送邮件而不是垃圾邮件文件夹。请帮助



提前谢谢

这是我的代码..

Sir,
I am sending email form personal domain to some email id with embedded image(Company logo),
but there is a prblm the mail which m sending is going in spam folder of the receiver.
what is the prblm..how to send that mail in inbox not in spam folder.pls help

thanks in advance
this is my code..

try
        {
            MailMessage Msg = new MailMessage();
            // Sender e-mail address.
            Msg.From = new MailAddress(txtUsername.Text);
            // Recipient e-mail address.
            Msg.To.Add(txtTo.Text);
            Msg.Subject = txtSubject.Text;
            // File Upload path
            //String FileName = fileUpload1.PostedFile.FileName;
            string path = Server.MapPath("~/images/byohbaraat logo.png");
            string mailbody = txtBody.Text + "<br /><img src=cid:companylogo>";
            LinkedResource myimage = new LinkedResource(path);
            // Create HTML view
            AlternateView htmlMail = AlternateView.CreateAlternateViewFromString(mailbody, null, "text/html");
            // Set ContentId property. Value of ContentId property must be the same as
            // the src attribute of image tag in email body. 
            myimage.ContentId = "companylogo";
            htmlMail.LinkedResources.Add(myimage);
            Msg.AlternateViews.Add(htmlMail);
            // your remote SMTP server IP.
            SmtpClient smtp = new SmtpClient();
            smtp.Host = "mail.byohbaraat.com";
            smtp.Port = 587;
            smtp.Credentials = new System.Net.NetworkCredential(txtUsername.Text, txtpwd.Text);
            smtp.EnableSsl = false;
            smtp.Send(Msg);
            Msg = null;
            Response.Write("Mail Sent Succesfully");
        }
        catch (Exception ex)
        {
            Console.WriteLine("{0} Exception caught.", ex);
        }

推荐答案

您必须发送广告电子邮件和一些接收器

必须已将您的电子邮件域报告为垃圾邮件所以它转到垃圾邮件文件夹。



唯一的解决方案是指示用户检查垃圾邮件文件夹并将域添加到安全发件人列表。例如 - GMail中的非垃圾邮件按钮。如果用户将您的域名添加到他们的安全发件人列表中,那么所有未来的电子邮件将被发送到收件箱而不是垃圾邮件
You must be sending the advertising emails and some of the receivers
must have reported your email domain as spam . So it goes to the spam folders.

The only solution is to instruct the users to check the spam folders and add the domain to safe senders list . for example -the ''not spam'' button in GMail. If the user adds your domain to their safe senders list, then all the future emails will be delivered to the inbox and not the spam


这篇关于从个人domian发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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