Thanks!
JohnYes it does work with an Exchange Server as long as your exchange server is config'd to support SMTP.
I'm no exchange expert so I can't help you do this but we test Database Mail with Exchange as one of the mail platforms.
-Euan
Thanks!
JohnYes it does work with an Exchange Server as long as your exchange server is config'd to support SMTP.
I'm no exchange expert so I can't help you do this but we test Database Mail with Exchange as one of the mail platforms.
-Euan
I'm trying to send mail through DTS Send Mail Task in the final release of VS 2005 however i'm getting this error "Mailbox unavailable.The server response was:5.7.1 Unable to relay for <email adress>.
I do not have exchange server installed. The smtp adress is correct. So what could be the problem?
I appreciate your help
Thanks
Network issues
Incorrect address
DNS failure
Authentication failure
etc...
The list of things that it COULD be are endless. Presumably you think that the problem exists somewhere in SSIS. Have you removed SSIS from the equation and see if it works then?
There isn't really enough information in your post to diagnise what the problem may be.
-Jamie
|||Christina,
|||
has anything changed in the configuration of the ssis send mail task? because in the beta version (before i moved to the final release) it was sending normally without any errors.
i can ask the smtp provider to allow relaying but that would be risky as you said.
thanks and happy new year
|||i checked with the mail server administrator and relaying from the email address i'm using is allowed. so it's not an issue of relaying.
i also tested sending a test email from command prompt using smtp commands and it sent the mail normally. however from sql i still get the relaying error.
any clue?
thanks
|||problem is solved. i used a different smtp server and unchecked the "use windows authentication" in the smtp connection manager. i thought it wouldn't matter since i didnt have exchange server. but it seems to have counted.
thanks to all
Christina
I am using the SQL server 2000 along with Microsoft Reporting Services. I need to configure SQLReporting services for sending reports through emails using subscription
services. I don't have any SMTP server located in my local network or on Reporting server. We are using external SMTP server for sending & receiving mails through outlook express. How to configure the RSReportServer.config file for the same?
If we refer documentation available in Reporting Service Books Online, it states that we
can configure using SMTPAuthenticate settings by using "SENDUSERNAME" & "SENDPASSWORD" in rsconfig file. But If We Refer the MSDN online it states SMTPAuthenticate authorization is not supported.
Please help us in matter to solve the problem. We are unable to send mails using reporting service by using the settings stated in the Reporting Service Books Online.
It gives error "The e-mail address of one or more recipients is not valid" due to relaying denied by mail server which requires authentication.
Please solve the following problems.
1. Whether it is possible to use SMTP server outside the network or not?
2. If yes what is the method of configuring SMTP services?
3. How can we send username & password to authenticate the user?
4. Send us sample RSReportServer.config if possible for the same.
Thanking you
I suppose no one wants to answer my question or no one knows the answer ? Well after the research i come to know that the my remote SMTP server do not allow relaying on server. So enabling relaying can solve the problem. But it can create SPAM mail problems.
I d't fine any method to send username & password to smtp server.Any body knows how to send user authorization & password to SMTP server for reporting service mails. ?
|||Hi,
I saw your post today when I was doing a little bit reseach about this problem. Because my server was keep giving me the same reply. I was able to sent e-mail someone in our domain but not the outside world.
Luckly I found the answer. You need to add some authentication details to send an e-mail.
Here is my SMTP e-mail function. I am sure you will spot the missing codes immediately
Public Function sendMail(ByVal strFromEmail As String, ByVal strToEmail As String, ByVal strSubject As String, ByVal strMessage As String) As Boolean
Try
Dim msg As New System.Net.Mail.MailMessage
Dim addressFrom As New System.Net.Mail.MailAddress(strFromEmail)
Dim addressTo As New System.Net.Mail.MailAddress(strToEmail)
msg.From = addressFrom
msg.To.Add(addressTo)
msg.Subject = strSubject
msg.Body = strMessage
Dim smtp As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
smtp.Host = "MAIL HOST"
smtp.Port = 25
Dim basicAuthenticationInfo As New System.Net.NetworkCredential("USERNAME", "PASSWORD")
smtp.UseDefaultCredentials = False
smtp.Credentials = basicAuthenticationInfo
'smtp.Attachments.Add(New System.Web.Mail.MailAttachment("c:\pic1.jpg"))
smtp.Send(msg)
Catch ex As Exception
MsgBox(ex.Message)
Debug.Print(ex.Message)
End Try
End Function
I am using the SQL server 2000 along with Microsoft Reporting Services. I need to configure SQLReporting services for sending reports through emails using subscription
services. I don't have any SMTP server located in my local network or on Reporting server. We are using external SMTP server for sending & receiving mails through outlook express. How to configure the RSReportServer.config file for the same?
If we refer documentation available in Reporting Service Books Online, it states that we
can configure using SMTPAuthenticate settings by using "SENDUSERNAME" & "SENDPASSWORD" in rsconfig file. But If We Refer the MSDN online it states SMTPAuthenticate authorization is not supported.
Please help us in matter to solve the problem. We are unable to send mails using reporting service by using the settings stated in the Reporting Service Books Online.
It gives error "The e-mail address of one or more recipients is not valid" due to relaying denied by mail server which requires authentication.
Please solve the following problems.
1. Whether it is possible to use SMTP server outside the network or not?
2. If yes what is the method of configuring SMTP services?
3. How can we send username & password to authenticate the user?
4. Send us sample RSReportServer.config if possible for the same.
Thanking you
I suppose no one wants to answer my question or no one knows the answer ? Well after the research i come to know that the my remote SMTP server do not allow relaying on server. So enabling relaying can solve the problem. But it can create SPAM mail problems.
I d't fine any method to send username & password to smtp server.Any body knows how to send user authorization & password to SMTP server for reporting service mails. ?
|||Hi,
I saw your post today when I was doing a little bit reseach about this problem. Because my server was keep giving me the same reply. I was able to sent e-mail someone in our domain but not the outside world.
Luckly I found the answer. You need to add some authentication details to send an e-mail.
Here is my SMTP e-mail function. I am sure you will spot the missing codes immediately
Public Function sendMail(ByVal strFromEmail As String, ByVal strToEmail As String, ByVal strSubject As String, ByVal strMessage As String) As Boolean
Try
Dim msg As New System.Net.Mail.MailMessage
Dim addressFrom As New System.Net.Mail.MailAddress(strFromEmail)
Dim addressTo As New System.Net.Mail.MailAddress(strToEmail)
msg.From = addressFrom
msg.To.Add(addressTo)
msg.Subject = strSubject
msg.Body = strMessage
Dim smtp As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
smtp.Host = "MAIL HOST"
smtp.Port = 25
Dim basicAuthenticationInfo As New System.Net.NetworkCredential("USERNAME", "PASSWORD")
smtp.UseDefaultCredentials = False
smtp.Credentials = basicAuthenticationInfo
'smtp.Attachments.Add(New System.Web.Mail.MailAttachment("c:\pic1.jpg"))
smtp.Send(msg)
Catch ex As Exception
MsgBox(ex.Message)
Debug.Print(ex.Message)
End Try
End Function
Is there any workaround on this error?
Thanks.
Artem
Check this thread:
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1905071&SiteID=17
Is there any workaround on this error?
Thanks.
Artem
Check this thread:
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1905071&SiteID=17
SQL Configure,Sql server