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 8605471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:50:23+00:00 2026-06-12T02:50:23+00:00

I have a .NET Web Application that wants to use SendGrid smtp server to

  • 0

I have a .NET Web Application that wants to use SendGrid smtp server to send emails.

Its a simple one page app, which has its code in Page_Load. I have imported the references to the SendGrid via Nu-Get and the reference is fine too.
code goes to timeout error after a while when it reaches – transportSMTP.Deliver(myMessage).
can somebody please help?

Imports System.Net
Imports System.Net.Mail
Imports SendGridMail
Imports SendGridMail.Transport

Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'Creating Email object for SendGrid
        Dim myMessage As SendGrid = SendGrid.GenerateInstance()
        myMessage.AddTo("RAMESHV@timken.com")
        myMessage.From = New MailAddress("myemail@domain.com", "Vikram Avadhaani")
        myMessage.Subject = "Testing the SendGrid Library"
        myMessage.Text = "<p>Show's over Amigo!</p> <br/> It ain't over, 'till its over!"

        'Create Credentials with UserName and Password
        Dim mailCredentials = New NetworkCredential("<user id>", "<password>")

        'Creating an SMTP Transport for sending email
        Dim transportSMTP As SMTP = SMTP.GenerateInstance(mailCredentials)  'SMTP
        Dim transportREST As REST = REST.GetInstance(mailCredentials)       'REST

        'Send the email
        transportSMTP.Deliver(myMessage)
        'transportREST.Deliver(myMessage)
    End Sub

End Class
  • 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-12T02:50:24+00:00Added an answer on June 12, 2026 at 2:50 am

    Found a solution:
    – Package the cloud (.Azure) project using visual studio (2012 or 2010) on framework 4.0
    – login to Windows Azure Portal and upload the package.
    for help please refer this – https://www.windowsazure.com/en-us/manage/services/cloud-services/how-to-create-and-deploy-a-cloud-service/

    (silly me, i was just worrying about proxies and stuff when i had the solution right in front of me 😛 )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We use Team Foundation Server and have numerous ASP.NET Web Application Projects. Each of
We currently have an ASP.NET Web Application running on a single server. That server
I have an ASP.NET MVC Web Application that interacts with a SQL Server 2008
I am building an ASP.NET web application that will use SQL Server for data
We have an ASP.NET 4.0 Web application that connects to a SQL Server on
I have a very fast web server (IIS6, ASP.NET) that I want to use
I have a .Net web application that I want to take a copy of
I have a .NET Windows service and a .NET Web Application that I would
I have a asp.net web application that uses C#. It logs in on a
I have an ASP.NET web application that is using forms authentication. Everything is configured

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.