sendmail_options: Set package specific options.

Description Usage Arguments Details Value Author(s)


Specify global sendmail options so that subsequent calls to sendmail() do not have to set them in the control argument.





Any options can be defined, using name=value or by passing a list of such tagged values. However, only the ones below are used in base sendmailR.


List of options:

  • smtpServerSMTP server to contact. This can either be the mail server responsible for the destination addresses domain or a smarthost provided by your ISP or institution. SMTP AUTH is currently unsupported.

  • smtpPortSMTP port to use. Usually 25 but some institutions require the use of the submission service (port 587).

  • verboseShow detailed information about message submission. Useful for debugging.


For sendmail_options(), a list of all set options sorted by name. For sendmail_options(name), a list of length one containing the set value, or 'NULL' if it is unset. For uses setting one or more options, a list with the previous values of the options changed (returned invisibly).


Olaf Mersmann

Search within the sendmailR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.