SendMail 1.0.1

Integraciai hamar

Anhrajesht e IServiceCollection-um(DI-um) grancel AddMailServices - y poxancelov

- GraphSettingsModel-y


orinak
"
    Display name : cryllex app

    Application (client) ID : b0901ddf-a179-48c6-9e96-0d12562773fa

    Object ID : b2e397e8-1931-483c-9204-e904eb870f4a

    Directory (tenant) ID : a6afd79c-814a-4c5f-97b9-11097d0682b2

"
    services.AddMailServices(new GraphSettingsModel
        {
             ClientId = "b0901ddf-a179-48c6-9e96-0d12562773fa", /// Application (client) ID
             ClientSecret = "8b8Q~X1mMZ7Q~4b3b5f6b3c7f4e5f6g7h8i9j0k1l2m3n4o5p" /// Certificates & secrets -i value-n a
             TenantId = "a6afd79c-814a-4c5f-97b9-11097d0682b2", /// Directory (tenant) ID
             AppId = "b2e397e8-1931-483c-9204-e904eb870f4a",   /// Object ID
             GraphUserScopes = [ "https://graph.microsoft.com/.default" ]
        });
"

IMailService-i metodnery

    1. SetFrom(string from);
        -ete nshum eq "from" hamakargy stugelu e tvyal ogtatery grancvac e app-um
        -ere nshvac che app-i vra grancvacneri mejic man e galis ete support anunov user ka vercnum a dran ete che apa arajin patahacin
   
    2. SetTo(List<string> to);
        - uxxarkvoxneri hascenery mek ev aveli partadir e(lrelayn cc)

    3. SetCC(List<string> cc);
        - uxxarkvoxneri hascenery voronc petq e uxarkel cc

    4. SetBCC(List<string> bcc);
        - uxxarkvoxneri hascenery voronc petq e uxarkel bcc

    5. SetSubject(string subject);

    6. SetBody(string body); 

    7. SetHtmlBody(string html); 

    8. SetFile(byte[] file, string fileName);
        - fileName -y *.png, *.jpg ev ayln

    9. SetFile(string filePath);

    10. SendMailModel GetSendMailModel();
        - het e veradarcvuym uxxarkvox message-y 

    11. Task<SendMailInfo> SendMessage();
        - set anhrajesht metodnery arjeqavorveluc heto 
    
    12. Task<SendMailInfo> SendMessage(SendMailModel model);
        - ete anhrajeshtutyun ka  SendMailModel -y inqnuruyn patrastelu
  1. Petq e grancel ofice365-um orinak "support@mindalay.com" hascen u mek angam mut gorcel ayd hasceov (OutLook-um)

  2. "support@mindalay.com"-ov mutq gorcel https://portal.azure.com/

  3. App Registrations-um -> New Registration ev sarqel nor App mer depqum "MindalaySupport"

    3.1. stexcac app-i vra avelacnel Api permissions - Microsoft Graph

     - Mail.Send(application)
     - User.Read.All(application)
    

    3.2. Certificates & secrets bajnum stexcel -> New client secret ev "Value"-n pahel client secretn a

  4. mindalay.com -i adminy petq a mtni tvyal App-i orinak "MindalaySupport" u lriv permissions-nery "Grant admin consent for mindalay inc" aktivacni

Steps to Set Up the Mailbox for supporter@neodva.com

  1. Log in to the Microsoft 365 Admin Center Go to the Microsoft 365 Admin Center. Sign in with the admin account for your domain. Navigate to the Users Section In the left-hand menu, select Users > Active Users.

  2. Find the User In the list of active users, locate supporter@neodva.com. If the user does not exist, create a new one: Click the Add a user button. Fill in the user information (name, email, password, etc.).

  3. Assign a License to the User Select supporter@neodva.com from the list of users. A user panel will open. Navigate to the Licenses and Apps section. Choose the appropriate subscription (e.g., Microsoft 365 Business Standard, Microsoft 365 E3, or any other subscription that includes Exchange Online). Click Save Changes.

  4. Verify Mailbox Activation After assigning the license, the mailbox will be automatically activated. To confirm: Go to the Exchange Admin Center: In the Microsoft 365 Admin Center, select Show All > Exchange from the left-hand menu. Navigate to Recipients > Mailboxes. Look for supporter@neodva.com in the list. If the user does not appear immediately, wait for the activation process to complete (this usually takes a few minutes).

  5. Verify Mailbox Access Go to Outlook Online. Sign in using the supporter@neodva.com account credentials. Confirm that the mailbox is accessible and that you can send and receive emails. Let me know if further assistance is needed! ??

No packages depend on SendMail.

Version Downloads Last updated
1.0.1 26 8/29/2025
1.0.0 17 8/29/2025