Invisionsoft
Well-known member
Yup. SMTP Sample creates BSOD.
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
	
		
			
		
		
	
				
			
			
				VB.NET:
			
		
		
		 Dim email As New MailMessage()
        With email
            .From = New MailAddress("register@dsgamemaker.com")
            .ReplyTo = New MailAddress("register@dsgamemaker.com")
            .Sender = New MailAddress("register@dsgamemaker.com")
            .Subject = product + " Registration"
            .Body = finalhtml
            .IsBodyHtml = True
            Dim myfile As New Attachment("C:\DSGameMaker\smile.bmp")
            .Attachments.Add(myfile)
            .To.Add(emailtb.Text)
        End With
        Dim thesender As New SmtpClient("mail.dsgamemaker.com", 25)
        Dim thecredentials As New NetworkCredential("register+dsgamemaker.com", "password")
        thesender.Credentials = thecredentials
        'Don't Use SSL.
        thesender.EnableSsl = False
        Try
            thesender.Send(email)
        Catch ex As Exception
            MsgBox(ex.ToString)
            MsgBox(ex.Message)
        End Try
        ' WizardPanel1.NextUI()
    End Sub 
	 
 
		 
 
		