April 13, 2010 at 1:10 pm
I am using Sp_Send_DbMail to send the mails. Everything works fine. But When we try to change the from address from code it wont allow and also through the error "@from_address is not a parameter of Sp_Send_DbMail ". How can I set Dynamic from address in Sp_Send_DbMail. If you know pl sharewith me.
Thanks
Ananth
April 13, 2010 at 1:15 pm
sananthakumar (4/13/2010)
I am using Sp_Send_DbMail to send the mails. Everything works fine. But When we try to change the from address from code it wont allow and also through the error "@from_address is not a parameter of Sp_Send_DbMail ". How can I set Dynamic from address in Sp_Send_DbMail. If you know pl sharewith me.Thanks
Ananth
According to BOL, @from_address isn't a parameter for sp_send_dbmail.
The Redneck DBA
April 13, 2010 at 1:19 pm
You have to configure a different profile for each sender.
April 14, 2010 at 7:31 am
sananthakumar (4/13/2010)
I am using Sp_Send_DbMail to send the mails. Everything works fine. But When we try to change the from address from code it wont allow and also through the error "@from_address is not a parameter of Sp_Send_DbMail ". How can I set Dynamic from address in Sp_Send_DbMail. If you know pl sharewith me.Thanks
Ananth
It will be fine , when you send mail then change disply name before that by query, and then send mail.
Creating new profile every time is not good.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply