Solved

Sending email from SQL Server Database

Posted on 2015-01-14
5
21 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 32

Accepted Solution

by:
Stefan Hoffmann earned 500 total points
Comment Utility
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
Comment Utility
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 32

Expert Comment

by:Stefan Hoffmann
Comment Utility
Ask your Exchange admin for help.
0
 

Author Comment

by:JayHine
Comment Utility
still not solved
0
 
LVL 32

Expert Comment

by:Stefan Hoffmann
Comment Utility
Yup, we cannot do much about a invalid certificate used in your environment..
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

     When we have to pass multiple rows of data to SQL Server, the developers either have to send one row at a time or come up with other workarounds to meet requirements like using XML to pass data, which is complex and tedious to use. There is a …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now