Hi, can anyone help
I'm building an asp.net 2.0 application based on the
VB version of the BeerHouse project using the C# book as a guide which, although pushing my knowledge somewhat, is excellent. My app and is currently hosted by hosting company. I'm working on the newsletter module at the moment and have now got it to send the email newsletter using smtp.mydomain.com which works well if my test users have an email account in the form
[email protected]. However, for the users with a different email domain outside my hosted domain(such as
[email protected]), nothing comes through. below is part of my config.sys file (I've just shown the smtp/email bits). Am i doing something wrong?? Any idea- feedback most welcome.
I have been in touch with my hosting company and they were not too helpful and suggested I use this forum.
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="mydomain" type="MB.mydomain.mydomainSection, __code"/>
...
<mydomain defaultConnectionStringName="mydomaincs">
<contactForm mailTo="steve@mydomaincom"/>
<articles pageSize="10"/>
<polls archiveIsPublic="true" votingLockByIP="false"/>
<newsletters fromEmail="
[email protected]" fromDisplayName="mydomain" archiveIsPublic="true" hideFromArchiveInterval="10"/>
<forums threadsPageSize="8" hotThreadPosts="10" bronzePosterPosts="10" silverPosterPosts="20" goldPosterPosts="50"/>
<store sandboxMode="true" businessEmail="
[email protected]"/>
</mydomain>
...
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="
[email protected]">
<network defaultCredentials="true" host="smtp.mydomain.com" password="mypassword" port="587" userName="
[email protected]"/>
</smtp>
</mailSettings>
...
So far everything I have worked on works - i have not modified any of the original backroom code except to change the namespace from beerhouse to mydomain. Again, all seems to be fine.
I have just got this for 7 or 8 test users and the email confirmation of membership works fine as does the password recovery and change system. All email accounts in my test users are valid and current and I have checked that all email accounts both send and receive and all non mydomain email account holders (test ones obviously) have subscribed and are registered users of my app.
Any help gratefully received.
many thanks in anticipation.
steve