Re: Sending emails to 2 address

Giganews Newsgroups
Subject: Re: Sending emails to 2 address
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Wed, 29 Mar 2006

"Feijó" <fei…@x.suply.com> wrote in message
news:03986D29B1F2E240fei…@x.suply.com...

> Can I use like that?

No.  You have to add them separately:

    msg.Recipients.Add.Address := 'emai…@domain.com';
    msg.Recipients.Add.Address := 'emai…@domain.com';

If you need to specify multiple addresses at one time, then you have to use
the Recipients.EMailAddresses property instead:

    msg.Recipients.EmailAddresses := 'emai…@domain.com;emai…@domain.com';

Gambit

Replies

In response to

Sending emails to 2 address posted by Feijó on Wed, 29 Mar 2006