Golang net/smtp.CRAMMD5Auth() function example
package net/smtp
Golang net/smtp.CRAMMD5Auth() function usage example
...
crammd5Auth := smtp.CRAMMD5Auth("username", "password")
// send out the email
err := smtp.SendMail(smtpHost+":"+strconv.Itoa(emailConf.Port), //convert port number from int to string
crammd5Auth,
sender,
receivers,
message,
)
...
Reference :
Advertisement
Something interesting
Tutorials
+11.1k Golang : Web routing/multiplex example
+9.3k Golang : How to get garbage collection data?
+9.8k Golang : Get current, epoch time and display by year, month and day
+4.6k JavaScript : Rounding number to decimal formats to display currency
+15.3k Golang : How to get Unix file descriptor for console and file
+33.6k Golang : How to check if slice or array is empty?
+11.6k Golang : Surveillance with web camera and OpenCV
+14.2k Golang : Chunk split or divide a string into smaller chunk example
+9.8k Golang : Qt get screen resolution and display on center example
+15.8k Golang : Get digits from integer before and after given position example
+10.6k Android Studio : Simple input textbox and intercept key example