﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Re-invent ASP.NET Hosting Community / ASP.NET 2.0 Hosting Discussion / Web Site Development / Design  / Using the maildefinition in the CreateUserWizard / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Re-invent ASP.NET Hosting Community</description><link>http://community.re-invent.com/</link><webMaster>community@re-invent.com</webMaster><lastBuildDate>Thu, 20 Nov 2008 03:38:45 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Using the maildefinition in the CreateUserWizard</title><link>http://community.re-invent.com/Topic610-13-1.aspx</link><description>I was sending it to myself so it wasn't that. There is one other I added, but I don't think it could have been the answer. I added an event handler for sendmailerror, but I never put code in it because I couldn't really write to the re-invent log files, so it was an empty event handler. I did a source code compare and that was the only difference. I'm afraid to play with it though, because it's working now and it's live.</description><pubDate>Tue, 07 Aug 2007 10:00:38 GMT</pubDate><dc:creator>donovan</dc:creator></item><item><title>RE: Using the maildefinition in the CreateUserWizard</title><link>http://community.re-invent.com/Topic610-13-1.aspx</link><description>That is strange.  I wonder if where you are sending the email to is filtering the email with spam filtering with the other subject.</description><pubDate>Mon, 06 Aug 2007 18:34:12 GMT</pubDate><dc:creator>Re-invent (Plato)</dc:creator></item><item><title>RE: Using the maildefinition in the CreateUserWizard</title><link>http://community.re-invent.com/Topic610-13-1.aspx</link><description>Well, I got it to work after trying something I saw in another post. I changed the subject from "Welcome to cartango" to "Thank you for registering with cartango" and now the email is being sent.</description><pubDate>Mon, 06 Aug 2007 14:53:03 GMT</pubDate><dc:creator>donovan</dc:creator></item><item><title>Using the maildefinition in the CreateUserWizard</title><link>http://community.re-invent.com/Topic610-13-1.aspx</link><description>Has anyone succesully used the CreateUserWizard control and had it send an email? When I run this on my local test server, it works correctly, but when I run it on re-invent, it doesn't error, but I never receive an email.&lt;P&gt;I have my web config setup as follows&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;system.net&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;mailSettings&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;smtp&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;from&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;A href="mailto:from=support@mydomain.com"&gt;support@mydomain.com&lt;/A&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;network&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;host&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;mail.mydomain.com&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;port&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;25&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;userName&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;A href="mailto:user@mydomain.com"&gt;user@mydomain.com&lt;/A&gt;"&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;password&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;mypassword&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;defaultCredentials&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; /&amp;gt;&lt;BR&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;smtp&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;mailSettings&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;system.net&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#4b6e9d&gt;however, it never sends the email after the user is created. I have the maildefinition setup as&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;MailDefinition&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;From&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="support@mydomaim.com"&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Subject&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="Thank you for registering with mydomain!"&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;BodyFileName&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="~/Controls/RegistrationMessage.txt"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;MailDefinition&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Mon, 06 Aug 2007 14:28:53 GMT</pubDate><dc:creator>donovan</dc:creator></item></channel></rss>