IIS localhost System.Net.Mail.SmtpFailedRecipientsException Unable to relay for

by Cliff 30. December 2010

If you do development on your localhost and you want to test email, you can update your web.config as per below.  Note that you will need a directory of D:\Maildrop on your machine.  Doing this will result in emaills being delivered to the directory you specify.

You may receive Unable to relay for... errors and if you do, you can specify a from in the smtp element.

 <mailSettings> <smtp deliveryMethod="SpecifiedPickupDirectory" from="local@localhost">

<specifiedPickupDirectory pickupDirectoryLocation="D:\Maildrop"/> </smtp></mailSettings>

Cliff Gray's Info

Cliff Gray
Developer/Founder GrayTechnology.com.

E-mail me Send mail

Authors

Calendar

<<  June 2017  >>
MoTuWeThFrSaSu
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

View posts in large calendar

Blogroll

Download BlogEngine.NET

Download at CodePlex

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Subscribe