Read smtp error for better mailing list script
Moderator: General Moderators
Read smtp error for better mailing list script
Hello
we have a php mailing list script that work fine
now, we would like add new function for get smtp error and take correctly action.
for example:
if error is "bad destination mailbox address" don't try again to sent
if error is "Mailbox full" try later.. after x hours..
...
what is best way to check error and made action ??
txx
we have a php mailing list script that work fine
now, we would like add new function for get smtp error and take correctly action.
for example:
if error is "bad destination mailbox address" don't try again to sent
if error is "Mailbox full" try later.. after x hours..
...
what is best way to check error and made action ??
txx
more about
we think to make 2 controls:
first > with smtp check if email address is ok as this http://www.zend.com/zend/spotlight/ev12apr.php
we have customer that must sent 400k/500k emails so we can found system for check as smtp but without that process come dangerous for server..
we must also know how works with smtp.. if is possible to make one single connection and more checked for connection and how get result..
second > check emails error return to "-r" headers.
At this time we use mail() single for any email but there is a first control about error

thx
first > with smtp check if email address is ok as this http://www.zend.com/zend/spotlight/ev12apr.php
we have customer that must sent 400k/500k emails so we can found system for check as smtp but without that process come dangerous for server..
we must also know how works with smtp.. if is possible to make one single connection and more checked for connection and how get result..
second > check emails error return to "-r" headers.
At this time we use mail() single for any email but there is a first control about error
thx
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Swift does use SMTP. It also has a command() method* if you need to run commands against the SMTP server. Perhaps this will save you some time compared with writing your own set of tools? If you need to run a command before each message is sent there's the BeforeCommand plugin event which invokes the onBeforeCommand() method in the plugin in version 2.webstyler wrote:we use mail() with more control as max emails x minute, x hours, session delay, complex headers, ....
we know swiftmailer.. really fine.. but we need to better our script..
If is better to use SMTP also for send we can make it... but we need to develop on our script
tx
It also does header customization*, anti-flooding (i.e. max emails per-connection, wait for x mins after sending a batch) and reads SMTP errors.
What is it you're trying to do specifically?
*Some of this functionality has been improved in the forthcoming release
Hi d11wtq
we want make 2 controls:
first > with smtp check if email address is ok as this http://www.zend.com/zend/spotlight/ev12apr.php
we have customer that must sent 400k/500k emails so we can found system for check as smtp but without that process come dangerous for server..
we must return a smtp error, store in dbase and use it for get action (suspend emails, send later, ...)
second > check emails error return to "-r" headers as bounce and get action for bounce code/type.
All operations is store in a log under dbase..
thx
we want make 2 controls:
first > with smtp check if email address is ok as this http://www.zend.com/zend/spotlight/ev12apr.php
we have customer that must sent 400k/500k emails so we can found system for check as smtp but without that process come dangerous for server..
we must return a smtp error, store in dbase and use it for get action (suspend emails, send later, ...)
second > check emails error return to "-r" headers as bounce and get action for bounce code/type.
All operations is store in a log under dbase..
thx
d11wtq wrote:Swift does use SMTP. It also has a command() method* if you need to run commands against the SMTP server. Perhaps this will save you some time compared with writing your own set of tools? If you need to run a command before each message is sent there's the BeforeCommand plugin event which invokes the onBeforeCommand() method in the plugin in version 2.webstyler wrote:we use mail() with more control as max emails x minute, x hours, session delay, complex headers, ....
we know swiftmailer.. really fine.. but we need to better our script..
If is better to use SMTP also for send we can make it... but we need to develop on our script
tx
It also does header customization*, anti-flooding (i.e. max emails per-connection, wait for x mins after sending a batch) and reads SMTP errors.
What is it you're trying to do specifically?
*Some of this functionality has been improved in the forthcoming release
we don't have php5 on server
yes, sorry for mistakefeyd wrote:Swift has PHP 4 versions available too.
we had test in the past and after unistalled
Now we have install last release x Php 4
--
But, think we need any help to clarify how and if smtp can work as our first post.
we have try to send bach email with swift mailer but no error reporting for email as texttext.com..
Think need only to setting any var..
But now I have a question: for manage errore is really necessary use smtp ?
we receive and process bounce emails and all error is reporting by bounce..
Is possible to get smtp error and use for better process ? How ??
thx for help
with d11wtq help I have now know how exactly smtp work
I have another question:
is better to delivery newsletter at rcpt stirring or grouping the emails ?
If for example there is a newsletter to send at 10.000 emails is better to group by @domain.com or strirring ?
think that stirring is best pratics to avoid our newsletter is tagged as spam
but grouping I 'think' smtp is more faster (or not?)
tx
I have another question:
is better to delivery newsletter at rcpt stirring or grouping the emails ?
If for example there is a newsletter to send at 10.000 emails is better to group by @domain.com or strirring ?
think that stirring is best pratics to avoid our newsletter is tagged as spam
but grouping I 'think' smtp is more faster (or not?)
tx
- 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