473,568 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SMTP code for VBA?

Hi Folks,

Does anyone have a line on some well written black box code that will
handle SMTP mailing sessions and can be integrated into a VBA app?

Thanks.
Nov 12 '05 #1
7 15439
William Case <re**********@n ospam.zap> wrote:
Does anyone have a line on some well written black box code that will
handle SMTP mailing sessions and can be integrated into a VBA app?


See the Access Email FAQ at my website. Particularly the third party controls
section.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #2

Thanks Tony. I review the en tire site and found lots of great stuff.
Unfortunately, I did not see any SMTP products. Do you have a more
specific link?

On Sat, 04 Oct 2003 17:56:05 GMT, Tony Toews <tt****@teluspl anet.net>
wrote:
William Case <re**********@n ospam.zap> wrote:
Does anyone have a line on some well written black box code that will
handle SMTP mailing sessions and can be integrated into a VBA app?


See the Access Email FAQ at my website. Particularly the third party controls
section.

Tony


Nov 12 '05 #3
William Case <re**********@n ospam.zap> wrote:
Does anyone have a line on some well written black box code that will
handle SMTP mailing sessions and can be integrated into a VBA app?
See the Access Email FAQ at my website. Particularly the third party controls
section.

Thanks Tony. I review the en tire site and found lots of great stuff.
Unfortunatel y, I did not see any SMTP products. Do you have a more
specific link?


Third Party Controls
Given that I have little control of my clients software and what other products they
have installed on them I like using controls which do the dialing (if required) and
the uploading/downloading of email directly.

I've had good success with the Mabry mail and RAS controls. Click here for my sample
code using the Mabry controls, DAO and a recordset to send the same email to many
email addresses. I did have to go looking in a non standard place

There are other controls available which Access programmers have indicated work in
Access.
SocketTools Visual Edition
H&S Technology, Inc
MarshallSoft Computing, Inc.
Codestone

The user configures Win 95/98/NT in the normal fashion for ISP connections. In the
Access software they enter their ID, password, mail server POP and SMTP name and ISP
phone number, choose the modem dialer profile previously defined to Win 95/98/NT, and
the Mabry controls do the dialing, uploading/downloading of email and your software
does the rest.

You aren't dependent in any way on how the system is configured. You don't have to
have all the various versions of Exchange and Outlook on your system to support the
clients. So long as they've configured Win 95/98/NT networking to connect to their
ISP. You control everything. You can also log, in your application, exactly when
email was received or sent.

As one programmer put it: "Users tend to tweak their profiles, so one day your
application works great, and the next day it crashes or sends out unreadable
attachments. Way too much tech support for me!"

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #4
On Sun, 05 Oct 2003 23:47:12 GMT, Chuck Grimsby
<c.*******@worl dnet.att.net.in valid> wrote:

How "Black Box" do you want to go?

I've posted code to do SMTP via the winSock control previously in this
newsgroup. Search for it at Google if you want.

Do you *need* to go lower then that? Down to the DLLs? Why?

(I did it for fun once, but so far I haven't come across a case where
I had to use it. The WinSock.OCX fills all the needs I've had so far,
so I'm curious in what conditions you would have that would require
going to the DLLs.)
Perhaps I was a bit sloppy in my use of the term "black box". I would
prefer to get a code module with properties and methods I can call in
my code to perform various SMTP functions, like sending to one,
sending one message to many, logging what was sent, etc. THAT is what
I mean by "black box" -- a little "magic" black box where stuff goes
in, stuff comes out, but I don't have to worry about what happens
inside the box. If that be a DLL, then so be it. Is that expecting
too much?

On Sun, 05 Oct 2003 17:27:39 -0500, William Case
<re**********@ nospam.zap> wrote:
Thanks Tony. I review the en tire site and found lots of great stuff.
Unfortunately , I did not see any SMTP products. Do you have a more
specific link?

On Sat, 04 Oct 2003 17:56:05 GMT, Tony Toews <tt****@teluspl anet.net>
wrote:
William Case <re**********@n ospam.zap> wrote:
Does anyone have a line on some well written black box code that will
handle SMTP mailing sessions and can be integrated into a VBA app?See the Access Email FAQ at my website. Particularly the third party controls
section.


