Results 1 to 6 of 6
  1. #1
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131

    email notification with proper format

    Hi,



    I am using
    Code:
        DoCmd.SendObject acQuery, "InsuranceTable Query", "Excel97-Excel2003Workbook(*.xls)", Me.E_mail.Value, "", "", "Insurance Renewal List", "Dear Sir,     Plz renewal the attached list    Thanks and Regareds LoanAPP  ", False, ""
    and i got 2 problem.
    1. msgbox appear to acess or deny to send email.
    2. Email massage sent in one line rather then proper formate i.e
    "Dear Sir, Plz renewal the attached list Thanks and Regareds LoanAPP"
    but i needed
    "Dear Sir,

    Plz renewal the attached list

    Thanks and Regareds
    LoanAPP"
    Last edited by June7; 02-04-2014 at 12:56 PM. Reason: correct spelling in title

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    1. I don't get this warning message. Had to go into Outlook: File > Options > Programmatic Access > Never warn me about suspicious activity.

    2. Try: "Dear Sir," & vbCrLf & vbCrLf & "Please renew the attached list." & vbCrLf & vbCrLf & "Thanks and Regards" & vbCrLf "LoanAPP"
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    Thank You june7. 2nd problem solved but 1st problem has not solved.
    I have tried but same problem exist.Click image for larger version. 

Name:	Untitled-1.jpg 
Views:	17 
Size:	69.8 KB 
ID:	15244

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Got to office and double-checked that setting in my Outlook. Has "Warn me about suspicious activity when my antivirus software is inactive or out-of-date (recommended)" selected.

    Bing: Access VBA Outlook warning

    http://msdn.microsoft.com/en-us/libr...ffice.10).aspx

    http://www.everythingaccess.com/tuto...curity-Warning
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    joshynaresh is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    131
    Is there any other way to send e-mail with attachment of Access Object like as Sendobject do?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Just realized I don't use the SendObject method. Maybe that's why I don't get the warning.

    I use code that opens an Outlook object and manipulates the object. https://www.accessforums.net/program...ook-21903.html
    Email is common topic. Search forum for more examples.

    If you want to avoid Outlook use CDO (Collaboration Data Object). Review https://www.accessforums.net/access/...nding-216.html

    Would have to save the query as PDF or Excel file then attach the external file. Use OutputTo method to save file.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Date formate prob
    By winterh in forum Access
    Replies: 1
    Last Post: 03-28-2012, 04:19 PM
  2. Email Notification
    By Ariuser in forum Programming
    Replies: 1
    Last Post: 01-20-2012, 03:44 PM
  3. Automated Email Notification
    By sai_rlaf in forum Access
    Replies: 5
    Last Post: 12-07-2011, 06:33 PM
  4. disable email notification by Outolook Express
    By maxbre in forum Programming
    Replies: 0
    Last Post: 12-02-2011, 05:19 AM
  5. Email with proper page orientation of Report
    By Robert M in forum Programming
    Replies: 1
    Last Post: 08-17-2009, 10:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums