You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SMTP configuration takes a username and password. In ACS, it would be connectionstring and secret key. Is there a direct mapping between these fields? Or, is there a way to add support to create the email client using the connectionstring?
Sample code with Azure ACS would look like:
const{ EmailClient }=require("@azure/communication-email");// This code retrieves your connection string from an environment variable.constconnectionString=process.env['COMMUNICATION_SERVICES_CONNECTION_STRING'];constclient=newEmailClient(connectionString);asyncfunctionmain(){constemailMessage={senderAddress: "[email protected]",content: {subject: "Test Email",plainText: "Hello world via email.",},recipients: {to: [{address: "<to_email>"}],},};constpoller=awaitclient.beginSend(emailMessage);constresult=awaitpoller.pollUntilDone();}main();
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The SMTP configuration takes a username and password. In ACS, it would be connectionstring and secret key. Is there a direct mapping between these fields? Or, is there a way to add support to create the email client using the connectionstring?
Sample code with Azure ACS would look like:
Beta Was this translation helpful? Give feedback.
All reactions