Nov 12 '05 #5
Chuck Grimsby <c.*******@worl dnet.att.net.in valid> wrote:
I've posted code to do SMTP via the winSock control previously in this
newsgroup. Search for it at Google if you want.


I forgot to mention that section on my FAQ. A link to your posting is in the
"Directly via the Winsock" section of my website as well.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #6
On Mon, 06 Oct 2003 22:47:07 GMT, Tony Toews <tt****@teluspl anet.net>
wrote:
Chuck Grimsby <c.*******@worl dnet.att.net.in valid> wrote:
I've posted code to do SMTP via the winSock control previously in this
newsgroup. Search for it at Google if you want.


I forgot to mention that section on my FAQ. A link to your posting is in the
"Directly via the Winsock" section of my website as well.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm


Tony, I cannot find ANY text on your site labeled "Directly via the
Winsock". Help!

Nov 12 '05 #7
LaurenW <re**********@n ospam.zap> wrote:
Tony, I cannot find ANY text on your site labeled "Directly via the
Winsock". Help!


About 2/3s of the way down on http://www.granite.ab.ca/access/email.htm

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #8

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

Similar topics

1
8033
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net page. earlier it was showing send using not find error.
4
2461
by: Tushar | last post by:
Please help: I found some of the following information in messeges in this group but I would like someone to confirm them please. I would like to use the following web-services / ASP.Net code to be used in an intranet environment: MailMessage Message = new MailMessage(); Message.To = ... .... SmtpMail.SmtpServer = ...
34
18184
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow "127.0.0.1". 4. Authentication: "Anonymous access" only. 5. Outbound connection listen to TCP 25. Besides,
2
3604
by: oliu321 | last post by:
Hi, First I am not trying to write a client to talk with hotmail straightly. I am trying to write some codes to send emails through a SMTP server. I wrote a C++ version using pure socket programming and SMTP protocol, a VB version using CDO and a C# version using System.Net.Mail. Now all of them works great with any email account but ...
11
2694
by: ibiza | last post by:
Hi all, I am trying to use the System.Net.Mail class for the first time, with ASP.NET 2.0. I setup everything according to http://www.codeproject.com/aspnet/EasySMTP_package.asp, which gives me a working environment for sending mails. I am sure the code is correct, there are no errors and everything seems
2
12150
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used, error is thrown at the .send point. Error is: The following error occured Sending an email: System.ApplicationException: An error occurred sending...
6
1846
pbmods
by: pbmods | last post by:
I feel almost embarrassed to post in this forum, but I can't exactly pick my clients' technologies, so here we are. I'm supporting a client project written in ASP. Part of the project that doesn't work is a form mailer. Here's what's up: We have some code that looks like this: set smtp = Server.CreateObject("Bamboo.SMTP") smtp.Server...
13
6782
by: jcor | last post by:
Hi, I'm trying some code to send a mail with my script. This is it: #!/usr/bin/perl use Net::SMTP; my $smtp_server='62.193.245.15'; my $smtp = Net::SMTP->new($smtp_server) or die "Can't Open server\n"; $smtp->mail('joao.correia@tvn.pt'); $smtp->to('jcor@sapo.pt'); $smtp->auth("joao.correia@tvn.pt","*password*");
5
5292
by: jimhill10 | last post by:
I have a perl script that creates an email attachment file from POST data on a web page. This works just fine. I want to customize the email body to contain all of the text data from the file itself. I thought this would be just a matter of using the $smtp->datasend($POSTvalues) with the $values coming from the names on the web page posting the...
4
2982
by: eruth | last post by:
Hi all, I'm trying to send an e-mail from a vb.net web form. I can create the message, but when it comes to actually sending it I get the following error. "Mailbox name not allowed. The server response was: Server policy dictates you must authenticate first " So far as I can tell, my code is doing what it's meant to, but I'd appreciate...
0
7604
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...
0
7916
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. ...
0
8117
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7962
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...
0
6275
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...
1
5498
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...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
932
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.