Batch send with the same address twice
Posted: Tue Jul 31, 2007 10:48 am
Hi everyone, I've had a search and on google but cannot find anything about this so...
I'm actually pleased with myself so far, I've never really done php before and I have made the batchsend work from input from an XML/XSL file via a post which is generated by a 3rd party system with no emailing capabilities.
But now I'm stuck.
My problem is that if the same recipient comes up for an email more than once, the 1st email to them works, but any other emails do not send. I'm not sure if it's something I'm doing wrong or if it is a limitation with the batchsend.
Also (maybe should make a seperate post), to make the php batchsend page pick up the email addresses and other variables I have to write:
and so on... It doesnt stop it working if the input is empty obviously, but it seems inelegant... surely there is a neater way to do this, something like:
Thanks in advance for any light you can shed on this. I'm happy to share my code if anyone feels it would be of use to them, but I'm guessing this would be a simple task for most people here!
I'm actually pleased with myself so far, I've never really done php before and I have made the batchsend work from input from an XML/XSL file via a post which is generated by a 3rd party system with no emailing capabilities.
But now I'm stuck.
My problem is that if the same recipient comes up for an email more than once, the 1st email to them works, but any other emails do not send. I'm not sure if it's something I'm doing wrong or if it is a limitation with the batchsend.
Also (maybe should make a seperate post), to make the php batchsend page pick up the email addresses and other variables I have to write:
Code: Select all
if (!empty($_POST["rcpt1"])){$rcpt1 = $_POST["rcpt1"];}
if (!empty($_POST["rcpt2"])){$rcpt2 = $_POST["rcpt2"];}
if (!empty($_POST["rcpt3"])){$rcpt3 = $_POST["rcpt3"];}Code: Select all
if (!empty($_POST["rcpt{1-500}"])){$rcpt{1-500} = $_POST["rcpt{1-500}"];}