Description Usage Arguments Details Examples
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.
1 |
... |
arguments to blat |
'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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.