Home > Microsoft Exchange 2007, Programming > SmtpException: Mailbox Unavailable When Sending From Web Page

SmtpException: Mailbox Unavailable When Sending From Web Page


If you are using the System.Net.Mail namespace to send mail from a web page and are using Exchange 2007, you may get the following error message: [SmtpException: Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender].

My solution was to create a seperate recieve connector where the permission groups were set to Anonymous users as shown in the figure below:

AnonymousUsers

Next, in the Network tab, in the list under Receive mail from remote servers… as shown in the graphic, I added the ip address of the server wanting to send mail.  Generally I place the IP address of individual web sites in there.  I also include developer machine IP’s as well if they are testing mail enabled apps.

HubTransport

Thats all there is to it. 

  1. Gren Dutt
    March 3, 2011 at 4:40 am | #1

    Needed a solution to sending email via a Visual Web Developer 2010 using VB ASP.NET 4.0. The problem was at the Exchange end. Your solution worked perfectly. Thanks!!!

  2. March 3, 2011 at 6:57 pm | #2

    Gren, glad this helped.

  3. http://newquickweightlossdiets.com
    March 19, 2012 at 9:52 pm | #3

    Howdy very cool website!! Man .. Excellent .. Wonderful .. I’ll bookmark your site and take the feeds additionally…I am happy to search out so many helpful information right here in the post, we need develop more strategies on this regard, thanks for sharing.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.