New property:

property  XAutoGeneratedReply : Boolean      read  FXAutoGeneratedReply  
{Bjørnar}

                                                                                
            write FXAutoGeneratedReply; {Bjørnar}



The reason for using this is to tell the receiving mailserver that it should 
not answer this email with "I'm on holliday" or similar. Two mailservers could 
send each other mails in definite if no one breaks the loop. So if you are 
sending an autogenerated mail, set this flag to not get a autogenerated mail 
back.



In procedure TCustomSmtpClient.Data;

        if FXAutoGeneratedReply then begin                                   
{Bjørnar}

             FHdrLines.Add('X-Autogenerated: Reply');                        
{Bjørnar}

        end;                                                                 
{Bjørnar}

Regards Bjørnar




No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.0/1341 - Release Date: 24.03.2008 
15:03

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to