-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathgm_insert_message.Rd
55 lines (51 loc) · 1.47 KB
/
gm_insert_message.Rd
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gm_message.R
\name{gm_insert_message}
\alias{gm_insert_message}
\title{Insert a message into the gmail mailbox from a mime message}
\usage{
gm_insert_message(
mail,
label_ids,
type = c("multipart", "media", "resumable"),
internal_date_source = c("dateHeader", "recievedTime"),
user_id = "me"
)
}
\arguments{
\item{mail}{mime mail message created by mime}
\item{label_ids}{optional label ids to apply to the message}
\item{type}{the type of upload to perform}
\item{internal_date_source}{whether to date the object based on the date of
the message or when it was received by gmail.}
\item{user_id}{gmail user_id to access, special value of 'me' indicates the authenticated user.}
}
\description{
Insert a message into the gmail mailbox from a mime message
}
\examples{
\dontrun{
gm_insert_message(gm_mime(
From = "[email protected]", To = "[email protected]",
Subject = "hello", "how are you doing?"
))
}
}
\references{
\url{https://developers.google.com/gmail/api/reference/rest/v1/users.messages/insert}
}
\seealso{
Other message:
\code{\link{gm_attachment}()},
\code{\link{gm_delete_message}()},
\code{\link{gm_import_message}()},
\code{\link{gm_messages}()},
\code{\link{gm_message}()},
\code{\link{gm_modify_message}()},
\code{\link{gm_save_attachments}()},
\code{\link{gm_save_attachment}()},
\code{\link{gm_send_message}()},
\code{\link{gm_trash_message}()},
\code{\link{gm_untrash_message}()}
}
\concept{message}