Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 SQL 2005 DBmail via SMTP server

Author  Topic 

sudhirbharti
Starting Member

16 Posts

Posted - 2009-02-13 : 08:32:38
I am trying to send email messages using the SQL 2005 DBmail via SMTP server.

but i am getting the followin error:

The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 13 (2009-02-13T04:46:42). Exception Message: Cannot send mails to mail server. (Syntax error in parameters or arguments. The server response was: Syntax: EHLO hostname).

any ideas?

heavymind
Posting Yak Master

115 Posts

Posted - 2009-02-13 : 08:40:51
any more details?
Too few information provided to make any thought...
How are you trying to send mail? what are the dbmail settings?

Thanks, Vadym
MCITP DBA 2005/2008
Chief DBA at http://www.db-staff.com
Go to Top of Page

sudhirbharti
Starting Member

16 Posts

Posted - 2009-02-13 : 08:56:08
thanks for the quick reply

I have created the account from the sqlserver managment-->database mail-->configure database mail-->create new profile-->add new account-->fill the correct smtp server with the 25 port number, with the user name and password-->click on finish button

note - > the same smtp address with the same user is working from the C# code.

now when i click on the send test mail link button from the database mail, it prompt the message that it will take time to send the message.

now when i check the database mail log. i found the following error.

The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 13 (2009-02-13T04:46:42). Exception Message: Cannot send mails to mail server. (Syntax error in parameters or arguments. The server response was: Syntax: EHLO hostname).
Go to Top of Page
   

- Advertisement -