Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8421763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:14:18+00:00 2026-06-10T03:14:18+00:00

The original documentation exists here . I have already converted the controller action: Imports

  • 0

The original documentation exists here.

I have already converted the controller action:

Imports ActionMailer.Net.Mvc

    Public Class EmailController
        Inherits MailerBase

        Public Function VerificationEmail(ByVal model As RegisterModel) As EmailResult

            [To].Add(model.Email)
            From = "me@my.org"
            Subject = "Thanks for registering with us!"
            Return Email("VerificationModel", model)

        End Function

    End Class

And, the view (EmailVerification.html.vbhtml):

@modelType GemcoBlog.RegisterModel

@Code
    Layout = Nothing
End code

Welcome to My Cool Site, @Model.UserName

We need you to verify your email.  Click this nifty link to get verified!

@Html.ActionLink("Verify", "Account", New With {.code = Model.Email})

Thanks!

But, how do I convert this C# code to call the function from within my Register method to VB?

new MailController().VerificationEmail(newUser).Deliver();

I haven’t found anything on the internet describing how to do this in VB, so maybe this post will be helpful for those looking.

As a side note: Could someone please explain to me this syntax [To].Add(model.Email)? I haven’t seen that before. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T03:14:19+00:00Added an answer on June 10, 2026 at 3:14 am
    Dim controller = New MailController()
    Dim email = controller.VerificationEmail(newUser)
    email.Deliver()
    

    or if you prefer one liners:

    Call New MailController().VerificationEmail(newUser).Deliver()
    

    As a side note: Could someone please explain to me this syntax
    [To].Add(model.Email)? I haven’t seen that before. Thanks.

    To is a reserved word in VB. Wrapping it in square brackets ensures that you are not clashing with this reserved keyword.

    The equivalent in C# is the @ keyword:

    int @int = 123;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an open-source project ( here ) whose documentation is currently in French.
In the ZeroMQ documentation for a REP socket it says: If the original requester
Original Problem: I have 3 boxes each containing 200 coins, given that there is
[Original] I have a ListBox which has its ItemsSource (this is done in the
The Documentation of the java.util.Properties-class states: A property list can contain another property list
I have inherited a MIB and example documentation, and need to re-implement the code
See below the solid line for my original question. I have a folder in
I don't understand the documentation at php.net . It appears they are using the
I have read the original and updated guides in the Mantis Wiki on how
I have read the documentation provided for shutil.move and copy2. From my understanding move

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.