473,386 Members | 1,786 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,386 software developers and data experts.

Send SMTP Email from Access 2003

Is there a simple way to send SMTP email from Access VBA?

Mike
m charney at dunlap hospital dot org
Apr 18 '06 #1
10 24330
Mike Charney schrieb:
Is there a simple way to send SMTP email from Access VBA?


google for "blat".

Best regards
Martin
Apr 18 '06 #2

"Martin Schneider" <ma**************@illusion-factory.de> wrote in message
news:4a************@individual.net...
Mike Charney schrieb:
Is there a simple way to send SMTP email from Access VBA?


google for "blat".

Best regards
Martin


I did a google for blat and the server seems to be dead. Is there another
way?
Apr 18 '06 #3
Mike Charney schrieb:
I did a google for blat and the server seems to be dead. Is there another
way?


Hmmmm. You're right - don't know what happened.

But looking into the "Cache" page of that google hit then clicking
"Download" leads to...

http://sourceforge.net/project/showf...group_id=81910

Best regards,
Martin
Apr 18 '06 #4

"Martin Schneider" <ma**************@illusion-factory.de> wrote in message
news:4a************@individual.net...
Mike Charney schrieb:
I did a google for blat and the server seems to be dead. Is there another
way?


Hmmmm. You're right - don't know what happened.

But looking into the "Cache" page of that google hit then clicking
"Download" leads to...

http://sourceforge.net/project/showf...group_id=81910

Best regards,
Martin


Whats the difference between using blat and the built in smtp service that
comes with IIS on Windows XP Pro?

Mike
Apr 18 '06 #5
I looked for a simple way to use SMTP to send email from Access but it
wasn't simple at all. We ended up creating an Access add-in product,
Total Access Emailer, to address this need.

If you want to try a copy for free, visit our web site for the beta of
the new version. The Access 2003 beta version is available as a beta,
but we'll have versions of Access 97, 2000, and 2002 when we ship. Of
course the existing version has been shipping for some time.

Total Access Emailer lets you create custom emails for each email
address in your list. The new version supports the ability to embed
tables, queries, and reports in your email, which can be in text or
HTML format. The new feature of using your Access report generator to
create a custom report with all the groupings, summaries, etc. as your
HTML email is pretty powerful. You can of course, filter the table,
query and report for each recipient, use it as your message, or add is
an attachment.

Hope you like it.

Luke Chung
President
FMS, Inc.
http://www.fmsinc.com

Apr 18 '06 #6
I looked at your web site. This is great product, but it is way more then
what I want.

All I want to do is send an email, no attachments, to an email address on my
exchange server. I do not have an email client on the system. I am looking
for a way to send an SMTP email directly from an MS-Access module.

Mike

"FMS Development Team" <fm****@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
I looked for a simple way to use SMTP to send email from Access but it
wasn't simple at all. We ended up creating an Access add-in product,
Total Access Emailer, to address this need.

If you want to try a copy for free, visit our web site for the beta of
the new version. The Access 2003 beta version is available as a beta,
but we'll have versions of Access 97, 2000, and 2002 when we ship. Of
course the existing version has been shipping for some time.

Total Access Emailer lets you create custom emails for each email
address in your list. The new version supports the ability to embed
tables, queries, and reports in your email, which can be in text or
HTML format. The new feature of using your Access report generator to
create a custom report with all the groupings, summaries, etc. as your
HTML email is pretty powerful. You can of course, filter the table,
query and report for each recipient, use it as your message, or add is
an attachment.

Hope you like it.

Luke Chung
President
FMS, Inc.
http://www.fmsinc.com

Apr 18 '06 #7
Hi Martin,

This is 3 ways to send email from Access

With Blat.dll :
http://www.logicielappui.com/tips/AccXP_MailDLL.zip

With Winsock (API only)
http://www.logicielappui.com/tips/AccXP_MailAPI.zip

With MAPI (Outlook, Outlook Expess and Lotus Note)
http://www.logicielappui.com/tips/AccXP_Mail.zip
Regards

Robert Simard
Logipro
For my all tips :
http://www.logicielappui.com/tips
"Martin Schneider" <ma**************@illusion-factory.de> a écrit dans le
message de news: 4a************@individual.net...
Mike Charney schrieb:
Is there a simple way to send SMTP email from Access VBA?


google for "blat".

Best regards
Martin

Apr 18 '06 #8
The method I used is as follows. I have a table which contains all the email
addresses I need to mail and have a query ("Qry_George_List" in my case)
based on this table.

The following code creates a string of all the mail addresses separated with
"; " (minus the quotes).

Dim rstML As New ADODB.Recordset
Dim strList As String

rstML.Open "qry_george_list", CurrentProject.Connection, adOpenStatic,
adLockReadOnly
Do Until rstML.EOF
strList = strList & rstML!address & "; " 'replace address with the
field you use!
rstML.MoveNext
Loop
rstML.Close
Set rstML = Nothing
strList = Left(strList, Len(strList) - 2) 'cut off the last ; and Space

==============================================

The following code sends the email

Public Sub SendMail()
Dim oOApp As Outlook.Application
Dim oOMail As Outlook.MailItem

Set oOApp = CreateObject("Outlook.Application")
Set oOMail = oOApp.CreateItem(olMailItem)

With oOMail
..To = SrList ' Here the To field of the email is populated with the value of
StrList
..CC = ""
..Subject = ""
..Body = ""
..Send
End With
End Sub
Then to send the mail, just call SendMail.

Hope this is what your after,

Mark

"Mike Charney" <no*****@everything.net> wrote in message
news:ok*******************@newssvr21.news.prodigy. com...
I looked at your web site. This is great product, but it is way more then
what I want.

All I want to do is send an email, no attachments, to an email address on
my exchange server. I do not have an email client on the system. I am
looking for a way to send an SMTP email directly from an MS-Access module.

Mike

"FMS Development Team" <fm****@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
I looked for a simple way to use SMTP to send email from Access but it
wasn't simple at all. We ended up creating an Access add-in product,
Total Access Emailer, to address this need.

If you want to try a copy for free, visit our web site for the beta of
the new version. The Access 2003 beta version is available as a beta,
but we'll have versions of Access 97, 2000, and 2002 when we ship. Of
course the existing version has been shipping for some time.

Total Access Emailer lets you create custom emails for each email
address in your list. The new version supports the ability to embed
tables, queries, and reports in your email, which can be in text or
HTML format. The new feature of using your Access report generator to
create a custom report with all the groupings, summaries, etc. as your
HTML email is pretty powerful. You can of course, filter the table,
query and report for each recipient, use it as your message, or add is
an attachment.

Hope you like it.

Luke Chung
President
FMS, Inc.
http://www.fmsinc.com


Apr 19 '06 #9
Mike Charney schrieb:
Whats the difference between using blat and the built in smtp service that
comes with IIS on Windows XP Pro?


You asked for "simple way to send SMTP email", not "how to send SMTP
email via XP pro and IIS". There you are.

Best regards,
Martin
Apr 19 '06 #10
In order to not reveal your friend's and relative's e-mail addresses,
the code should be modified to place the recipient's addresses in the
BC or BCC field and your e-mail address in the To field. I haven't
tried it but following is the modified code...

With oOMail
..To ="yo*******@yourisp.com"
..BC = SrList ' Here the BC field is populated with the value of StrList
..CC = ""
..Subject = ""
..Body = ""
..Send

May 10 '06 #11

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

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
4
by: Tom Petersen | last post by:
Ok, I'm 99.9999999999999999999% sure there haven't been any code changes, since the date stamps of the code are older than any email 'failures' The email piece quit working using the mail.send. ...
4
by: CK | last post by:
Hi all, I know this question is stupid. But i need some advice for this. I am trying to develop a website, which will allow the user send to order form to the admin email. I am planning to use the...
4
by: Colin Kingston | last post by:
Hi For a college project I intend to produce a web based access database which will allow a group leader to send the same email to group members registered for that group. I want the group...
9
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
3
by: Luiz Vianna | last post by:
Guys, I have a Windows 2003 running Exchange 2003. On this machine I'm trying to run an ASP.NET webform to send an e-mail. The codebehing my ASPX is like this: Dim NewMail As New...
5
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address...
2
by: Terry Olsen | last post by:
I'm running on Windows Server 2003, Exchange 2003, ASP.NET (Framework 1.1) I can send mail using an email client, telnetting in to the SMTP port and manually sending the email, but when I try to...
14
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...

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.