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
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