Solved

CreateUserWizard MailDefinition

Posted on 2012-04-05
9
316 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

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

Independent Software Vendors: 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!

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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