blatr (version 1.0.1)

blat: Send Emails Using 'Blat' for Windows

Description

This is a wrapper which calls 'Blat' to send emails. For documentation on the options, see http://www.blat.net/syntax/syntax.html. You should not use dashes as part of the argument names (as with 'Blat'), this is done for you: simply use name = value pairs as arguments. For some basic examples of the most commonly used arguments, see below.

Usage

blat(...)

Arguments

...
arguments to blat

Details

'Blat' can use a file as body of the email, in which case this is ordinarily the first argument in the 'Blat' command. However, blatr uses the named argument filename to specify this. Unnamed arguments do not work with blatr.

Examples

Run this code
## Not run: 
#    # With attachment
#    blat(f      = "Your Name <your@email.com>",
#         to     = "your-recipients@email.com",
#         s      = "The subject",
#         server = "server.address",
#         attach = "C:/path/to/attachment.txt",
#         body   = "The text you wish to send.")
# 
#    # With file as body
#    blat(f        = "Your Name <your@email.com>",
#         to       = "your-recipients@email.com",
#         s        = "The subject",
#         server   = "server.address",
#         attach   = "C:/path/to/attachment.txt",
#         filename = "C:/path/to/file/with/body.txt")
# 
#    # With username and password required.
#    blat(f        = "Your Name <your@email.com>",
#         to       = "your-recipients@email.com",
#         s        = "The subject",
#         server   = "server.address",
#         attach   = "C:/path/to/attachment.txt",
#         filename = "C:/path/to/file/with/body.txt",
#         u        = "username",
#         pw       = "password")
# ## End(Not run)

Run the code above in your browser using DataLab