메일 수신자가받는 메일을 다시받을 때 CDO를 사용하여 전자 메일을 보내고 배달 확인을 요청하는 기능이 있습니다.CDO에서 배달 알림을 수신하지 않음
CDO.Message msg = new CDO.Message();
CDO.Configuration conf = new CDO.Configuration();
conf.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"].Value = 1;
conf.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"].Value = txtHost.Text;
conf.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"].Value = 25;
conf.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"].Value = txtPass.Text;
conf.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"].Value = txtUser.Text;
conf.Fields.Update();
msg.Configuration = conf;
msg.To = txtTo.Text;
msg.From = txtFrom.Text;
msg.Subject = txtSubject.Text+" " + DateTime.Now;
msg.HTMLBody = txtBody.Text;
msg.BodyPart.Charset = "utf-8";
msg.DSNOptions = CdoDSNOptions.cdoDSNSuccessFailOrDelay;
msg.Fields.Update();
msg.Send();
지금이 내 웹 서버와 내 로컬 컴퓨터에서 잘 작동하지만 다른 메일 서버와 프로덕션 서버에서 사용할 경우 배달 영수증이 수신되지 않은 :
는 다음 코드를 사용합니다.
필자는 메일 서버와 프로덕션 메일 서버간에 차이가 있어야한다고 생각하지만 정확히 무엇인지 모릅니다.
아무도 이러한 문제에 직면하지 않았다면, 무엇을해야할지 말해주십시오.
감사합니다 많은 친구, 마침내 효과가 있었다. –