## 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