Solved

Sending email from SQL Server Database

Posted on 2015-01-14
5
31 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
[X]
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
  • 3
  • 2
5 Comments
 
LVL 34

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 34

Expert Comment

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

Author Comment

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

Expert Comment

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

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

628 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