Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1037125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:48:59+00:00 2026-05-16T14:48:59+00:00

I know how to send mail using an SMTP server specified in a mail

  • 0

I know how to send mail using an SMTP server specified in a mail profiler in the Database Mail of Sql Server.

You would do it like so:

EXEC msdb.dbo.sp_send_dbmail  @profile_name = 'profile',
                              @recipients = @email,
                              @body = @body,
                              @body_format = 'HTML',
                              @subject = @subject

But I don’t know how to send mail using Microsoft Exchange.

Update 1.
I believe that the main problem of my not being able to send mail through Exchange is that it’s using the NTLM-based authentication. And I most certainly don’t want my Sql Server running using my domain user credentials.

Update 2.
Thank you for your suggestions. Here’s the catch. I don’t have any control whatsoever over the corporate Exchange Server in question. So the only course of action would be to try to impersonate me on the Exchange endpoint somehow. Luckily, I can communicate with the Exchange via telnet ip-of-the-exchange-server 25.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:48:59+00:00Added an answer on May 16, 2026 at 2:48 pm
    • Use your Exchange Server’s IP as the STMP server in SQL Server and
    • configure Exchange Server’s SMTP connector to allow relaying for the IP of your SQL Server.

    Follow the link for instructions on how to do this with Exchange Server 2003 and 2007.

    Regarding your Update: If you do it like described above (allow relaying), you don’t need any credentials. Every process on your SQL Server’s machine will be allowed to send mail through your Exchange Server, without any authorization.

    Here are some general hints to debug an SMTP connection. To test this configuration, you could open a command line on your SQL Server and use telnet to create an SMTP session (you have to type the lines that do not begin with a number):

    C:\>telnet ip-of-your-exchange-server 25
    220 your.domain Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at  Thu, 2 Sep 2010 16:19:33 +0200
    EHLO heinzi
    250-your.domain Hello [192.168.3.1]
    250-TURN
    [...]
    250-XEXCH50
    250 OK
    MAIL FROM:<your@email.address>
    250 2.1.0 your@email.address....Sender OK
    RCPT TO:<some.other.address@outside.your.domain>
    

    After the last line, your receive either of two answers. This one means that everything is fine:

    250 2.1.5 some.other.address@outside.your.domain
    

    This one (or a similar one) means that you have still not configured your Exchange Server correctly:

    554 5.7.1 <some.other.address@outside.your.domain>: Relay access denied
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 510k
  • Answers 510k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You probably want to JOIN the tables: SELECT * FROM… May 16, 2026 at 5:02 pm
  • Editorial Team
    Editorial Team added an answer This will do what you want. Note, I have abstracted… May 16, 2026 at 5:02 pm
  • Editorial Team
    Editorial Team added an answer This transformation: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:strip-space elements="*"/>… May 16, 2026 at 5:02 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am using System.Net.Mail to to send mail. I do not know the type/version
I wish to send an email from my localhost machine (using PHPs mail function)
I am working with the lotus notes smtp server and i need to send
i want to send mail through iphone sdk i know there are lots of
Does all SMTP communication send emails between domains on port25? Is all communication unsecured?
I am using XAMPP on a localhost windows VISTA m/c...using gmail as smpt server
I am trying to use Java Mail to send emails with my program but
I'm trying to use javamail in a groovy script to send out an email
I'm trying to send an email via asp.net mvc2, and all works well on
I'm setting up my web server on Amazon's EC2. My site used to run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.