Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Sending email from SQL Server Database

Posted on 2015-01-14
5
24 Views
Last Modified: 2015-04-30
We are having problems sending mail from SQL Server Database Mail.
 
The error written in the SQL log is:
 
"The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2015-01-14T11:06:06). 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.1 Client was not authenticated)."

Could I set up a relay to make this work? If so how?
0
Comment
Question by:JayHine
  • 3
  • 2
5 Comments
 
LVL 33

Accepted Solution

by:
ste5an earned 500 total points
ID: 40548896
Generally speaking: Yes. But without knowing the cause of your problem: No.

Your error code points to Exchange as MTA. Thus check what kind of authentication it needs and what you have setup in SQL Server. Check your account configuration:

Account Settings
0
 

Author Comment

by:JayHine
ID: 40553158
Hi,

Thank you for your reply!

Unfortunately it is still not working

Getting the error below.

Error,The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2015-01-16T10:04:34). Exception Message: Cannot send mails to mail server. (The remote certificate is invalid according to the validation procedure.).
0
 
LVL 33

Expert Comment

by:ste5an
ID: 40553339
Ask your Exchange admin for help.
0
 

Author Comment

by:JayHine
ID: 40593194
still not solved
0
 
LVL 33

Expert Comment

by:ste5an
ID: 40593254
Yup, we cannot do much about a invalid certificate used in your environment..
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sql 2014,  lock limit 5 36
stress test workstation for SQL 2016 for CPU-specific evaluation 3 22
Re-appearing SQL Server Agent jobs 7 28
query optimization 6 13
I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question