Solved

CreateUserWizard MailDefinition

Posted on 2012-04-05
9
319 Views
Last Modified: 2012-04-12
I have the MainDefinition set up as follows in CreateUserWizard and I am not getting the emails?  Any suggestions?  Thanks

<MailDefinition From="No-Reply@myproval.com" 
                Subject="Welcome to TCV (Transcontinental Valuations)" 
                BodyFileName="../EmailNotifications/Welcome.txt">
            </MailDefinition>

Open in new window

0
Comment
Question by:rcowen00
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37813315
0
 

Author Comment

by:rcowen00
ID: 37813341
I have the maildefinition in the properties of the CreateUserWizard and I have this in my code behind

Protected Sub CreateUserWizard_SendingMail1(sender As Object, e As System.Web.UI.WebControls.MailMessageEventArgs)
        ' Set MailMessage fields.
        e.Message.IsBodyHtml = False
        e.Message.Subject = "New user on Web site."
        ' Replace placeholder text in message body with information 
        ' provided by the user.
        e.Message.Body = e.Message.Body.Replace("<%PasswordQuestion%>", CreateUserWizard.Question)
        e.Message.Body = e.Message.Body.Replace("<%PasswordAnswer%>", CreateUserWizard.Answer)
    End Sub

Open in new window

0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37813369
Does it fire this event?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rcowen00
ID: 37817511
It doesn't appear to
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37819743
Do you have

onsendingmail="Createuserwizard_SendingMail1"

in properties?
0
 

Author Comment

by:rcowen00
ID: 37820115
Yes
0
 

Author Comment

by:rcowen00
ID: 37830165
I'm going to rebuild the page.
0
 

Author Comment

by:rcowen00
ID: 37840008
Follow up:  I did not need to re-create the page.  It turns out that I had a redirect in the code behind so the email wasn't being sent.  Thanks!
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37840024
Glad its sorted :-)
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question