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
 SQL Server Administration (2005)
 sp_send_dbmail

Author  Topic 

helixpoint
Constraint Violating Yak Guru

291 Posts

Posted - 2008-10-20 : 15:57:58
How do I change the from email? Do you have to use the email address in the profile?

Dave
Helixpoint Web Development
http://www.helixpoint.com

mcrowley
Aged Yak Warrior

771 Posts

Posted - 2008-10-20 : 16:54:43
The from address comes from the DBMail Profile. You can change it there, but not on an email to email basis.
Go to Top of Page

helixpoint
Constraint Violating Yak Guru

291 Posts

Posted - 2009-05-20 : 15:32:26
I need it to be more dynamic?

Dave
Helixpoint Web Development
http://www.helixpoint.com
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2009-05-20 : 16:14:20
Set up all the profiles you need in advance and pick the one you need when you run sp_send_dbmail.
Go to Top of Page

helixpoint
Constraint Violating Yak Guru

291 Posts

Posted - 2009-05-20 : 18:29:01
I can't do that because the groups are created in the web app with different emails

Dave
Helixpoint Web Development
http://www.helixpoint.com
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2009-05-20 : 19:43:47
Then this procedure is not the solution for you. There are a number of free COM and .Net components that can send email and let you customize the to and from display.
Go to Top of Page
   

- Advertisement -