Logo

רד-בורד: ארכיון

ראשי > אבטחת מידע > שליחת אימייל בלי שיראו את הIP

13/11/2004 09:55:06 ikra
סוף סוף מצאתי תוכנה ששולחת אימיילים דרך פרוקסי
ומסתירה את האיפי האמיתי שלי
לתוכנה קוראים: Advanced Direct Remailer
אפשר להוריד מהלינק הזה
התוכנה היא בעצם שרת אימייל עם אופצייה לפרוקסי SOCK5 שגם מסתיר את האיפי
אפשר להוריד קראק לתוכנה דרך האתר www.astalavista.us
מכיוון שהתוכנה היא שרת מייל אז רצוי להשתמש בתוכנה נוספת(כמו : mail-bomber או Email spamless sender שגם להם יש קראק)
כדי לשלוח משם את האימיילים לשרת או אולי לגשת לבסיס הנתונים
ולהעתיק לשם את האימיילים)
הבעייה היחידה היא שהפרוקסי עושה את השליחה איטית(אומנם זה
שולח כמה מאות מיילים בשעה, אבל בלי פרוקסי המחשב שלי יכול לשלוח איזה מאה-אלף בשעה)
בכל אופן זאת תוכנה טובה שלא עושה את המחשב איטי ואפשר לעשות הרבה דברים אחרים בזמן שזה שולח
בנתיים אני מחפש דרכים להאיץ את מהירות השליחה(אולי למצוא פרוקסי יותר מהיר או לשנות הגדרות)
אשמח לדעת ולענות לכם אם יש לכם ידע/שאלות בנושא או שאתם מכירים דרכים אחרים לשלוח אימייל דרך פרוקסי...
13/11/2004 17:03:28 cp77fk4r
בהתחלה שראיתי את הנושא, חשבתי שאתה רוצה אנונימיות או משהו בסיגנון.. עכשיו אני רואה שאתה מדבר בכלל על Mail Bombers... שמע אחי, זה לא האקינג, זה טפשי... זה לא עוזר לך, לא עוזר ולא עוזר לאף אחד...

ובקשר לשליחת מייל דרך פרוקסי, כל עוד השרת אימייל לא בבית שלך, אין לך סיבה לפחד מאנונימיות, כשאתה שולח אימייל דרך השרתים של נענע למשל, הIP שלך (של המחשב שלך) נשמר בלוגים של השרתים/מערכת של נענע, ורק הIP של השרתים של נענע נשלח עם המייל לזה שאתה שולח אליו, כל עוד אין לו גישה (ואין לו גישה) ללוגים של נענע, הוא לא יהיה מסוגל לדעת את הIP של המחשב שלך, אלה רק את הIP של השרתים של נענע.
13/11/2004 18:16:47 spy[D]ir
אתה בטוח בקשר לזה סיפי? בהדר של רוב המיילים כתוב גם שרת, וגם את האיפי שהתחבר לשרת, לשלוח את האימייל...
13/11/2004 19:06:20 ikra
בהרבה מקרים ששולחים אימייל דרך שרתים אחרים אז רואים רק את האימייל של השרת(אבל בלייקוס,למשל, יש סורק מיוחד שמראה בHEADERS את האיפי האמיתי שלי)
אני מדבר על שליחת מייל דרך SMTP לדוגמא:אאוטלוק אקפרס שככה
המחשב תמיד שולח את האיפי והתוכנה הזאת מסתירה אותו
ברור שנורא קל לשלוח מייל אנונימי דרך הדפדפן, אבל דרך תוכנה
אפשר לשלוח כמות יותר גדולה של מיילים ליותר אנשים...
13/11/2004 22:11:21 spy[D]ir
אפשר להכין בשניות תוכנה שמשתמשת בפרוקסי HTTP ומנצלת אתרים שיש להם דפי contact us כאלה ב php/asp שפתוחים להזנת נתונים, בשביל לעשות -הצפה- כמו שאמרת (רק ממספר אתרים ומספר פרוקסיים, שזה בכלל מבלבל). אבל כמו שסיפי אמר...
זה ליים =)
13/11/2004 23:55:03 cp77fk4r
יאפ’, פשוט לזייף את הForm, אם אתה מכיר, יש את האתר אתגרים הזה "HackThisSite" ויש בו איזה שלב אחד שהסיסמה אמורה להשלח למייל, בעזרת זיוף של הפורם שם היה אפשר להציף כל תיבת אימייל שרק היית רוצה.. שלחתי להם הודעה והם תיקנו את זה, בכל אופן, זה באמת טפשי, ולא עוזר לאף אחד, גם לא לך...
14/11/2004 00:31:06 Alpha1
חחח שניה, מישהו באמת חושב שאם תיבת הדואר תתמלא עד 0% מקום אז היא תהרס, או שזה יוביל לקריסת שרת או מחשב??
בולשיט. נו, אז יגמר המקום. ועד שהוא לא ינקה לא יהיה לו הודעות חדשות.

