Dagger
Search

send-email

This module has been generated via dagger init and serves as a reference to basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them, as needed. They demonstrate usage of arguments and return types using simple echo and grep commands. The functions can be called from the dagger CLI or from one of the SDKs.

The first line in this comment block is a short description line and the rest is a long description with more detail on the module's purpose or usage, if appropriate. All modules should have a short description.

Installation

dagger install github.com/ernesto27/daggerverse/send-email@v0.0.1

Entrypoint

Return Type
SendEmail
Example
func (m *myModule) example() *SendEmail  {
	return dag.
			SendEmail()
}
@function
def example() -> dag.SendEmail:
	return (
		dag.send_email()
	)
@func()
example(): SendEmail {
	return dag
		.sendEmail()
}

Types

SendEmail 🔗

sendEmail() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
fromString !-No description provided
toString !-No description provided
subjectString !-No description provided
bodyString !-No description provided
hostString !-No description provided
portInteger !-No description provided
usernameString !-No description provided
passwordString !-No description provided
Example
dagger -m github.com/ernesto27/daggerverse/send-email@a882dc829ff356a991739dfc5c2ced1a274b9617 call \
 send-email --from string --to string --subject string --body string --host string --port integer --username string --password string
func (m *myModule) example(ctx context.Context, from string, to string, subject string, body string, host string, port int, username string, password string) string  {
	return dag.
			SendEmail().
			SendEmail(ctx, from, to, subject, body, host, port, username, password)
}
@function
async def example(from_: str, to: str, subject: str, body: str, host: str, port: int, username: str, password: str) -> str:
	return await (
		dag.send_email()
		.send_email(from_, to, subject, body, host, port, username, password)
	)
@func()
async example(from: string, to: string, subject: string, body: string, host: string, port: number, username: string, password: string): Promise<string> {
	return dag
		.sendEmail()
		.sendEmail(from, to, subject, body, host, port, username, password)
}