Author Topic: Send an Email  (Read 1949 times)

jo

  • Posts: 1
    • View Profile
Send an Email
« on: June 08, 2007, 01:33:46 am »
I've been using LM for months without any errors but my server was upgraded from PHP4 to 5 a couple of days ago.

Now when I go to send an email I get this error message -

"Please wait while email is queued to send... Duplicate entry '5e4fc94db8f39b5b4fcdacc9e80e1741' for key 1"

Entry 'number' changes on each attempt.

Can anyone help? I need to send something out urgently.

Thanks

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Send an Email
« Reply #1 on: June 09, 2007, 02:16:47 am »
Greetings,

This is strange... Are there items in queue, or does this happen when queueing up a message with nothing queued?  

Please submit a report and I will investigate:
http://listmailpro.com/support?t=other

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Send an Email
« Reply #2 on: June 09, 2007, 04:20:28 am »
The 'unique' calculation for the 32 character id for each message was based on microtime().  Apparently your server sends messages faster than 1 per microsecond.. !

I have modified your calculation code to that indicated on php.net here:
http://php.net/uniqid
Quote
// better, difficult to guess
$better_token = md5(uniqid(rand(), true));

Duplicates should be far, far more rare, if ever... I'll have to consider how to improve this process.  To save time I didn't want to check each ID for a duplicate value but I might have to to prevent even rare occurrences of duplicates...

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

idealizm

  • Posts: 13
    • View Profile
Send an Email
« Reply #3 on: August 15, 2007, 02:39:00 am »
Quote from: "DW"
Apparently your server sends messages faster than 1 per microsecond.. !


I am assuming this speed is pretty easy to achieve when you're sending to a "test list" with local addresses delivered through localhost?   ;)

Thanks for the fix - I needed it too!!