Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Bcc email potreban kod

[es] :: PHP :: Bcc email potreban kod

[ Pregleda: 4080 | Odgovora: 6 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

webtim
Dragan Vujkovic
Beograd

Član broj: 10947
Poruke: 139
195.252.106.*



Profil

icon Bcc email potreban kod24.04.2005. u 23:56 - pre 230 meseci
Skinuo sam neku skriptu u php-u i sad mi treba samo deo koda za Bcc znaci da primaoci ne vide ostale adrese na koje je poslat email.

Code:
<?php 

//enter in YOUR Password here for the script
$password='yourpassword';

// Send e-mail to specified address 

$to = ($_POST['sendto']) ;
$from = ($_POST['from']) ;
$from_header = "From: $from";
$subject = ($_POST['subject']); 
$message = ($_POST['message']); 
$verify = ($_POST['verify']); 

if ($verify <>$password){
$raddress = getenv("REMOTE_ADDR"); 

?>
<br><br>
<div align="center">
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="36%" id="table1">
    <tr>
      <td bgcolor="#000080"><b><font color="#FFFFFF" face="Verdana" size="2">
      Message Info:</font></b></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFCC">&nbsp;<p align="center"><b>Invalid Password<br>
&nbsp;<br>Your IP address is: 
         
         <?
          echo $raddress;
          ?>
          </b></p>
      <p>&nbsp;</td>
    </tr>
  </table>
</div>
<?
exit;
}


// remove html code
function removehtmlcode($data) {
           $find ="\'";
           $replace ="'";
           $data = str_replace ($find,$replace,$data);
           $find = " '\ ";
           $find = rtrim ($find);
           $replace =" '";
           $data = str_replace ($find,$replace,$data);
           $find ='\"';
           $replace ='"';
           $data = str_replace ($find,$replace,$data);
           $find = ' "\ ';
           $find = rtrim ($find);
           $replace =' "';
           $data = str_replace ($find,$replace,$data);
           return $data;
}

$message = removehtmlcode($message);
$subject = removehtmlcode($subject);


mail($to, $subject, $message, $from_header);
//echo "<b>mail has been sent</b>";
?>
<br>
<br>
<div align="center">
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="36%" id="table1">
    <tr>
      <td bgcolor="#000080"><b><font color="#FFFFFF" face="Verdana" size="2">
      Message Info:</font></b></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFCC">&nbsp;<p align="center"><b>Your Message Has Been 
      Sent</b></p>
      <p>&nbsp;</td>
    </tr>
  </table>
</div>

Tra-la-la-la-la
 
Odgovor na temu

webtim
Dragan Vujkovic
Beograd

Član broj: 10947
Poruke: 139
195.252.106.*



Profil

icon Re: Bcc email potreban kod24.04.2005. u 23:58 - pre 230 meseci
a ovo je forma, verovatno i u nju treba nesto dodati

Code:

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Mail Form</title>
</head>

<body>

<div align="center">
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="65%" id="table1">
    <tr>
      <td bgcolor="#000080"><b><font face="Verdana" size="2" color="#FFFFFF">
      Mail Form</font></b></td>
    </tr>
    <tr>
      <td>
      <form  AUTOCOMPLETE = "off" method="POST" action="mail.php">
        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="table2">
          <tr>
            <td width="158">
            <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="table3">
              <tr>
                <td><b>Password:</b></td>
              </tr>
              <tr>
                <td><b>Send to email :</b></td>
              </tr>
              <tr>
                <td><b>From email:</b></td>
              </tr>
              <tr>
                <td><b>Subject:</b></td>
              </tr>
            </table>
            </td>
            <td><input type="password" name="verify" size="20"><br>
            <input type="text" name="sendto" size="27"><br>
            <input type="text" name="from" size="27" value="[email protected]"><br>
            <input type="text" name="subject" size="45" value="private message board"></td>
          </tr>
        </table>
        <p><b>Message:</b><br>
        <textarea rows="8" name="message" cols="59"></textarea></p>
        <p align="center"><input type="submit" value="Send" name="B1"><input type="reset" value="Reset" name="B2"></p>
      </form>
      <p>&nbsp;</td>
    </tr>
    <tr>
      <td bgcolor="#000080">
      <p align="center"><font face="Verdana" size="1" color="#FFFFFF">
      Copyright </font><font size="1" color="#FFFFFF" face="Times New Roman">©
      </font><font face="Verdana" size="1" color="#FFFFFF">Bestwebauctions.net</font></td>
    </tr>
  </table>
</div>

</body>

</html>

Tra-la-la-la-la
 
Odgovor na temu

Jbyn4e

Član broj: 422
Poruke: 6049
*.vdial.verat.net.



+257 Profil

icon Re: Bcc email potreban kod25.04.2005. u 09:36 - pre 230 meseci
A da naucis nesto sam, pogledas manual?
A ne samo .... "skinuo sam nesto, pa ajde mi prilagodite".
Moze! 200 evra ;)

HINT: http://www.php.net/manual/en/function.mail.php , imas cak i primer klase za mail neko ostavio....
Ako negde zapne - ne pitaj ponovo. SVE imas.
Kad sve ostalo zakaže, pročitaj uputstvo...
 
Odgovor na temu

webtim
Dragan Vujkovic
Beograd

Član broj: 10947
Poruke: 139
*.vdial.verat.net.



Profil

icon Re: Bcc email potreban kod25.04.2005. u 17:48 - pre 230 meseci
A da se ti ne pravis mnogo pametan.

Pa ja da imam vremena i da radim sa php-om sigurno bih ga naucio, meni treba pomoc a ti ako neces nemoras.
Tra-la-la-la-la
 
Odgovor na temu

McKracken
Vladimir Jovanovic
HuxleyDev

Član broj: 465
Poruke: 2941
*.sattvmeteor.co.yu.

ICQ: 203079925


+7 Profil

icon Re: Bcc email potreban kod25.04.2005. u 17:54 - pre 230 meseci
Evo.. pitaj ovu firmu: http://www.webdizajntim.com/ oni ce da ti urade dzabe, kad ti nemas vremena
 
Odgovor na temu

boccio
Boris Krstović
Spoonlabs.com
nbgd

Član broj: 7594
Poruke: 2458
*.ptt.yu.

Sajt: bocc.io


+771 Profil

icon Re: Bcc email potreban kod25.04.2005. u 18:07 - pre 230 meseci
Ne, Jbyn4e se uopste ne pravi pametan nego ti je rekao nesto sto je apsolutno tacno, a ako tebe to vredja to je druga stvar.

Citat:
webtim:Pa ja da imam vremena i da radim sa php-om sigurno bih ga naucio, meni treba pomoc a ti ako neces nemoras.

Vidis, tebi onda ne treba pomoc, nego ti treba da neko uradi umesto tebe. Covek ti je dao link - sve sto treba da uradis jeste da utrosis par minuta svog cenjenog vremena da procitas to sto tamo pise. To i jeste pomoc. A ako hoces da neko uradi umesto tebe - imas forum Berza poslova.

Uopste necu da ulazim u taj webdizajntim i sta se tu desava.

End of discussion.

[Ovu poruku je menjao boccio dana 25.04.2005. u 19:08 GMT+1]
Jeff, one day you’ll understand that it’s harder to be kind than clever.
 
Odgovor na temu

Nikola Denić
Nikola Denić
Nis/Bgd

Član broj: 6571
Poruke: 1231
*.adsl.sezampro.yu.

ICQ: 42376797
Sajt: www.nixa.co.yu


Profil

icon Re: Bcc email potreban kod25.04.2005. u 18:08 - pre 230 meseci
lol
ITSolutions - najeftiniji DialUp internet [ dialup flat za samo 275 dinara ]
 
Odgovor na temu

[es] :: PHP :: Bcc email potreban kod

[ Pregleda: 4080 | Odgovora: 6 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.