How to Configure Database Mail | How to send Email from SQL SERVER | SQL

Поділитися
Вставка
  • Опубліковано 25 жов 2024
  • How to Configure Database Mail | How to send Email from SQL SERVER | SQL
    This session will help you understand the following concepts:
    1.) What is Database Mail in sql server.
    2.) How to configure the Database mail in sql server ?
    3.) How to create profile and multiple accounts in database mail in sql server.
    4.) How to send test email to Gmail Account from SQL SERVER with practical demo.
    5.) Which are those two settings in Gmail Account you need to check before sending mail from SQL SERVER.
    =====To Get More useful video's, please follow below links ======
    1.) To learn Learn SQL Server Concepts, visit below playlist
    • Learn SQL Server Concepts
    2.) To learn SQL Server Clauses and Keywords, please visit below playlist
    • SQL SERVER CLAUSE/KEYW...
    3.) For SSIS Tutorial, follow below playlist
    • SQL SERVER Integration...
    =======My Favorite Study Materials you can check out =====
    --Python Crash course :amzn.to/40gfFPr
    --SQL Programming :amzn.to/40gqK2T
    --MSBI Course : amzn.to/3Qxh94y
    --Power BI Course :amzn.to/3QgimMl
    Disclaimer : the above links may be amazon affiliate links, which means if you go through it,
    I may get some commission but please bear in mind, it won't charge you a single penny
    ..so if you like the content, keep watching and support my channel.
    =========Share, Support and Subscribe =========
    Subscribe to my UA-cam channel :
    / @learnwithmrajput
    Share and like the Facebook Page :
    / 212104595551052
    Thank you for Watching
    By SQL
    By SQL Training Session

КОМЕНТАРІ • 82

  • @akummutagha951
    @akummutagha951 3 роки тому +2

    Thanks for this beautiful presentation. The extra changes you made to the gmail account was very helpful, thanks.

  • @umamaheswar1071
    @umamaheswar1071 3 роки тому +1

    thanks for good tip to get mail from sql server.

  • @BestInTheWorld215
    @BestInTheWorld215 2 роки тому +3

    Appreciate your time & knowledge
    Please make a video how to create a SQL job for sending mails from query or stored procedure

  • @HelmanNgu-z5w
    @HelmanNgu-z5w 6 місяців тому +3

    Thanks for your content. Very informative. But unfortunately, I could not find the "less secure app access" option in my security tab.

  • @komanguy
    @komanguy Рік тому +1

    Thanks! Simple and effective.

  • @himanshubajaj9156
    @himanshubajaj9156 2 роки тому +3

    Thanks for providing great information :)

  • @aneesashaik1850
    @aneesashaik1850 2 роки тому +1

    Thank you iam crystal clear in this topic by watching this video

  • @Jass_aamu
    @Jass_aamu 2 роки тому +1

    Thank you so much ma'am you guide us completely

  • @luffyy8194
    @luffyy8194 3 роки тому +1

    Thanks I needed this only

  • @mohammedghouse751
    @mohammedghouse751 8 місяців тому +1

    This vidios are the greatest support medam

  • @mytrolls5866
    @mytrolls5866 3 роки тому +2

    Thank you so much for providing great info. I'm requesting to you please make a video how to create job for sending mails from query or stored procedure.

  • @luke2042
    @luke2042 Рік тому

    Thank you for making this video! You are a genius! :)

  • @ameen5788
    @ameen5788 4 місяці тому

    Thanks for the video, It was really helpful..I have a doubt what all extra changes to configured in outlook if we want to send the mail on outlook

  • @danielrachapudi9262
    @danielrachapudi9262 3 роки тому +1

    It's help to me ,tnq

  • @ravindranathkurmam5794
    @ravindranathkurmam5794 11 місяців тому

    Good explain. But i have doubt, In real time that Gmail settings are done by DBA job or windows or networking team job ?

  • @sonny23ization
    @sonny23ization 3 роки тому +2

    helps a lot, thanks!

  • @druvaraja8079
    @druvaraja8079 8 місяців тому

    thank you so much really , its really very helpful and for outlooks we need to change any setting ? Like gmail

  • @1991alpesh
    @1991alpesh 6 місяців тому

    I need your help, we have live database server & Reporting database server, I need auto backup and restore in reporting server , both server are connect on same network....

  • @VikasSharma-tm8qp
    @VikasSharma-tm8qp Рік тому +1

    working fine. but after some time, Less secure app settings are enabled by google.. my question is that without using a less secure app setting how to send mail.

    • @paragkambli6866
      @paragkambli6866 Рік тому

      I am not able to send mail using sql 2019.
      But I followed same process on sql 2012 and mail works fine.
      Microsoft has has not tested this tool properly.
      Configure app password in gmail and use same app password when configuring send mail account-- do not use original password or it will fail.
      I have not tested this process in SQL 2014, 2016, 2017.

  • @tonyettah
    @tonyettah Рік тому +1

    That was an awesome presentation and thank you for sharing your knowledge with the world. I'm having challenges with mine, I did all the configurations as instructed but still could not receive sql email on my Gmail.

  • @jahanvimathur6570
    @jahanvimathur6570 Рік тому

    Mam isse website mein koi database mein query enter kerti hu to uska bhi mail aa jayega kya

  • @kishoredas9171
    @kishoredas9171 Рік тому +1

    Sorry to say
    When I try every step I do not get any mail to my Gmail account.
    Pls advise

  • @hephzibah4023
    @hephzibah4023 Рік тому +1

    Hii Maam, I could'nt find the "less secure app" in my account. Can u pls help me with dis.

  • @ashokreddybasham7474
    @ashokreddybasham7474 9 місяців тому

    In SQL server Logs I don't have the option "Database Mail". please suggest what I have to do to get the option?

  • @mohammedghouse751
    @mohammedghouse751 3 місяці тому

    The db mail feature is not available.would u like to enable this feature.i have enabled ,but it is not working mam.is it work or not?
    Medam

  • @cbwelch4
    @cbwelch4 3 дні тому

    When you get the message 'invalid type' when yrying yo send an .xslx file from a directory to which you have access, but otherwise the test email works, how do you fix that? Anybody know?

  • @ravindraalluri
    @ravindraalluri Рік тому

    Hi,
    i am impressed your video. but i will do the same process. but i received any db mail in my gmail, i am asking db mail app installed my laptop are not?

  • @vbocanegra2009
    @vbocanegra2009 2 роки тому +1

    Maybe you can show us configure database mail sql server with an outlook 365 account. Thanks. Is this works with SSRS too?

    • @ameen5788
      @ameen5788 4 місяці тому

      I have a similar question. Were you able to configure an Outlook 365 account? If so, can you explain how to do it?

  • @misbakhan2758
    @misbakhan2758 2 роки тому +1

    Thank you somuch

  • @anoopyatheendran7298
    @anoopyatheendran7298 Рік тому +1

    Thankzz it helps

  • @mukulbiswas1945
    @mukulbiswas1945 Рік тому

    After May 30, 2022' Less secure app access' is no longer available in Gmail. any thought how to bypass this issues ?,

  • @mdobaydullah360
    @mdobaydullah360 Рік тому

    How to add Database Mail Under the sql server logs,please explain by using any video.Thanks.

  • @WorldInnovationn
    @WorldInnovationn 2 роки тому

    "To help keep your account secure, from May 30, 2022, ​​Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password."
    this is the new google update. In that case how can i enable "Less secure apps"? Or do you have any solution for gmail configuration? Im Using MS SQL 2017. Thank you

  • @abba9510
    @abba9510 2 роки тому

    Hi,
    I am getting this error even after changing gmail settings...
    The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 3 (2022-03-25T14:51:55). Exception Message: Cannot send mails to mail server. (The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. Learn more at). )

  • @KamalkPatil
    @KamalkPatil Місяць тому

    ma'am could be create video for the same for oracle 12c. i have my machine i installed the oracle 12c i need to mail configuration on the same. please help me....................

    • @LearnWithMRajput
      @LearnWithMRajput  Місяць тому

      @kamalkPatil : Hi. I Would like to create videos for oracle , but sorry i do not have knowledge on Oracle.

    • @KamalkPatil
      @KamalkPatil Місяць тому

      @@LearnWithMRajput no issues ma'am thanks for your response........

  • @vickyyagami
    @vickyyagami 3 роки тому

    Can we also send an email once backup runs and completed?

  • @vaishdanceandsing5512
    @vaishdanceandsing5512 2 роки тому +1

    How to configure schedule mail..

  • @pavankumarchahar
    @pavankumarchahar 2 роки тому

    Hi Mam I want SQL report automated generated through excel file to manager How I write my Stored Procedure and get result to excel and automatice mail to my mangers .

  • @mdalihaiderkhan9675
    @mdalihaiderkhan9675 2 роки тому +1

    Thanks didi

  • @techsupport2015
    @techsupport2015 3 роки тому +1

    How can view existing email setting?

  • @mukeshkhurana6642
    @mukeshkhurana6642 5 місяців тому

    Not able to see the option for allowing less security app

  • @susanpaul7145
    @susanpaul7145 4 роки тому +1

    Thank you

  • @ArunKumarBandari1845
    @ArunKumarBandari1845 2 роки тому +3

    Hi,
    Very much impressed with your session, It is very clear
    Could you please do a session on sending SQL DB health check report as mail notification in scheduled intervals

    • @LearnWithMRajput
      @LearnWithMRajput  2 роки тому +1

      Thanks for you comment @Arun. My schedule is getting tight nowdays but I will definitely make vedio of your ask once I got little bandwidth

  • @tttt-vi3mm
    @tttt-vi3mm Рік тому

    Топ! Просто, внятно и понятно. Спс.

  • @amolgaikwad6602
    @amolgaikwad6602 3 роки тому +1

    thanks

  • @mohamedaboobucker1540
    @mohamedaboobucker1540 Рік тому

    Hi, I made the configuration but im getting error " The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 "
    how to resolve it.

    • @barboso1
      @barboso1 11 місяців тому

      An important step was not mentioned. SQL Server Agent needs to have Mail system and Mail profile selected under Alert System

  • @אביחימסלאווי
    @אביחימסלאווי 2 роки тому

    But how can I send mail without the send test email option...?

  • @katlinsage9371
    @katlinsage9371 2 роки тому

    *Does this tool require smtp.?*

  • @luke2042
    @luke2042 Рік тому

    One thing that I noticed that was weird was that after I went in to 'Manage Existing Account' for Database Mail that the account password only showed 5 stars for my password despite it being longer. I wonder if that's normal. I can't get the mail service in Sql to send the test email. I'll keep trying and update you here if I can get it to work.

    • @luke2042
      @luke2042 Рік тому +2

      Update: Ok! I got this to work. For this to work with Gmail you have to go to the 2-step Verification settings on your Google Account and set an App Password. You use this in the SQL email settings in place of your gmail account password and it works.

    • @eliseovasquez4149
      @eliseovasquez4149 Рік тому

      ​@@luke2042gracias, estaba teniendo problemas y justo con eso lo pude solucionar

    • @prasanthmurali3144
      @prasanthmurali3144 10 місяців тому

      Thanks. This worked for me❤

  • @ghost.riddle
    @ghost.riddle 2 роки тому

    Just want to know how can we use it in SQL procedures

  • @pranauvkumar2692
    @pranauvkumar2692 2 роки тому

    Please post how to enable sql server Agent

    • @LearnWithMRajput
      @LearnWithMRajput  2 роки тому

      To enable sql server agent service, all you need to do is to open the sql server configuration manager, select "SQL Services". Once you select "sql services" option, you will get all sql services. select sql server agent service, right click on it and select enable option. this is enable your sql server agent services.

  • @santhoshpamoti1621
    @santhoshpamoti1621 3 роки тому

    i didnt get any database mail in management

  • @luke2042
    @luke2042 Рік тому

    Gmail changed so you can no longer turn on "Allow Less secure apps" as of May 30, 2022.

  • @kakarlanagajyothi4089
    @kakarlanagajyothi4089 3 роки тому

    The mail can not be send to the sender.

  • @pranauvkumar2692
    @pranauvkumar2692 2 роки тому

    it is showing in red mark