| | | VB Discussions about VB programming |  | 
06-26-2009
|  | Sergeant Major | | | Join Date: Sep 2008
Posts: 181
Reputation: 36 Level up: 88%, 88 Points needed |   | | | 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 http://www.youtube.com/watch?v=NVFaGb3ZkBk=awesome vid!! | Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx. 
06-27-2009
|  | Master Sergeant | | | Join Date: Apr 2009 Location: France
Posts: 108
Reputation: 56 Level up: 97%, 35 Points needed |     | | 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
| 
06-28-2009
|  | Sergeant Major | | | Join Date: Sep 2008
Posts: 181
Reputation: 36 Level up: 88%, 88 Points needed |   | | | care to explain? but thank you.
__________________ Wofa.us = website in progress. beginning \\\\ ||||||||||done http://www.youtube.com/watch?v=NVFaGb3ZkBk=awesome vid!! | 
06-29-2009
|  | Contributor | | | Join Date: Jan 2009 Location: The Pirate Bay
Posts: 391
Nominated 1 Times in 1 Post Reputation: 260 Level up: 28%, 652 Points needed |     | | Try that for sending emails.
__________________ "IM RITE BEKUZ I LIEK PARTY" World of Warhammer model thread: http://www.mmowned.com/forums/simple-model-edits/269440-release-world-warhammer.html | 
06-29-2009
|  | Sergeant Major | | | Join Date: Sep 2008
Posts: 181
Reputation: 36 Level up: 88%, 88 Points needed |   | | | 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 http://www.youtube.com/watch?v=NVFaGb3ZkBk=awesome vid!! |  |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -4. The time now is 08:42 AM. |