Rich Bitch Posted May 30, 2008 Report Share Posted May 30, 2008 Man masiivaa (array( 'viens@email.lv', 'divi@email.lv', 'tris@email.lv' )) ir e-pasti, kaa lai ar mail funkcijas paliidziibu tos nosuutu taa, lai suutot vienu e-pastu visiem reizee, pareejie lietotaaji neredzeetu, kam veel shis e-pasts ir aizgaajis? Link to comment Share on other sites More sharing options...
Mikijs Posted May 30, 2008 Report Share Posted May 30, 2008 pielauju ka sadi $masivs=array('viens@pasts.lv', 'divi@pasts.lv', 'tris@pasts.lv'); $noka="tu@pasts.lv"; $temats="111"; $teksts="...."; for($i=1;$i<=sizeof($masivs);$i++){ $kam=$masivs[$i]; mail($kam, $noka, $temats, $teksts); echo "Nosūtīts: $kam<br />"; } Link to comment Share on other sites More sharing options...
Rich Bitch Posted May 30, 2008 Author Report Share Posted May 30, 2008 Shaads variants darbosies, bet mail funkcija tiks izsaukta tik reizes, cik buus e-pasti, bet ja e-pasti buus 100`000 (pārspīlējot), tad tas notiks ilgi. Nav kaads labaaks variants? (Bet paldies arii par sho) Link to comment Share on other sites More sharing options...
Mikijs Posted May 30, 2008 Report Share Posted May 30, 2008 (edited) pielauju ka vari lejupieladet mime mail klasi un vinjai atrast kur rakstits to-muliply un izgriest "for" ara lai raditos "to: recipant" 1 reizi Edited May 30, 2008 by Mikijs Link to comment Share on other sites More sharing options...
marrtins Posted May 30, 2008 Report Share Posted May 30, 2008 Var likt pa porcijām bcc: headerī, taču jāuzmanās, ka mailserveriem max e-pastu skaits bcc: laukā var variēt. Ja pašam ir serveris, skaitu var precīzi noteikt. Ja nav, domāju, ka 10 būs labs sākums. Link to comment Share on other sites More sharing options...
marcis Posted May 30, 2008 Report Share Posted May 30, 2008 Masīviem gan man labāk patiktu lietot foreach() nevis for() Link to comment Share on other sites More sharing options...
Rich Bitch Posted May 30, 2008 Author Report Share Posted May 30, 2008 Var likt pa porcijām bcc: headerī kaa tas ir? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 30, 2008 Report Share Posted May 30, 2008 kaa tas ir? ' Blind Carbon Copy' --- Tiesam nekad nesi paskatijies kas standarta e-mailam vel ir par iespeejam ?? CC, BCC .. utt Link to comment Share on other sites More sharing options...
Recommended Posts