VB email inbox question menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    Flame_Warrior's Avatar Member
    Reputation
    36
    Join Date
    Sep 2008
    Posts
    182
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    VB email inbox question

    Hey guys. Im in need of assistance. Im writing an emailer program, and i need to catch incoming emails and put them in the form of a string in my program. Aka i need to know how to implement an inbox/outbox/trash for my program. Any help?

    thanks in advanced.

    -Flame War.

    Wofa.us = website in progress. beginning \\\\ ||||||||||done https://www.youtube.com/watch?v=NVFaGb3ZkBk=awesome vid!!

    VB email inbox question
  2. #2
    Rival-Fr's Avatar Banned
    Reputation
    15
    Join Date
    Apr 2009
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For outBox i am use this class:

    Code:
    Imports System.Text.RegularExpressions
    
    Public Class Mail
    
        Private _mail As New System.Net.Mail.MailMessage()
    
        Public Sub New(ByVal fromName As String, ByVal fromMail As String, ByVal toName As String, ByVal toMail As String, ByVal subject As String, ByVal body As String, _
        ByVal isHtml As Boolean)
            _mail.Subject = subject
            _mail.Body = body
            _mail.From = New System.Net.Mail.MailAddress(fromMail, fromName)
            _mail.[To].Add(New System.Net.Mail.MailAddress(toMail, toName))
            _mail.IsBodyHtml = isHtml
            _mail.BodyEncoding = System.Text.Encoding.GetEncoding("iso-8859-1")
            _mail.SubjectEncoding = System.Text.Encoding.GetEncoding("iso-8859-1")
        End Sub
    
        Public Function Send(ByVal smtpServer As String) As Boolean
            Try
    
                Dim smtp As New System.Net.Mail.SmtpClient(smtpServer)
                smtp.Send(Me._mail)
                Return True
            Catch generatedExceptionName As Exception
                Return False
            End Try
        End Function
    
    
        Public Shared Function Mail_Vérifier(ByVal MailàTester As String) As Boolean
    
            Dim regEmail As New Regex("^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$")
            Dim strEmail As String = MailàTester
            Dim mavérif_email As Match = regEmail.Match(strEmail)
            If mavérif_email.Success Then
                Return True
            Else
                Return False
            End If
        End Function
    
    End Class

  3. #3
    Flame_Warrior's Avatar Member
    Reputation
    36
    Join Date
    Sep 2008
    Posts
    182
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    care to explain? but thank you.

    Wofa.us = website in progress. beginning \\\\ ||||||||||done https://www.youtube.com/watch?v=NVFaGb3ZkBk=awesome vid!!

  4. #4
    Allstar .ιllιlı.'s Avatar Banned
    Reputation
    284
    Join Date
    Jan 2009
    Posts
    481
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Try
                Dim mail As New System.Net.Mail.MailMessage()
                Dim SmtpServer As New SmtpClient
                SmtpServer.Credentials = New Net.NetworkCredential("Here you should type in a gmail mail. Example: [email protected]", "Here you should type in the password to the gmail email you typed in the last box!")
                SmtpServer.Port = 587
                SmtpServer.Host = "smtp.gmail.com"
                SmtpServer.EnableSsl = True
                mail.To.Add("The reciever adress, where you check all the mails, don't has to be @gmail. Example: [email protected]")
                mail.From = New MailAddress("Same as in the first place, the gmail mail.")
                mail.Subject = "Mail subject"
                mail.Body = "Some text, or variables.."
                SmtpServer.Send(mail)
                Application.Exit()
            Catch
                MessageBox.Show("Error message goes here", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
                Application.Exit()
            End Try
    Try that for sending emails.

  5. #5
    Flame_Warrior's Avatar Member
    Reputation
    36
    Join Date
    Sep 2008
    Posts
    182
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, but i already have a sending script. what i need, is a way to keep the messages that are both incoming to the email that you log in as, and the messages that are being sent from that email. also, i would appreciate more than code. otherwise i dont learn. Thanks in advanced.

    Wofa.us = website in progress. beginning \\\\ ||||||||||done https://www.youtube.com/watch?v=NVFaGb3ZkBk=awesome vid!!

Similar Threads

  1. need an email inbox spammed
    By 2dgreengiant in forum Community Chat
    Replies: 1
    Last Post: 08-03-2010, 07:11 PM
  2. Replies: 1
    Last Post: 03-05-2009, 05:46 AM
  3. Replies: 3
    Last Post: 10-04-2007, 05:17 PM
All times are GMT -5. The time now is 06:45 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search