VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Send a mail from VB application..just six line code..

by Nimesh Surana (2 Submissions)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 19th February 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Send a mail from VB application..just six line code..

Rate Send a mail from VB application..just six line code..



With SMTP 'name for control
        .Server = outgoingserver 'Outgoing server name or IP address

        .MailFrom = mailFrom 'Sender mail address

        .SendTo = mailto 'to whom you want to send mail

        .MessageSubject ='Subject of message

        .MessageText = mailtext 'mail text

        .Attachements.Add attachmentpath 'if you want ot attach any file just give the path here

         DoEvents

        .Connect

End With

**************************************************************

Download this snippet    Add to My Saved Code

Send a mail from VB application..just six line code.. Comments

No comments have been posted about Send a mail from VB application..just six line code... Why not be the first to post a comment about Send a mail from VB application..just six line code...

Post your comment

Subject:
Message:
0/1000 characters