A function sends an automatic email with information from other fields

A function sends an automatic email with information from other fields

I made a button that automatically sends the customer a quote from a mailbox, the problem is that all the information of all entries is sent to that email. How I avoid that?

void CORREO.Email2(Cotizador_Multiple CM)
{
    String1 = "";
    for each r in Cotizador_Multiple
    {
        String1 = String1 + CM.Articulos.Foto + CM.Articulos.Link + CM.Articulos.Precio + "<br>";
    }
    sendmail
    (
        To       :  CM.Email 
        From     :  zoho.adminuserid 
        Subject  :  "Prueba" 
        Message  :  String1 
    )
}


EXAMPLE:  I have 10 entries with the same email, so, the function command 10 times the content of the email.



Need only the content of this post in the mail, even having repeated email.