Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Memory Leak #33

Open
sandeepkdpl opened this issue Dec 16, 2019 · 0 comments
Open

Memory Leak #33

sandeepkdpl opened this issue Dec 16, 2019 · 0 comments

Comments

@sandeepkdpl
Copy link

sandeepkdpl commented Dec 16, 2019

Hi,

We are using below code for send email and there is some memory leak after every mail sent.

		mailCompose := email.NewHTMLMessage(strSubject, strMessage)
		
		mailCompose.From = mail.Address{Name: strSenderName, Address: strSenderEmail}
		aryTo := strings.Split(strTo, ";")
		mailCompose.To = aryTo
			
		if err := email.Send(strSMTPURL, auth, mailCompose); err != nil {
			errorHandler(err,"SendEmail : Error in send email.")
			return
		}

		mailCompose = nil

Not able to understand where is the issue. Can you just check is there any issue in my code or library for send email.

Thanks
Sandeep Kumar

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant