Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-15-2005, 06:27 PM PHP Socketmail Log
Skilled Talker

Posts: 61
Trades: 0
I have a socket mail script running on a site, and I'm wondering if there's a simple way to see all the emails that are sent each time - new subscribers often say they didn't receive mail from us, but most of the time it turns out their spam filter blocked it. Basically, I'd like to be able to easily verify that emails were sent successfully so I don't have to spend time struggling to understand what went wrong when I'm not even sure anything is wrong on our end.

I know little about servers, so my attempts to find some simple log from our host didn't turn anything up. Any ideas?

Thanks.
gregory is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-16-2005, 01:23 AM
Skilled Talker

Posts: 62
Trades: 0
How about:

PHP Code:
if(mail"... your compiled mail info ..." )) {
  
$error 0;
} else {
  
$error 1;

Error handlers could be embedded in above statement - I'd shoot for a complete .TXT dump of the message contents with a timestamp.
__________________

Please login or register to view this content. Registration is FREE
danlefree is offline
Reply With Quote
View Public Profile Visit danlefree's homepage!
 
Old 11-16-2005, 11:16 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
Unless you have access to your server maillog you will be attempting pretty much the impossible.

Its all well and good logging what was sent but without actaully getting at server logs you will find it hard to find what bounced what got deleived or deffered or failed.

In fact once you send them then its your ISP that will be dealing with it all so you would be best i suppose contacting them and finding what they can do for you.

Ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 11-16-2005, 01:13 PM
Skilled Talker

Posts: 61
Trades: 0
Thanks.

It seems like the script worked fine until the number of subscribers reached 200+ or so. Maybe I should set it up to send out in smaller batches.
gregory is offline
Reply With Quote
View Public Profile
 
Old 11-16-2005, 04:14 PM
Skilled Talker

Posts: 61
Trades: 0
OK, I set the deal up to split the total list into batches of 10 - I have to submit the form to send to each batch manually, which isn't very exciting, but it seems to work.

EXCEPT

I'm getting a ton of emails bounced.

Message is as follows:
Quote:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

sample@sbcglobal.net
unrouteable mail domain "sbcglobal.net"

------ This is a copy of the message, including all the headers. ------

Return-path: <pmenu@performancemenu.com>
Received: from localhost ([127.0.0.1] helo=www.performancemenu.com)
by box38.bluehost.com with smtp (Exim 4.52)
id 1EcUTd-0004Kt-Lp
for sample@sbcglobal.net; Wed, 16 Nov 2005 14:05:57 -0700
Subject: Performance Menu 10 - November 2005
From: The Performance Menu <pmenu@performancemenu.com>
To: sample@sbcglobal.net
X-Sender: <pmenu@performancemenu.com>
Errors-To: <pmenu@performancemenu.com>
Message-Id: <de2c4a3b109683161dc8e54761fd7cd7.ThePerformanceMe nu@localhost>
X-Mailer: PHP - Socketmail v2.0
X-Priority: 3
Date: Wed, 16 Nov 2005 14:05:54 -0700
Content-Type: text/plain; charset=ISO-8859-1
X-Identified-User: {32341:box38.bluehost.comerform3erformancemenu .com}

Is this a problem on my end? I can't imagine what considering that I can't see a pattern to which addresses succeed and which fail, and the fact that not all of them fail makes me think it's not the script. But I don't know.

Help?
gregory is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP Socketmail Log
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21743 seconds with 12 queries