Transactional SMTP Component

D

David Morgan

Hello All

Back in the day, when I was up to my elbows in Site Server 3 Commerce
Edition, there was a SMTP Component that supported transactions. If the
mail could not be delivered the transaction would abort. This was extremely
useful because it meant that if part of your order processing required an
email to be sent, (delivered), if it could not be, the whole order placement
process would roll back.

Just wondering if anyone knows of any standalone component that does a
similar sort of thing. We have a website where a hundred or so people
register each day and invariably, loads of them mis-type their email address
or their mailbox is out of storage space etc.

What I would like to do as part of the registration process is say that, "We
tried to send you an email on the address you supplied, but it could not be
delivered." I guess it would be nice if the actual failure/550 from the
SMTP conversation could be returned also.

Has anyone seen anything like this?

I guess my ASP Page would look something like this...

<%@ TRANSACTION=required%>
<%
' Dim Vars
' Retrieve Form Vars
....
' Create Connection
....
' Open Connection
....
objConn.Execute "EXEC usp_InsertUser " & ... . .. , , adCmdText +
adExecuteNoRecords
Set objSMTP = Server.CreateObject("SMTP.Txn")
With objSMTP
.To = ...
....
.Async = False
.Send
End With
' Cleanup
....
%>
<script language=vbscript runat=server>
sub OnTransactionCommit()
Response.Redirect "Sucess.asp"
End Sub

sub OnTransactionAbort()
Response.Redirect "Failed.asp"
End Sub
</script>


Thanks

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Net::SMTP errors 3
SMTP 0
SMTP Client 6
net/smtp 6
multilingual smtp component 0
setting up smtp to send an email 0
smtp 11
Inconsistent SMTP/Gmail connection drop 3

Members online

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,430
Latest member
7dog123

Latest Threads

Top