Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CreateUserWizard MailDefinition

Posted on 2012-04-05
9
Medium Priority
?
329 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 2000 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

596 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