Re: problem figuring out why mail fails
Kristall <[email protected]> Mon, 27 Feb 2023 02:40:27 -0800 (PST)
| Newsgroups | comp.lang.php |
|---|---|
| Message-ID | <[email protected]> |
Aitaksite mind natuke rahaga ? Asun Männimäe 27-39, Viljandi, EESTI RIIK. Telefon: (+372) 56091196 On Friday, April 16, 2021 at 2:33:48 PM UTC+2, bill wrote: > On 4/13/2021 4:05 PM, J.O. Aho wrote: > > On 13/04/2021 17.22, bill wrote: > >> I have a script that sends mail in a loop. Unfortunately it is > >> sending only the first. > >> Here is the script segment: > > > > > > As you don't have the whole code, it's just a guess when it comes > > to the problem. I would guess it's your headers that grows for > > each mail you try to send, also simpler to use an array with > > named cells, see php.net documentation. > > > Thank you to J.O Aho and Lew Pitcher and Arno Weizel and Jerry > Stuckle. > > I moved the header setting out of the loop and all is good. Many > thanks. > -bill