Email Macro

Q

Qwin Cowper

Hi all
Is it possible to create a macro that can send an email
of a list of something (e.g. a list of books)
automatically to a list of users stored in a table.
Please could you email me if you have any idea or you
have a code that i can use.
(e-mail address removed)
 
J

Jessica

Qwin,
It is possible to create a macro to send emails, you would use SendObject. However I have problems manipulating macros. I created a module with this function and it looks at the current ticket (Form Log), opens up the record for the related customer and gets the email address, then emails the ticket number to my customer. Once done it places a check in the box next to Emailed? this way it doesn't repeat that ticket again

'-----------------------------------------------------------
' Emai
'-----------------------------------------------------------
Function Email(
On Error GoTo Email_Er
Dim addy As Strin
Dim Customer As Strin
Dim Ticket As Strin

' Check for Emailed Statu
If Forms!LOG!Emailed = False The

'Lookup Customer info for this ticket and get Addres
Dim stDocName As Strin
Dim stLinkCriteria As Strin

stDocName = "Customer

stLinkCriteria = "[Name]=" & "'" & Forms!LOG![CustomerName] & "'
DoCmd.OpenForm stDocName, , , stLinkCriteria, , acHidde

addy = Forms!Customer!txtEmai

' Get Customers Name and the ticket number from the Lo
Customer = Forms!LOG!Nam
Ticket = Forms!LOG!Problem_Numbe

' Emails the ticket number to the custome
DoCmd.SendObject , , , addy, , , "Your SCS Help Desk Ticket Number is " & Ticket, Customer & " Thank you for contacting the helpdesk. Your ticket number is going to be, " & Ticke

' Sets emailed status to tru
Forms!LOG!Emailed = Tru

End I

Email_Exit
Exit Functio

Email_Err
MsgBox Error
Resume Email_Exi

End Functio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top