function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to Edit Contact Email Under Construction VF Page?

We have built an "Under Construction" Page.
User-added image
But the Contact Email when clicking on Contact Us is not correct.
The Email Parameter is

<apex:param value="mailto:{!$Site.AdminEmailAddress}"/>

It should be the "Contact Site Email Address", but we have no Sites in the org.
There is a Remote Site, but there is no Contact option on Remote Sites.

The Contact Email Address is Wrong and we need to modify it.

Does anyone know how we can modify the contact email address?


SonamSonam (Salesforce Developers) 
You need to go to the Setup > Develop > Sites > Edit the Site you are using > Edit the email addres sof the site contact as this is the address it is pulling for the variable "mailto:{!$Site.AdminEmailAddress}"/

Hi Sonam,

Thanks for your reply.

But as I explained on the post. We have no Sites. So I can not reach Sites Contact

User-added image

Does anyone know how to modify mailto:{!$Site.AdminEmailAddress} when there is no Site on your org?

I can not figure out how to edit the email address? and currently it takes a wrong email address.


SonamSonam (Salesforce Developers) 
Sorry to have missed that detail, however, I think that the fields you are using:
$Site.CurrentSiteUrl, $Site.AdminEmailAddress are only applicable to sites and not remote sites:

Hi Sonam,

Thanks for your answer. 

Remote Sites have no contact, so no related to the issue neither :-(

I´ve just realized that the email address Salesforce uses as
 when there is no Site, it´s the email address from the user who created the VF Page.

Does anyone know if this can be modified?


Candace Phelps 2Candace Phelps 2
Hello V QR,

I know this is an old thread but our team has also run into this issue so here's what we've done to solve it:
1) Create a custom label with the email address we want to reference
2) Replace the standard variable (!$Site.AdminEmailAddress) with a reference to the custom label (!$Label.Contact_Us_Email).

Simple solution in hindsight but it took me over a day to come to this while trying to chase down how to edit the standard Site.AdminEmailAddress and having no luck finding a solution. I also raised a case with Salesforce Support but haven't received a solution from them yet. Hope this helps someone else! :)