Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

sql db email, sql 2005, sql 2008

Posted on 2010-09-02
5
Medium Priority
?
557 Views
Last Modified: 2012-08-14
i have a query written with sql db email

EXEC msdb.dbo.sp_send_dbmail
       @recipients=@customeremail,
       @replyto_address = @storeemail,
     @subject = 'Thank You' ,
     @body = @tableHTML,
     @body_format = 'HTML'

i am getting an error

Msg 8145, Level 16, State 1, Procedure sp_send_dbmail, Line 0
@replyto_address is not a parameter for procedure sp_send_dbmail.


can some onehelp with this.
0
Comment
Question by:romeiovasu
[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 4

Expert Comment

by:MPKR
ID: 33591060
This parameter is not a valid one. You cant use it. Youmust configure the account to do this.
 
check out this page> http://blogs.msdn.com/b/suhde/archive/2009/07/12/how-to-configure-sql-server-database-mail-to-send-email-using-your-windows-live-mail-account-or-your-gmail-account.aspx
 
0
 

Author Comment

by:romeiovasu
ID: 33591318
but here it shows how to configure live email and gmail.com
0
 
LVL 4

Accepted Solution

by:
MPKR earned 1500 total points
ID: 33591348
It shows how to set up database email. This is what is neccesary to use it. And to configure it you have to specify an realexisting Email account to send. There you can define the reply to address. Only there, not when sending the mail out usingthis account.
The used email providers there are just samples. If you do not have access to the Database email configuration you should talk to your administrator person to do it.
0
 

Author Closing Comment

by:romeiovasu
ID: 33596619
i didnt get it what i was looking for. i have already configured perfectly. all i wanted was to pass variable to reply to address i no it cannot be happend but i was looking some other alternatives.
0
 
LVL 4

Expert Comment

by:MPKR
ID: 33634752
You can write your own Send_EMAIL Procedure and include a reply_to parameter. Inside of the procedure you must check (SELECT CASE) what value was passed and depending on this value select another SQL DataBase PROFILE from you configuration. Inside of the different configurations (Profiles) select different Accounts (including REPLY TO addresses).
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
In this article I will describe the Detach & Attach 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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

705 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