README.md
December 5, 2022 ยท View on GitHub
Description
This code once compiled to an ocx, can be added as a user control to any VB6 form.
It allows you the user to send an mail via an smtp server, but where this code shines is the ability to add an attachment to your Email.
More Info
Email1.MailFrom = "Dogsbollox@topbloke.com"
Email1.MailMessage = "This is a test"
Email1.MailSubject = "This is a test"
Email1.MailTo = "andy@andythughes.co.uk"
Email1.PortNumber = 25
Email1.ServerName = "your smtp server"
Email1.Attachment = "C:\Newsletter-v1.jpg"
Email1.SendMail
An event is raised MailFailed
this returns a number but there is a public variable within the routine that returns as text
the actual Text, this can be an error message or a message to say Mail Sent Successfully
| Submitted On | 2006-02-17 12:23:40 |
| By | Dogs |
| Level | Intermediate |
| User Rating | 5.0 (10 globes from 2 users) |
| Compatibility | VB 6.0 |
| Category | Custom Controls/ Forms/ Menus |
| World | Visual Basic |
| Archive File | Email_with1975082212006.zip |