Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2008, 05:01 PM
Registered User
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending newsletters smtp problem

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


 
Old April 22nd, 2008, 11:52 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Are you absolutely sure that "[email protected]" is a legit address -- in other words, does it actually exist and can it send and receive mail as a standalone account?

If it is not, GMail is likely to filter out any mail from this address. You won't find it in the GMail spam filter either... it will just be gone. GMail has some very sophisticated spam filtering going on, and one of the things they do is to ping the sender's server for the existence of the the address in the "From" field. If it's a "fake" address, it won't let the mail through.

 
Old April 22nd, 2008, 02:18 PM
Registered User
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks lee.

[email protected] does not actually exist because I hid he real version for this forum post. Actually, I found the solution and the hosting company suggested that localhost with default credentials true and username/password both set to "" with port 25 or 547 would be sufficient because the email send was working on their servers. I was under the mis-apprehension that it had to go though my own domain rather than localhost confusing their localhost with my computer. My mistake. I did want to be able to send the newsletter though the website rather than rely on my home computer.

Anyway, problem solved. Thanks to all contributions.

steve:):)





Similar Threads
Thread Thread Starter Forum Replies Last Post
beerhouse newsletters not sending images sbramall BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 August 31st, 2008 04:27 PM
Problem sending email with SMTP in VB.Net Compiler Forum and Wrox.com Feedback 3 November 30th, 2007 07:25 PM
Sending email problem - SMTP server response: 554 Havokx Beginning PHP 0 July 27th, 2007 04:04 AM
sending mails with attachments in smtp hermoine Pro JSP 1 May 1st, 2007 04:35 AM
Problem sending SMTP mail Dsypher ASP.NET 2.0 Basics 3 February 16th, 2006 01:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.