I am using SQL Server 2008 R2. When I execute sp_send_dbmail I can't change the FROM_ADDRESS from the DEFAULT ONE that our DBA specified. Why is there this parameter if it doesn't work or How do I specify a "custom" FROM_ADDRESS?
Tell me more
×
Stack Overflow is a question and answer site for
professional and enthusiast programmers. It's 100% free, no registration required.
Did you try in this exact format:
? Also, according to the documentation, you need to be sure that your SMTP server will accept an override - it may be getting rejected at the server and has nothing to do with your code. Finally, it is possible that under 2005 compatibility mode, the |
|||||||
|
@from_address
hasn't been changed? – Aaron Bertrand Apr 15 at 20:23