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
Name | Type | Default Value | Description |
---|---|---|---|
from | String ! | - | No description provided |
to | String ! | - | No description provided |
subject | String ! | - | No description provided |
body | String ! | - | No description provided |
host | String ! | - | No description provided |
port | Integer ! | - | No description provided |
username | String ! | - | No description provided |
password | String ! | - | 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)
}