Results 1 to 2 of 2

Thread: SMTP mail problemos

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    SMTP mail problemos

    I have a page on my site which sends an email via SMTP.

    When the user clicks the submit button it succesfully sends off the email but it seems to take forever.

    Also on occasions it stalls and does nothing.

    Has anyone experienced similar problems ?

    Thanks in Advance

    Parksie

  2. #2
    Lively Member
    Join Date
    Jul 2003
    Posts
    90
    I had the same problem. I ended up putting the code that sends an email into a thread, however, I also had to add some logging in that code so I could see if there was an error during the send of the email.

    dim tEmailThread as System.Threading.Thread

    tEmailThread = New Thread(New ThreadStart(AddressOf SendEmail))

    tEmailThread.Start()


    Private sub SendEmail()
    ..... code to send email
    end sub


    This was my first time working with Threading. If someone sees a problem with this code, please let me know.

    However, the code has been running for months now without any issues.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width