Dagger
Search

send-email

This module send a email using gomail package

Installation

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

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
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)
}