Answers.Body: <p>You need to change the permissions to allow the public to view the mailing.</p>
  
  <p>This permission is called: 'CiviMail: view public CiviMail content'.  This should be assigned to the anonymous role (or all user roles).</p>
  
  <p>You also need to ensure that the mailing visibility is set to 'Public pages' for each mailing that you want to be available to view.  This setting is found under 'Publication'.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-30T20:57:20.207Z
Answers.Text: What if your mailing is set to publish on public pages, AND you've given the 'CiviMail: view public CiviMail content' permission to Anonymous (and registered) users?  I'm still getting a 403 response from my webserver.
  
  e.g. "GET /civicrm/mailing/view?id=34 HTTP/1.1" 403 15857 
  
  https://equality-tech.com/civicrm/mailing/view?id=34
Answers.UserDisplayName: Greg Rundlett
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-30T23:14:37.417Z
Answers.Text: Hi Greg, you are more likely to get a response if you post this as a new question.
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-31T23:59:28.877Z
Answers.Text: In my case, it turns out that I could only view the message after it was sent. The assigned ID of the public message is a lot different from the draft id. In other words, instead of being id=34 it was https://equality-tech.com/civicrm/mailing/view?reset=1&id=1331cff42bfc5ab5
Answers.UserDisplayName: Greg Rundlett
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-01T08:44:01.540Z
Answers.Text: Glad that you managed to resolve this.
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-02T10:52:14.453Z
Answers.LastActivityDate: 2016-06-02T10:52:14.453Z
Answers.UserDisplayName: William Mortada
Body: <p>If I click on the 'view in browser' link on a mailing sent via CiviMail I get to a page on the website that says 'Access denied'.</p>
  
  <p>Why is this not working?</p>
  
Tags: <civimail><permissions>
Title: 'View in browser' link on mailing gives 'Access denied' error
ThreadText: # 'View in browser' link on mailing gives 'Access denied' error
  
  (Asked by: username_0 on 2016-06-02)
  
  If I click on the 'view in browser' link on a mailing sent via CiviMail I get to a page on the website that says 'Access denied'.
  
  Why is this not working?
  
  **Tags:** civimail, permissions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-06-02. Score: 3 | Accepted answer
  
  You need to change the permissions to allow the public to view the mailing.
  
  This permission is called: 'CiviMail: view public CiviMail content'. This should be assigned to the anonymous role (or all user roles).
  
  You also need to ensure that the mailing visibility is set to 'Public pages' for each mailing that you want to be available to view. This setting is found under 'Publication'.
  
  > **Comments:**
  > **username_1**: What if your mailing is set to publish on public pages, AND you've given the 'CiviMail: view public CiviMail content' permission to Anonymous (and registered) users?  I'm still getting a 403 response from my webserver.  e.g. "GET /civicrm/mailing/view?id=34 HTTP/1.1" 403 15857   https://equality-tech.com/civicrm/mailing/view?id=34  
  > **username_0**: Hi username_1, you are more likely to get a response if you post this as a new question.  
  > **username_1**: In my case, it turns out that I could only view the message after it was sent. The assigned ID of the public message is a lot different from the draft id. In other words, instead of being id=34 it was https://equality-tech.com/civicrm/mailing/view?reset=1&id=1331cff42bfc5ab5  
  > **username_0**: Glad that you managed to resolve this.  
  
  ---
  
  