shanker
  •  shanker
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
2013-10-17T12:30:10Z
I need to create a custom register page with custom fields .. I want to add new fields.

Change the register logic and email the user receive after registration.
Sponsor
tha_watcha
2013-10-17T12:51:48Z
Originally Posted by: shanker 

I need to create a custom register page with custom fields .. I want to add new fields.

Change the register logic and email the user receive after registration.



I wrote a guide a little while ago on how to add custom fields to the user profile/register page..

http://forum.yetanotherf...tion-page.aspx#post54025 

Quote:

Change the register logic and email the user receive after registration.



What logic do you want to change?
UserPostedImage
shanker
  •  shanker
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
2013-10-17T12:53:17Z
email the user receive after registration...
Zero2Cool
2013-10-17T15:14:39Z
Originally Posted by: shanker 

email the user receive after registration...



The registrant receives an email confirming their registration by default. At least, that's how my site works and I don't remember changing anything to make it happen.
shanker
  •  shanker
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
2013-10-18T06:20:07Z
My client wants an email to his gmail account... when a new user registers with all user details..
tha_watcha
2013-10-18T10:19:06Z
Originally Posted by: shanker 

My client wants an email to his gmail account... when a new user registers with all user details..



Thats possible in the Board Settings (Admin -> Settings -> Board Settings) there i an option Send Email Notification On User Register to Emails, where you can enter an email address.
UserPostedImage
shanker
  •  shanker
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
2013-10-18T11:20:04Z
Oh Great..
Where i can alter what is sent and how to change it.. i have adding new fields to my register page that i want to send along to my client.


I have't Configured the SMTP in the install page of yaf..
what changes do i need to made on mail.config file??
tha_watcha
2013-10-18T12:02:56Z
Originally Posted by: shanker 

Oh Great..
Where i can alter what is sent and how to change it.. i have adding new fields to my register page that i want to send along to my client.



the email template can be found in the language file (../languages/english.xml)

[code]
<Resource tag="NOTIFICATION_ON_USER_REGISTER">
Hello!

A new user has registered on the {forumname} forum:

User Name: {user}
User Email: {email}

Administration Link: {adminlink}
</Resource>
[code]

if you want to include more content you need to modify the method SendRegistrationNotificationEmail in the file ../pages/register.ascx.cs

UserPostedImage

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved