Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
 
 
Microsoft Access Email Seminar
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   7 years ago

The Microsoft Access Email Seminar will teach you just about everything there is to know about sending and receiving email using Microsoft Access - with or without Microsoft Outlook. This seminar is for the intermediate to advanced Access developer. Topics include:

  • Microsoft Access Email SeminarSend Email Using Outlook
  • Export Access Reports as PDFs
  • Attach Files to Outgoing Email
  • Disable Outlook Security Warnings
  • Mail Merge Using Access and Word
  • Create Rich Text or HTML Email
  • Include Images in Emails
  • Broadcast Bulk Email Batches
  • Send Email Without Outlook
  • Connect Directly to a Mail Server
  • Create an Email from a Web Page
  • Embed Custom Mail Merge Fields
  • Add a Send Delay to Large Batches
  • Build Regular Email Templates
  • Assign Customers to Mailing Lists
  • Construct a Mail Server Database
  • Acquire Data from Incoming Emails
  • Build a Web Form to Collect Survey Data
  • Extract Files from Access Attachments
  • Track Email Deliverability
  • Email to SMS (Text Message) Gateways
  • Extract Attachments from Incoming Mail Click

Click here for more information on the Microsoft Access Email Seminar, including a complete course outline, sample video, sample database file, and lots more.

NEW! See my updated video for sending Email using Access and Outlook: Send Outlook Email

Updates

  • You may have to turn 2-factor authentication OFF for your Google account if you're having problems sending mail. I'd recommend creating a 2nd account just for sending mail from Access. This way your primary account is still safe and secure with 2FA.
  • You may need to make an App Password for your Google account. Go into your Google Account settings (not Gmail, your Google Account) and go to Security - Signing in to Google - App passwords. There you can setup a special username and password just for your Access app to send email thru your Gmail account. Not sure if I covered this in the seminar or not because it wasn't required at the time.

 

Email to multiple recipients Upload Images   Link  
Jerry Freeman 
5 years ago
Richard: I am trying to send an email to multiple recipients without having to create a new form; it is just based off a button click.  ie-email ADMIN.  Then sending an email to all in the ADMINEmail Recordset.  But only the last record in the recordset is showing up in the To: field when Outlook opens.  Any help appreciated. Code as follows:

Dim OObj As Outlook.Application
Dim OMsg As Outlook.MailItem
Dim db As Database
Dim rs As Recordset
Dim EmailAddress As String
    Set OObj = CreateObject "Outlook.Application")
    Set OMsg = OObj.CreateItem(olMailItem)
    Set db = CurrentDb
    Set rs = db.OpenRecordset("65_EmailGroupADMIN_T")
    With rs
        
        If .EOF And .BOF Then
            MsgBox "No emails will be sent becuase there are no records assigned from the list", vbInformation
            Else
            Do Until .EOF
                EmailAddress = ![Email]
                .Edit
                .Update
                OMsg.To = EmailAddress
                .MoveNext
            Loop
        OMsg.Display
End If
End With

    rs.Close
    db.Close
    Set rs = Nothing
    Set db = Nothing
    Set OMsg = Nothing
    Set OObj = Nothing
End Sub


Reply from Alex Hedley:

You have the lineOMsg.To = EmailAddress
So To will always contain the last email address in your loop
You will need to build up a string of emails in your loop instead

Dim strEmails
strEmails = strEmails & EmailAddress & ";"

Then set the .To to your list
OMsg.To = strEmails
Add a Reply

Show All Comments

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

You may want to read these articles from the 599CD News:

11/22/2021Currency Symbols
11/13/2021Access Developer 36
11/13/2021Access Developer 36 Lessons
11/13/2021Access Developer 36
11/13/2021Control Tip Text
11/11/2021Link to Excel
11/11/2021Read Write Excel Data
11/10/2021Moving Average
11/9/2021Surveys
11/9/2021Access Survey Seminar
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: access email seminar  Page Tag: whatsnew  PermaLink