473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Transactional SMTP Component

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
Jul 19 '05 #1
0 1214

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Smiths | last post by:
Ha...sussed it. In my throw statement I was referencing a property of the class. It didn't like it. Thanks to all those who replied.....;>) >-----Original Message----- >I've followed...
5
by: Kevin Harrison | last post by:
Has anyone had any issues repeatedly sending SMTP e-mails from .Net? I have a c# component that gets executed by multiple threads, and uses SmtpMail.Send to send e-mails. Whilst in 80% of cases...
4
by: Elise.D | last post by:
Hi, i have to migrate an old asp classic app into asp.net this application has a mail fonction -- Elise Dupont MVP .Net France
0
by: Mark Miller | last post by:
I'm puzzled by this situation. I'm running on Windows XP Pro 2002 SP 2. I started on an ASP.Net project, initially using the standard SmtpServer and MailMessage classes. For testing, I used the...
5
by: NorCalVikesFan | last post by:
Does anybody know of any good C# SMTP libraries that do not use System.Web.Mail (i.e. they don't require CDO)? In particular I'm looking for ones that provide the source code, but that are not...
3
by: Ed Chiu | last post by:
Hello, I have an ASP page which was working fine and broke all of a sudden. It uses SMTPMail to send out email, here is some code snippet: mailObj.From = EmailFrom mailObj.To = EMailTO If...
11
by: Toble Rone | last post by:
Can anyone direct me to an article that explain how to send normal smtp emails from a VB.net windows app?. (i mean, using normal tcp to send the mail) Tnx in advance
2
by: Guoqi Zheng | last post by:
Dear Sir, I am writing a SMTP component. I would like this component to support multilingual because we are using French, English and Dutch. I got the info that I need to use Mime encoding......
6
by: Krish | last post by:
All, I want to have mail sending capabilities in my .NET application running on IIS6.0. I cannot use any enterprise's exchange server. I want to use the locally running SMTP service in the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.