Jump to content
php.lv forumi

Undisclosed Recipients


Cibiņš

Recommended Posts

Jau reiz raudāju par to ka mannejiet e-pastu slēpšana. Ieteica kautkādu nez mail freimworku bet man negribas lietot nekādus freimworkus. Atstāju to visu padarīšanu pusratā. Bet pienācis laiks ka tomēr gribas saprast - KAPĒC neslēpj citu saņēmēju e-pasta adreses??

 

Kāds var apgaismot kādēļ nestrādā Bcc un neslēpj citu saņēmēju e-pasta adreses gan outlookaa, gan gmailaa utt??

 




$from='[email protected]';
$to='[email protected], [email protected], [email protected]';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";

$subject='Test';

$headers .= 'From: '.$from.' <'.$from.'>' . "\r\n";
$headers .= "Bcc: ".$to."\r\n";
$headers .= "To: Undisclosed Recipients <[email protected]>\r\n";
$message .= 'Kautkāda testa ziņa!';

mail($to, $subject, $message, $headers);
echo 'Pasts aizsūtīts';

Edited by Cibiņš
Link to comment
Share on other sites

aizvāc

$headers .="To: Undisclosed Recipients <[email protected]>\r\n";

un

mail($to, $subject, $message, $headers);

nomaini mail funkcijas izsaukumu uz

mail('', $subject, $message, $headers);

un visbeidzot domā līdzi tam, ko dari.

 

Tu iestati no kā sūtīt, tad mainīgajā $to iestati saņēmēju listi un visiem šiem saņemējiem nosūti meilu, kapēc gan lai tur kaut kas tiktu slēpts?

Edited by F3llony
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...