Home

Cardbox

 
Cardbox > Support > Knowledge Base ...

Customising Cardbox's email commands

The File > Send As Email and Tools > Bulk Email commands perform straightforward email functions, but sometimes you will want to modify their behaviour to use additional features of the email system. The steps are:

  1. Record the command as part of a macro.
  2. Edit the macro.
  3. Make changes to customise the macro.

The online help for the email commands gives several examples of changes that you can make. Here are a couple more (they will be included in the online help in future builds of Cardbox).

Using a different identity when sending emails

The built-in email commands require you to have set up your email details, including the "From" address, using Tools > Options » Email. If you record them as macros, those macros will use whatever email details are in force at the time you use them.

If you want to send emails sometimes from one address and sometimes from another, edit your recorded macro and replace the line at the beginning of the macro that says

Set sender=EmailSender

with one that looks something like this:

Set sender=EmailSender("My Other Identity <no-one@nowhere.com>")

If the different identity uses a different SMTP server or user name or password then you can modify the line to reflect that also: see the help file documentation for more information about the EmailSender object.

Sending yourself a copy of the sent email

Cardbox doesn't store your sent emails anywhere. If you want to keep a record of emails that have been sent then you may want to add yourself to the list of recipients.

File > Send As Email

Look for the line that says

sender.Send

and insert a line just before it that looks like this:

sender.AddRecipient "myaddress@mydomain.com"

where you should replace the "myaddress..." text with your actual email address.

Tools > Bulk Email (customised message for each recipient)

Replace the line in the macro that says

'02

with a line that looks like this:

sender.AddRecipient "myaddress@mydomain.com"

where you should replace the "myaddress..." text with your actual email address.

Tools > Bulk Email (identical message to every recipient)

Replace the line that says

'01

with a line that looks like this:

sender.AddRecipient "myaddress@mydomain.com"

where you should replace the "myaddress..." text with your actual email address.

 

© 2016 Martin Kochanski
"Cardbox" is a registered trademark.
 Top of page