返回一封郵件主題:Mail delivery failed: returning message to sender
郵件內容:
This message was created automatically by mail delivery software.A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:  收件人@xxxx.xxx
    Spam detected ,We do not accept this mail !!------ This is a copy of the message, including all the headers. ------Return-path: <寄件人@xxxx.xxx>
Received: from [999.999.999.999] (port=4976 helo=mis)
by vmail.du.net.tw with esmtp (Seednet 4.14:4)
id 1E78tx-000KbC-3s
for 收件人@xxxx.xxx; Mon, 22 Aug 2005 17:47:33 +0800
From: =?Big5?B?RVJQut6yeq37?= <寄件人@xxxx.xxx>
Subject: =?Big5?B?tPq41azdrN0=?=
To: 收件人@xxxx.xxx
Date: Mon, 22 Aug 2005 17:46:26 +0800
X-Priority: 3
X-Library: Indy 9.00.10
Message-Id: <[email protected]>郵件內容
我的代碼為:
 with  IdMessage1 do
  begin    IdMessage1.From.Address := Edit4.Text ;
    IdMessage1.From.Name :=Edit8.Text ;
    IdMessage1.Subject :='測試看看';
    IdMessage1.Body.Text :='郵件內容';
    IdMessage1.Date := Date;
    IdMessage1.Recipients.EMailAddresses := 收件人地址';
  end;
  try
   With IdSMTP1 do
  begin
    if Connected then Disconnect;
    Host :=Edit1.Text ;
    Username :=Edit3.Text ;
    Password :=Edit5.Text ;
    AuthenticationType:=atLogin;
  end;
   idsmtp1.Connect(1000);
   idsmtp1.Send(idmessage1);
   showmessage('發送成功') ;
  finally
    idsmtp1.Disconnect ;
  end;

解决方案 »

  1.   

    你的 Host  Username  Password 等有没有设置错!
      

  2.   

    代碼應該沒問題的,IdMessage1.Recipients.EMailAddresses 這個正確不
      收件人@xxxx.xxx
      

  3.   

    哦,刚才没看仔细。你所用的邮件发送服务器要验证的吧?那在Connect之后还要
    idsmtp1.Login;
      

  4.   

    再次吐血,idsmtp没有login(刚刚用完sakMail-_-#),还是按照我第一次说的检查一下
      

  5.   

    >> Spam detected 对方说检测到你这封邮件是垃圾邮件,所以拒绝收
      

  6.   

    我將發送信箱改為其他的(如 126.com)就能發送了.代碼同
    為什么用我公司的郵件服務器就將其判為垃圾郵件呢?
    我該如何設置才能讓郵件服務器接受我的郵件呢?聲名一下我的郵件服務器用FOXMAIL,OUTLOOK都可以正常收發.