Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have "Forgotten password?" send an email to the user and let the user change password #79

Closed
BredeFK opened this issue Mar 28, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@BredeFK
Copy link
Collaborator

BredeFK commented Mar 28, 2019

https://stackoverflow.com/questions/1102781/best-way-for-a-forgot-password-implementation/1102817#1102817

import ( 
    "github.com/socketlabs/socketlabs-go/injectionapi"
    "github.com/socketlabs/socketlabs-go/injectionapi/message"
)

func main() {
    client := injectionapi.CreateClient(000001, "YOUR-API-KEY")

    basic := message.BasicMessage{}

    basic.Subject = "Sending a Basic Message"
    basic.HtmlBody = "<html>This is the Html Body of my message.</html>"
    basic.PlainTextBody = "This is the Plain Text Body of my message."

    basic.From = message.EmailAddress{EmailAddress: "from@example.com"}
    basic.ReplyTo = message.EmailAddress{EmailAddress: "replyto@example.com"}

    //A basic message supports up to 50 recipients and supports several different ways to add recipients
    basic.AddToEmailAddress("recipient@example.com")   //Add a To address by passing the email address
    basic.AddCcEmailAddress("recipient2@example.com")  //Add a CC address by passing the email address and a friendly name
    basic.AddBccEmailAddress("recipient3@example.com") //Add a BCC address by passing the email address

    //Send the message
    _, _ = client.SendBasic(&basic)
} 
@BredeFK BredeFK added the enhancement New feature or request label Mar 28, 2019
@BredeFK BredeFK changed the title Have Forgotten password? send an email to the user and let the user change password Have "Forgotten password?" send an email to the user and let the user change password Mar 28, 2019
@BredeFK BredeFK self-assigned this Mar 29, 2019
@BredeFK
Copy link
Collaborator Author

BredeFK commented Apr 3, 2019

fixed

@BredeFK BredeFK closed this as completed Apr 3, 2019
BredeFK pushed a commit that referenced this issue Apr 3, 2019
Beta brede - new - implemented #79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant