var html: TIdText; begin if not SMTP.Connected then SMTP.Disconnect(); try SMTP.Connect; try if SMTP.Authenticate then //验证 begin EMessage.Recipients.EMailAddresses := FUser; EMessage.ClearBody;//清空正文 html:= TIdText.Create(EMessage.MessageParts); EMe
如果在执行php程序时看到这条警告:"Warning: Cannot modify header information - headers already sent by ...." Few notes based on the following user posts:有以下几种解决方法: 1. Blank lines (空白行):Make sure no blank line after <?php ... ?> of the calling php scrīpt.检