Solved

CreateUserWizard MailDefinition

Posted on 2012-04-05
9
306 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
  • 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
 

Author Comment

by:rcowen00
ID: 37817511
It doesn't appear to
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now