וכניראה, שלשולח יתקע המחשב :-) ולא למקבל.
[ההודעה נערכה על-ידי Alpha1 ב-14/11/2004 00:32:20]
14/11/2004 10:20:35 ikra
האמת היא שאני צריך לשלוח אימיילים דרך פרוקסי
כי אני רוצה ככה לפרסם את האתר שלי(ושמתי באתר פירסומות, והם משלמים לי על הכניסות האלה כבר קיבלתי 3 צ’קים)
לפני חצי שנה שלחתי אימיילים(בלי פרוקסי) ל200 אלף אנשים ובאותו שבוע היו יותר מ20 אלף כניסות לאתר שלי...
אבל אז קיבלתי תלונה מבזק שאם אני לא מפסיק להשתמש בחיבור שלי לאינטרנט בשביל לשלוח ספאם אז הם מנתקים אותי ומאז אני כל הזמן מחפש דרכים לשלוח אימיילים דרך פרוקסי...
אז לדעתי זה ממש לא טיפשי...
14/11/2004 14:04:39 cp77fk4r
הי, Ikra, תיראה מה שכתבתי:
"עכשיו אני רואה שאתה מדבר בכלל על Mail Bombers... שמע אחי, זה לא האקינג, זה טפשי... זה לא עוזר לך, לא עוזר ולא עוזר לאף אחד... "

לא כתבתי שפירסום מוצר ע"י מייל זה טפשי, כתבתי ששליחת אלפי מיילים לאדם אחד זה טפשי (מה שעושות הMail Bombers..).

בשביל לבצע את מה שאתה רוצה לא צריך הרבה דברים, פשוט תחפש (בגוגל) שרת SMTP חינמי (ויש פוווול כאלה..), תיצור סקריפט קטן (אני חושב שבPerl יהיה לך הכי נוח לעשות את זה) ששולח לרשימה שלמה את אותו המייל דרך השרת הזה, תבדוק שאין הגבלת מיילים לפי זמן מסויים באותו השירות- ומצוין, הכל סבבה.
19/12/2004 11:14:41 ikra
סבבה יבבה! לפני כמה ימים התקנתי סקריפט של PHP
ושלחתי איתו כבר 300 אלף אימיילים
ונכנסו לאתר שלי אלפי אנשים מאז =))
19/12/2004 14:52:18 cp77fk4r
בהצלחה, ותזהר, כי כבר התחילו לחוקק דברים נגד ספאם.

אני לא יודע בדיוק מה ההגדרה שלהם לספאם- אבל כדאי לך לבדוק את זה.
21/12/2004 02:49:57 squall
נידמה לי שאחד קיבל 7 או 9 שנים על ספאם.
זה לא צחוק..

החוק בקליפורנייה אומר 100 אלף הודעות בשנה, בישראל יש חוק נגד ספאם בכלל???

BTW בPHP זה יותר פשוט מבפרל, יש פונקצייה בשם mail.
ד"א כאשר אתה שולח דרך הסקריפט perl/PHP אם אתה מעלה אותו לשרת רואים את האייפי של השרת.
21/12/2004 07:51:47 Zenor
ikra: איך אתה שולח להרב אנשים אימייל?
כלומר, אין איזה לולאה הגיונית,לא?
21/12/2004 14:24:30 squall
Zenor, אפשר לכתוב סקריפט שגונב כתובות מאתרים ע"י חיפוש הסימן @.
21/12/2004 18:07:19 Zenor
הספאמרים מסתמכים רק על גניבת כתובות מאתרים?
21/12/2004 20:26:36 squall
מה שאני אמרתי זה ספאם בקנה מידה קטן.
לפי דעתי(אני לא בטוח במה שאני אומר) הם עוברים כל כל כתובת אפשרית.
למשל הם עושים לולאה שכל פעם תציג להם את מספר האסקיי הבא להלן דוגמא:

a1@hotmail.com
a2@hotmail.com
a3@hotmail.co.il
וכד’..
או שהם לוקחים מהרשימת תפוצה..
21/12/2004 20:50:00 cp77fk4r
לרב זה מרשימת תפוצה, אתרים גדולים מוכרים את הרשימות תפוצה שלהם בהרבה מאוד כסף...
ואפשר פשוט לעשות סקריפט קטן שעובר בגוגל בלינקים, ומחפש באותו עמוד כתובות מייל- כשהוא אוסף את כולן- הוא נכנס לאיזה לינק באותו העמוד- ואם הוא מגיע לעמוד סופי (שאין ממנו עוד לינקים) הוא חוזר לעמוד שאחריו- ושם נכנס ללינק אחר ואז משם אוסף את כל הכתובות ונכנס ללינק וככה עד שמפסיקים להריץ אותו.



22/12/2004 21:10:47 squall
ציטוט:לרב זה מרשימת תפוצה, אתרים גדולים מוכרים את הרשימות תפוצה שלהם בהרבה מאוד כסף...
ואפשר פשוט לעשות סקריפט קטן שעובר בגוגל בלינקים, ומחפש באותו עמוד כתובות מייל- כשהוא אוסף את כולן- הוא נכנס לאיזה לינק באותו העמוד- ואם הוא מגיע לעמוד סופי (שאין ממנו עוד לינקים) הוא חוזר לעמוד שאחריו- ושם נכנס ללינק אחר ואז משם אוסף את כל הכתובות ונכנס ללינק וככה עד שמפסיקים להריץ אותו.





מנגד אפשר לעשות סקריפט קטן שמחליף את ה-@ בתמונה של שטרודל.
25/12/2004 00:56:30 ikra
אז ככה: יש תוכנות שנקראות e-mail extractor
התוכנות האלה נכנסות לאתרים שבחרתי ומוציאות את כתובת האימייל, תוכנות אחרות פשוט מתחברות לשרת האימייל שבחרתי ובודקות בתווך שנתתי להם את כל האימיילים האפשריים נגיד:
a
ab
a1
וכו’
אפשרות נוספת היא פשוט לעשות חיפוש בgoogle
ולכתוב את מילות חיפוש הנ"ל:
קוד:
@hotmail @hotmail @yahoo @hotmail @yahoo @yahoo .txt

ואז תקבלו מגוגל רשימה של דפים שחלק מהם אלה קבצי TXT שמיכילים איזה אלף אימיילים
יש גם באתר www.setup.co.il סקריפט בVBASIC
שאוסף אימיילים מאתרים שונים...

בכל אופן לי יש רשימה של איזה מליון וחצי אימיילים מהעולם
ו5000 אימיילים של ישראלים
אבל בשביל לפרסם אתר בעיברית לא חייבים כמות עצומה של אימיילים כי ששולחים לישראלים אימייל בעיברית אז הרוב נכנסים לאתר

החוק של הספאם אומר שכששולחים אימייל חייבים לשים שם לינק
להורדה(UNSUBSCRIBE) מרשימת התפוצה ואני תמיד עושה את זה וגם עשיתי טריק שהלינק של הUNSUBSCRIBE גם מגיע לאתר ושם יש טופס להסרת האימייל שלי ככה שאני גם מרויח גולשים שלא מעוניינים לקבל ממני אימייל ועוד דבר
יש לי גם תוכנה שמוחקת כתובות אימיילים כפולות וגם מוחקת אימיילים שכבר שלחתי כדי שאני לא ישלח אימייל פעמיים לאותה כתובת לתוכנה קוראים EMAIL LIST MASTER ןזאת תוכנה חינמית...
25/12/2004 01:10:08 ikra
עכשיו גם אני צריך עזרה: הנה הסקריפט בphp
שבעזרתו שלחתי חצי מליון אימיילים בשבוע האחרון,
הבעייה היא שהסקריפט שולח אימיילים רק דרך פקודת sendmail
אני אשמח אם מישהו פה יכתוב לי שינוי קטן בקוד שבעזרתו אני
אוכל לשלוח אימיילים דרך שימוש באימייל SMTP
כולל מקום לשם וסיסמא של האימייל, הנה הסקריפט:

קוד:
<?php
//
// ================================================================
// M A S S E - M A I L E R
// ================================================================
//
// The script sends e-mails to different e-mail addresses specified
// in different text files. The text files can be changed and saved
// over a web interface.
//
// Copyright (C) 2003, Patrick Biegel
//
$version = "Version 1.0 / 22.02.2003";
//
// ================================================================
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of
// the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the Free
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
// MA 02111-1307 USA
//
// ================================================================
//


//
// ===================== CONFIGURATION BEGIN ======================
//


//
// If $stopmail is set to 1 there will be sent just a confirmation
// message ! All other E-Mails will not be sent ! This is only for
// testing ! If you want to send E-Mails set the value to 0 !
//
$stopmail = 0;


//
// E-mail address of the sender.
//
$senderemail = "max.muster@sample.com";


//
// Address for the confirmation E-mail.
//
$confirmationemail = "max.muster@sample.com";


//
// Value of the subject at the beginning.
//
$mailsubject = "E-Mailer";


//
// Path of the list directory.
//
$listdir = "lists/";


//
// Names of the address files.
//
$address01 = "address01.txt";
$address02 = "address02.txt";
$address03 = "address03.txt";
$address04 = "address04.txt";
$address05 = "address05.txt";
$address06 = "address06.txt";
$address07 = "address07.txt";
$address08 = "address08.txt";
$address09 = "address09.txt";
$address10 = "address10.txt";


//
// Wait time before sending the next E-Mail.
//
// The time has to be in seconds !
//
$waittime = 0.2;


//
// ====================== CONFIGURATION END =======================
//


// ================================================================
// Display html header with the style sheet definitions.
// ================================================================
//
switch($todo) {
case "":
$page = "E-Mail Form";
break;

case "Change this list !":
$page = "Change List";
break;

case "Save this List !":
$page = "Save List";
break;

case "Send E-Mails !":
$page = "Send E-Mails";
break;
}


?>


<html>
<head>
<title>Mass E-Mailer</title>
<style type="text/css">
<!--
body { font-family:arial;
background-color:#99CCFF }

h1 { font-size:20pt; }

a:link { color:#000066;
text-decoration:none }

a:visited { color:#000066;
text-decoration:none }

a:active { color:#CC0033;
text-decoration:none }

.tableleft { color:#000066;
font-size:12pt;
font-weight:bold;
vertical-align:top;
width:260px; }

.bottomtable { width:600px; }

.bottomcell { text-align:center; }

.linkcell { text-align:center;
font-size:14pt;
width:150px; }

.copyright { text-align:center;
font-size:10pt;
color:#CC0033; }
-->
</style>
</head>
<body>
<table width="100%" height="100%">
<tr>
<td>
<form method="post" action="emailer.php">
<table align="center">
<tr>
<td>
<h1>
Mass E-Mailer - <?php echo $page; ?>
</h1>
</td>
</tr>
</table>

<?php
if($todo == "") {


// ================================================================
// Display E-Mail form.
// ================================================================
//
?>
<table align="center" cellspacing="1">
<tr>
<td class="tableleft">
Path to the recipient address file:
</td>
<td>
<select name="addressfile" size="1">
<option>
<?php echo $address01; ?>
</option>
<option>
<?php echo $address02; ?>
</option>
<option>
<?php echo $address03; ?>
</option>
<option>
<?php echo $address04; ?>
</option>
<option>
<?php echo $address05; ?>
</option>
<option>
<?php echo $address06; ?>
</option>
<option>
<?php echo $address07; ?>
</option>
<option>
<?php echo $address08; ?>
</option>
<option>
<?php echo $address09; ?>
</option>
<option>
<?php echo $address10; ?>
</option>
</select>
<input type="submit" name="todo" value="Change this list !">
</td>
</tr>
<tr>
<td class="tableleft">
Path to a special file:
</td>
<td>
<input type="text" name="specialfile" size="60">
</td>
</tr>
<tr>
<td class="tableleft">
Wait time for sending (in sec.):
</td>
<td>
<input type="text" name="wait" size="10" value="<?php echo $waittime; ?>">
</td>
</tr>
<tr>
<td class="tableleft">
E-Mail address of the sender:
</td>
<td>
<input type="text" name="sender" size="60" value="<?php echo $senderemail; ?>">
</td>
</tr>
<tr>
<td class="tableleft">
E-Mail address for confirmation:
</td>
<td>
<input type="text" name="confirmation" size="60" value="<?php echo $confirmationemail; ?>">
</td>
</tr>
<tr>
<td class="tableleft">
E-Mail subject:
</td>
<td>
<input type="text" name="subject" size="60" value="<?php echo $mailsubject ?>">
</td>
</tr>
<tr>
<td class="tableleft">
E-Mail message:
</td>
<td>
<textarea name="message" rows="14" cols="50"></textarea>
</td>
</tr>
</table>
<table align="center" class="bottomtable">
<tr>
<td>
&nbsp;
</td>
</tr>
<tr>
<td class="bottomcell">
<input type="reset" name="reset" value="Reset Form">
<input type="submit" name="todo" value="Send E-Mails !">
<?php if($stopmail == 1) { echo "<b>Testmode active !</b>"; } ?>
</td>
</tr>
</table>

<?php
}


if($todo == "Change this list !") {


// ================================================================
// Change lists.
// ================================================================
//


// ================================================================
// Display title for the change form.
// ================================================================
//
?>


<table align="center">
<tr>
<td>
<b>
Open file: <?php echo $addressfile; ?>
</b>
</td>
</tr>

<?php
// ================================================================
// Try to open the selected address file.
// ================================================================
//
$success = 0;
echo "<tr>";
echo "<td> ";
$address = $listdir.$addressfile;
if (@file_exists($address)) {
if($changefile = @fopen ($address, "r")) {
// echo "The file <b>\"".$addressfile."\"</b> was opened successfuly !<br>";
$success = 1;
} else {
echo "The file <b>\"".$addressfile."\"</b> could not be opened !<br>";
}
} else {
echo "There is no file <b>\"".$address."\"</b> !<br>";
}
echo "</td>";
echo "</tr>";


// ================================================================
// Insert data to the textbox.
// ================================================================
//
if ($success == 1) {
echo "<tr>";
echo "<td> ";
echo "<textarea name=\"email\" rows=\"23\" cols=\"70\">";
while($line = @fgets($changefile,1024)) {
echo @trim(stripslashes($line))."\n";
}
echo"</textarea>";
echo "</td>";
echo "</tr>";


// ================================================================
// Close the address file.
// ================================================================
//
echo "<tr>";
echo "<td> ";
if(@fclose ($changefile)) {
// echo "The file <b>\"".$addressfile."\"</b> was closed successfuly !<br>";
} else {
echo "The file <b>\"".$addressfile."\"</b> could not be closed !<br>";
}
echo "</td>";
echo "</tr>";
echo "</table>";
}


// ================================================================
// Display buttons.
// ================================================================
//
?>


<table align="center" class="bottomtable">
<tr>
<td>
&nbsp;
</td>
</tr>
<tr>
<td class="bottomcell">
<input type="reset" name="todo" value="Reset Form">
<input type="submit" name="todo" value="Save this List !">
<input type="hidden" name="listdir" value="<?php echo $listdir; ?>">
<input type="hidden" name="addressfile" value="<?php echo $addressfile; ?>">
</td>
</tr>
</table>


<?php
}


if($todo == "Save this List !") {

// ================================================================
// Save changes to text file.
// ================================================================
//


// ================================================================
// Try to open the selected address file.
// ================================================================
//
$success = 0;
echo "<table align=\"center\">";
echo "<tr>";
echo "<td> ";
$address = $listdir.$addressfile;
if (@file_exists($address)) {
if($savefile = @fopen ($address, "w")) {
echo "The file <b>\"".$addressfile."\"</b> was opened successfuly !<br>";
$success = 1;
} else {
echo "The file <b>\"".$addressfile."\"</b> could not be opened !<br>";
}
} else {
echo "There is no file <b>\"".$address."\"</b> !<br>";
}
echo "</td>";
echo "</tr>";


// ================================================================
// Write data in to the address file.
// ================================================================
//
if ($success == 1) {
echo "<tr>";
echo "<td> ";
if (!@fwrite($savefile,$email)) {
echo "Cannot write to file <b>\"".$addressfile."\"</b> !<br>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td> ";
echo "The file permission has to be <b>777</b> !";
echo "</td>";
echo "</tr>";
} else {
echo "The file <b>\"".$addressfile."\"</b> was saved successfuly !";
}
echo "</td>";
echo "</tr>";



// ================================================================
// Close the address file.
// ================================================================
//
echo "<tr>";
echo "<td> ";
if(@fclose ($savefile)) {
echo "The file <b>\"".$addressfile."\"</b> was closed successfuly !<br>";
} else {
echo "The file <b>\"".$addressfile."\"</b> could not be closed !<br>";
}
echo "</td>";
echo "</tr>";
echo "</table>";
}


// ================================================================
// Reset the variable $todo to get back to the E-Mail form.
// ================================================================
//
$todo == "";
}


if($todo == "Send E-Mails !") {

// ================================================================
// Sending the E-Mails.
// ================================================================
//

// ================================================================
// The variables are initialized.
// ================================================================
//
$status = ""; // Describes the mailing status.
$counter = 0; // Counts the E-Mails which has been sent.


// ================================================================
// Display title for the protocol.
// ================================================================
//
echo "<table align=\"center\">";
echo "<tr>";
echo "<td>";
echo "<hr>";


// ================================================================
// Check if there is a special file to open or if it’s necessary
// to choose a address list from the drop down menu.
// ================================================================
//
if ($specialfile != "") {
echo "There was an input in the \"special path\" field ...<br>";
$address = $specialfile;
} else {
echo "There was no input in the \"special path\" field ...<br>";
$address = $listdir.$addressfile;
}


// ================================================================
// Try to open the selected address file.
// ================================================================
//
echo "Try to open the file <b>\"".$address."\"</b> ...<br>";
if (@file_exists($address)) {
echo "The file <b>\"".$address."\"</b> was found ...<br>";
if($afile = @fopen ($address, "r")) {
echo "The file <b>\"".$addressfile."\"</b> was opened successfuly !<br>";
} else {
echo "The file <b>\"".$addressfile."\"</b> could not be opened !<br>";
}
} else {
echo "There is no file <b>\"".$address."\"</b> !<br>";
$status = "There is no file \"".$address."\" ...";
}


// ================================================================
// If the file exists then reads addresses until end of file.
// ================================================================
//
echo "Trying to read the file <b>\"".$address."\"</b> ...<br>";
if (@file_exists($address)) {

while (!feof($afile)) {


// ================================================================
// Reads one line.
// ================================================================
//
$line = fgets($afile, 1024);
$line = trim($line);
echo "<br>";
echo "Reading the address <b>\"".$line."\"</b> ...<br>";


// ================================================================
// Initialize the address cache.
// ================================================================
//
$recipient = "";


// ================================================================
// Insert new address to cache.
// ================================================================
//
$recipient = $line;


// ================================================================
// Prepare the header for the e-mail.
// ================================================================
//
$header = "From: ".$sender."\r\n";
$header .= "Reply-To: ".$sender."\r\n";
$header .= "Errors-To: ".$sender."\r\n";
$header .= "X-Mailer: PHP / ".phpversion()."\r\n";


// ================================================================
// Create test pattern.
// ================================================================
//
$pattern="#^[-!\#$%&\"*+\\./\d=?A-Z^_|’a-z{|}~]+";
$pattern.="@";
$pattern.="[-!\#$%&\"*+\\/\d=?A-Z^_|’a-z{|}~]+\.";
$pattern.="[-!\#$%&\"*+\\./\d=?A-Z^_|’a-z{|}~]+$#";


// ================================================================
// Check if recipient E-Mail address is not empty.
// ================================================================
//
if($recipient != "")
{


// ================================================================
// Check if recipient E-Mail address is valid.
// ================================================================
//
if(preg_match($pattern,$recipient))
{


// ================================================================
// Sending the e-mail to the recipient.
// ================================================================
//
echo "Sending an E-Mail to <b>\"".$recipient."\"</b> ...<br>";
if($stopmail != "1") {

if(@mail($recipient, stripslashes($subject), stripslashes($message), stripslashes($header))) {
$counter = $counter + 1;
echo "E-Mail <b>\"".$counter."\"</b> at ".date("H:i:s")." was sent successfuly !<br>";
} else {
echo "This E-Mail could not be sent !<br>";
}
} else {
$counter = $counter + 1;
echo "E-Mail <b>\"".$counter."\"</b> at ".date("H:i:s")." was sent successfuly (Testmode) !<br>";
}
} else {
echo "The recipient E-Mail address is not valid !";
echo "<br>";
}
} else {
echo "The recipient E-Mail address is empty or it is the end of data !";
echo "<br>";
}


// ================================================================
// If necessary and the E-Mails can not send that fast here is
// a loop to make a little break after all E-Mails.
// ================================================================
//
$sec = $wait * 1000000;
usleep($sec);

}


// ================================================================
// Check if confirmation E-Mail address is not empty.
// ================================================================
//
if($confirmation != "")
{


// ================================================================
// Check if confirmation E-Mail address is valid.
// ================================================================
//
if(preg_match($pattern,$confirmation))
{


// ================================================================
// Sending a confirmation E-Mail.
// ================================================================
//
echo "<br>";
echo "Sending a confirmation E-Mail to <b>\"".$confirmation."\"</b> ...<br>";
$subject = "Confirmation - ".$subject;

if(@mail($confirmation, stripslashes($subject), stripslashes($message), stripslashes($header))) {
$counter = $counter + 1;
echo "E-Mail <b>\"".$counter."\"</b> at ".date("H:i:s")." was sent successfuly !<br>";
} else {
echo "This E-Mail could not be sent !<br>";
}
} else {
echo "<br>";
echo "The confirmation E-Mail address is not valid !";
}
} else {
echo "<br>";
echo "The confirmation E-Mail address is empty !";
}


// ================================================================
// Close the address file.
// ================================================================
//
echo "<br>";
if(@fclose ($afile)) {
echo "The file <b>\"".$addressfile."\"</b> was closed successfuly !<br>";
} else {
echo "The file <b>\"".$addressfile."\"</b> could not be closed !<br>";
}
} else {
echo "Could not read the file <b>\"".$afile."\"</b> ...<br>";
}


// ================================================================
// If everything is OK the status message displays the number
// of sent E-Mails.
// ================================================================
//
if ($status == "") {
$status ="Status: ".$counter." E-Mails were sent !";
echo "<br>";
echo "$status";
echo "<hr>";
echo "</td>";
echo "</tr>";
echo "</table>";
}

}


// ================================================================
// Display html footer with a close link.
// ================================================================
//
?>
<table align="center" class="bottomtable">
<tr>
<td colspan="4">
&nbsp;
</td>
</tr>
<tr>
<td class="linkcell">
<a href="javascript:window.close()">
Close Window
</a>
</td>
<td class="linkcell">
<a href="emailer.php">
E-Mail Form
</a>
</td>
<td class="linkcell">
<a href="javascript:history.back()">
Back
</a>
</td>
<td class="linkcell">
<a href="docu/emailer.pdf" target="_blank">
Help
</a>
</td>
</tr>
<tr>
<td colspan="4">
&nbsp;
</td>
</tr>
<tr>
<td colspan="4" class="copyright">
&copy; 2003 by <a href="mailto:biegel@gmx.ch">Patrick Biegel</a>, <?php echo $version; ?>
</td>
</tr>
</table>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>


מקווה שתעזרו לי כי ברוב השרתים החינמים אין את פונקציית הSENDMAIL
עמודים: 1