Macros and Programming
Using the standard bulk email macro the To: field is ether blank or states Undisclosed recipients: ;,
Thanks for any help you may give
PS I first used Cardbox back in the early 1980's on a Cambridge Research Machine running CPM as an operating system.
Here is the standard macro (my field names are: EMAIL and NAME) :
' For ways in which you can modify this macro,
SendEmail20120807_21bb7f6 Records,1,Records.Count ' Send email (automatically generated)
Sub SendEmail20120807_21bb7f6(recs,first,last) ' (automatically generated command)
I tested the recorded macro. Got the same result.
I wonder why you get 16 in this line:
If sender.AddRecipient(EmailNameAndAddress(rec.Fields("NAME"),rec.Fields("EMAIL")),16) Then
Helpfile subject AddRecipient method (EmailSender object) does not mention 16. So I think the default 0 is used here.
It is a pity that there is not programmed automatic there is a kind of message as: Undisclosed recipients
However there is a way:
before this line:
Have attention: sender.Send occurs two times in your macro.
Hope this will help you.
|© 2010 Cardbox Software Limited|