473,804 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=req uired%>
<%
' Dim Vars
' Retrieve Form Vars
....
' Create Connection
....
' Open Connection
....
objConn.Execute "EXEC usp_InsertUser " & ... . .. , , adCmdText +
adExecuteNoReco rds
Set objSMTP = Server.CreateOb ject("SMTP.Txn" )
With objSMTP
.To = ...
....
.Async = False
.Send
End With
' Cleanup
....
%>
<script language=vbscri pt runat=server>
sub OnTransactionCo mmit()
Response.Redire ct "Sucess.asp "
End Sub

sub OnTransactionAb ort()
Response.Redire ct "Failed.asp "
End Sub
</script>
Thanks

David
Jul 19 '05 #1
0 1234

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

Similar topics

0
1394
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 the help for making my component
5
5128
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 this works fine, I sometimes get "Could not access 'CDO.Message' object" errors The code in question is running as an AIC component under BizTalk. The call stack is: System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String
4
1775
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
1329
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 same e-mail address for From: and To:, my personal e-mail address on my ISP. I do not have an e-mail server set up on my machine, though I do have the SMTP service running. Everything was working. I could send a mail message from my ASP.Net...
5
2391
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 "open source". Our company is getting away from using any open source. We are converting an application that was originally written in C++ that used the Dundas SMTP library (source code was provided). Problem is that I don't believe Dundas has a...
3
1388
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 (Len(Trim(EMailCc)) > 0) Then mailObj.Cc = EMailCc End If
11
2018
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
1082
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... Is this right? I don't know so much about this. Does some one know a good tutorial about Mime and encoding??
6
420
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 webserver to send the emails. The webserver will have a public IP and a domain will be registered for the web server.
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10359
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10101
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9177
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6870
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3837
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.