Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2007

Tip: Looking for answers? Try searching our database.

Email Issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dchristo - 24 Sep 2007 18:16 GMT
I am trying to send an automated email from access, but nothing is being send
and I am getting no error messages.

Private Sub vac_Click()
   Dim strMessage As String 'Body of message
   Dim strSubject As String 'Email Subject
   Dim strTo As String 'To address
   Dim strCC As String 'CC Address
     
   strTo = "my email addess"
   strCC = ""
   strSubject = "vac letter - " & Me.[id#]
   
   strMessage = "If you have any questions, please contact me at
xxx-xxx-xxxx or you may respond to this email."

       DoCmd.SendObject , , , strTo, , , strSubject, strMessage, True
 
Exit_VAC_Click:
   Exit Sub

Err_VAC_Click:
   MsgBox Err.Description
   Resume Exit_VAC_Click
pietlinden@hotmail.com - 25 Sep 2007 20:31 GMT
On Sep 24, 12:16 pm, dchristo <dchri...@discussions.microsoft.com>
wrote:
> I am trying to send an automated email from access, but nothing is being send
> and I am getting no error messages.
[quoted text clipped - 20 lines]
>     MsgBox Err.Description
>     Resume Exit_VAC_Click

What happens if you use MsgBox to show the values of strSubject etc?
Are they blank?
dchristo - 30 Sep 2007 22:55 GMT
no, they are not blank

> On Sep 24, 12:16 pm, dchristo <dchri...@discussions.microsoft.com>
> wrote:
[quoted text clipped - 25 lines]
> What happens if you use MsgBox to show the values of strSubject etc?
> Are they blank?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.