To send e-mails I want to use SMTP url with different api key's and for that want to set env variable dynamically.
For example, on the server the below code would be used to set my env variable for setting up a mail smtp.
Meteor.startup( function() {
process.env.MAIL_URL = "<Our URL here with dynamic api key value from Database>";
});
Because of this it sets env variable first time with single value and after that does not getting chanege once the value gets set. How can i change and modify the api key value to send e-mail? any help or suggestion with the implementation for the same will be appreciated.