how to send 2300 emails without errors?
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
So basically you need a VPS? Is that what they're trying to sell you? Not much point in having an IP if everyone else can use the same IP.alexus wrote:well they just told me that if i buy an IP from them they will set up it on SMPT,
and if I want to heve outgoing traffic I need to buy IP too... if I want use Gmail SMTP buy IP .... just like a mafia lol
extortion all over the place
ok I finally got it working with hotmail... now I send mail through gmail
but I never got any emails to any of my test emails on difereent servers...
Also gmail returned some failure notice.... which for some reason had all email DB listed in the header... I suume that anti flood is not working becaus ethere shouldnt be all emaile there should be just 100 emails max + the shouldn be shown at all i think?
What is going on? Why can I debug? Everythin works fine with small testing sample. I can really send to many things out because if for some reason lt say even 40% of peaple getting the mail but 60% and if they gat to many test emails? I cant loos me visitors?
How can I debug in this situation?
but I never got any emails to any of my test emails on difereent servers...
Also gmail returned some failure notice.... which for some reason had all email DB listed in the header... I suume that anti flood is not working becaus ethere shouldnt be all emaile there should be just 100 emails max + the shouldn be shown at all i think?
What is going on? Why can I debug? Everythin works fine with small testing sample. I can really send to many things out because if for some reason lt say even 40% of peaple getting the mail but 60% and if they gat to many test emails? I cant loos me visitors?
How can I debug in this situation?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Ok my SMTP just technicaly fixed the Hotmail problem but still I have some problems with delivery
a) I found out thta my server has 50 email per hour, (but they increased to 500, I hope)
Never the less I'm getting fine only first 41 messsges and them nothing, only returned mail that some mailbozes do not exist...
So, how can I deas with this... can I have this type of output:
1-In realtime output show emails that are sent and confirmed my SMTP
2- At the end show all bad emails that do not exist...
i tried get_failed recipients, but it doesnt return anything ... this is 2nd week and im alredu too furstrated
a) I found out thta my server has 50 email per hour, (but they increased to 500, I hope)
Never the less I'm getting fine only first 41 messsges and them nothing, only returned mail that some mailbozes do not exist...
So, how can I deas with this... can I have this type of output:
1-In realtime output show emails that are sent and confirmed my SMTP
2- At the end show all bad emails that do not exist...
i tried get_failed recipients, but it doesnt return anything ... this is 2nd week and im alredu too furstrated
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Sounds like you were getting "1" for the array getFailedRecipients() because you were doing something like:alexus wrote:Ok my SMTP just technicaly fixed the Hotmail problem but still I have some problems with delivery
a) I found out thta my server has 50 email per hour, (but they increased to 500, I hope)
Never the less I'm getting fine only first 41 messsges and them nothing, only returned mail that some mailbozes do not exist...
So, how can I deas with this... can I have this type of output:
1-In realtime output show emails that are sent and confirmed my SMTP
2- At the end show all bad emails that do not exist...
i tried get_failed recipients, but it doesnt return anything ... this is 2nd week and im alredu too furstrated
Code: Select all
echo print_r($swift->getFailedRecipients());Code: Select all
print_r($swift->getFailedRecipients());As for showing output in realtime, if you have time to wait then this should work (untested):
Code: Select all
<?php
class Swift_Plugin_VerboseSending implements Swift_IPlugin
{
private $swift;
public function loadBaseObject(&$swift)
{
$this->swift =& $swift;
}
public function onSend()
{
$recipients = array();
foreach ((array) $this->swift->currentMail[1] as $address)
{
$recipients[] = $this->swift->getAddress($address);
}
$recipient_concat = implode(', ', $recipients);
echo "<div style="background: #44cc44; color: #ffffff; margin: 2px;">Mail Sent to $recipient_concat</div><br />";
ob_flush(); flush();
}
}
?>Code: Select all
<?php
class Swift_Plugin_VerboseSending
{
var $swift;
function loadBaseObject(&$swift)
{
$this->swift =& $swift;
}
function onSend()
{
$recipients = array();
foreach ((array) $this->swift->currentMail[1] as $address)
{
$recipients[] = $this->swift->getAddress($address);
}
$recipient_concat = implode(', ', $recipients);
echo "<div style="background: #44cc44; color: #ffffff; margin: 2px;">Mail Sent to: $recipient_concat</div><br />";
ob_flush(); flush();
}
}
?>EDIT | Fixed </span> to </div>
Last edited by Chris Corbyn on Wed Feb 07, 2007 1:19 am, edited 1 time in total.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Sorry, above plugin just got tested (I'm bored
) but this works:
Or PHP4:
Each email sent, blinks a green bar onto a list in realtime. I guess the flush() call will vary depending upon your server but in most cases it will work.
EDIT | Oh, you got me started now
I like this plugin system, I can play forever. This one does an output like this:

