• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 442
  • Last Modified:

Confirmation email keeps included the server name. Need to not show server name in email

I have a stored procedure in my SQL database that sends a confirmation email upon signup, from my website to a new customer. I am trying to get the email that is sent to stop including the name of our admin. Basically when the server sends the email for some reason it keeps showing in the reply name ('user admin' noreply@xxxxxx.com). It was just a random name given to our admin when it was setup, but its so not what I want the user to see in their email. I just want it to be the address like 'noreply@xxxxx.com' without the admin name included. Every other email address I have created does not include this ever. My developer is out of reach now and he set up the original email account.

I have pasted in the code from the SQL database if that helps. I am just lost on this, I am sure its easy but I am pulling an over-nighter before launch and I am overlooking something. I may be off and it doesn't even matter about SQL but below is the stored procedure, the end of the it at least.

 exec msdb.dbo.sp_send_dbmail  
               @profile_name =  'no-reply'
                ,  @recipients =  @c_email_address    
                ,  @subject =  'Signup Confirmation'  
                ,  @body =  @c_body
                ,  @from_address = 'no-reply@oursite.net'
0
jeffmeverett
Asked:
jeffmeverett
  • 2
1 Solution
 
Eugene ZCommented:
or you can adjust your dbmail profile to have  your sql server
or

include server name in the subject

for example:



Declare @MsgBody as varchar(200)
      SET @MsgSubject = @@servername +  ': Signup Confirmation'  

      EXEC msdb.dbo.sp_send_dbmail
      @profile_name = 'no-reply',
                 @recipients =  @c_email_address ,  
      @subject = @MsgSubject,
         @body =  @c_body
0
 
Anthony PerkinsCommented:
It was just a random name given to our admin when it was setup, but its so not what I want the user to see in their email. I just want it to be the address like 'noreply@xxxxx.com' without the admin name included.
Then change it in the Profile.
0
 
Eugene ZCommented:
more
Database Mail Configuration Wizard
 technet.microsoft.com/en-us/library/ms175951.aspx
0
 
jeffmeverettAuthor Commented:
The profile was simply changed in the Exchange Admin console and seems to be working. Will update if it becomes necessary.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now