PHP5:
or PHP4:
Code: Select all
<?php
class Swift_Plugin_VerboseSending implements Swift_IPlugin
{
private $swift;
public $pluginName = 'Verbose';
public function loadBaseObject(&$swift)
{
$this->swift =& $swift;
}
public function onSend()
{
$recipients = array();
foreach ((array) $this->swift->currentMail[1] as $address)
{$this->swift->currentMail[1];
$recipients[] = substr($this->swift->getAddress($address), 1, -1);
}
$recipient_concat = implode(', ', $recipients);
echo "<div style=\"background: #44cc44; color: #ffffff; margin: 2px;\">Mail Sent to $recipient_concat</div>\n";
flush();
}
}
?>Code: Select all
<?php
class Swift_Plugin_VerboseSending
{
var $swift;
var $pluginName = 'Verbose';
function loadBaseObject(&$swift)
{
$this->swift =& $swift;
}
function onSend()
{
$recipients = array();
foreach ((array) $this->swift->currentMail[1] as $address)
{$this->swift->currentMail[1];
$recipients[] = substr($this->swift->getAddress($address), 1, -1);
}
$recipient_concat = implode(', ', $recipients);
echo "<div style=\"background: #44cc44; color: #ffffff; margin: 2px;\">Mail Sent to $recipient_concat</div>\n";
flush();
}
}
?>EDIT | Oh, you got me started now

PHP5:
Code: Select all
<?php
class Swift_Plugin_VerboseSending implements Swift_IPlugin
{
private $swift;
public $pluginName = 'Verbose';
private $count = 0;
public function loadBaseObject(&$swift)
{
$this->swift =& $swift;
}
public function onSend()
{
$recipients = array();
foreach ((array) $this->swift->currentMail[1] as $address)
{
$this->count++;
$sent_to = $this->swift->getAddress($address);
$result = array();
$result[] = substr($sent_to, 1, -1);
if (in_array($sent_to, $this->swift->getFailedRecipients())) $result[] = false;
else $result[] = true;
switch ($result[1])
{
case true:
$pass = 'OK';
$color = '#44aa44';
break;
case false:
$pass = 'FAIL';
$color = '#bb4444';
break;
}
echo "<div style=\"
background: $color;
color: #ffffff;
margin: 2px;
padding: 3px;
font-weight: bold;\">
<span style=\"float: right;
text-decoration: underline;\">$pass</span>
Recipient ($this->count): $result[0]</div>\n";
flush();
}
}
}
?>Code: Select all
<?php
class Swift_Plugin_VerboseSending
{
var $swift;
var $pluginName = 'Verbose';
var $count = 0;
function loadBaseObject(&$swift)
{
$this->swift =& $swift;
}
function onSend()
{
$recipients = array();
foreach ((array) $this->swift->currentMail[1] as $address)
{
$this->count++;
$sent_to = $this->swift->getAddress($address);
$result = array();
$result[] = substr($sent_to, 1, -1);
if (in_array($sent_to, $this->swift->getFailedRecipients())) $result[] = false;
else $result[] = true;
switch ($result[1])
{
case true:
$pass = 'OK';
$color = '#44aa44';
break;
case false:
$pass = 'FAIL';
$color = '#bb4444';
break;
}
echo "<div style=\"
background: $color;
color: #ffffff;
margin: 2px;
padding: 3px;
font-weight: bold;\">
<span style=\"float: right;
text-decoration: underline;\">$pass</span>
Recipient ($this->count): $result[0]</div>\n";
flush();
}
}
}
?>
Last edited by Chris Corbyn on Fri Sep 22, 2006 8:33 pm, edited 1 time in total.
Hey thatsnks for the plugin, for some reason I didnt get notification about your new post
I' will try it now...
Still I just foun out strange problem (again) when im sending HTML w/ image <img src=http://abc.com> the image is showing as an error image? why? is thta only me as usual?
PS: I'm using PHP4
Still I just foun out strange problem (again) when im sending HTML w/ image <img src=http://abc.com> the image is showing as an error image? why? is thta only me as usual?
PS: I'm using PHP4
ok here is my own findings on waht caused the images not to show up:
my html:
Working HTML:
Diferance? => Quatation marks withn the HTML tags
Question: How to remove quatation marks with HTML only?
my html:
Code: Select all
<p>
<img src="http://www.ultraclubber.com/events/img_flyer_496.php?VAPOR%20WHITE%20back.jpg" border="0"></p>Code: Select all
<p>
<img src=http://www.ultraclubber.com/events/img_flyer_496.php?VAPOR%20WHITE%20back.jpg border=0></p>Diferance? => Quatation marks withn the HTML tags
Question: How to remove quatation marks with HTML only?