VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Sending Mail using Microsoft Outlook

Cyrus Austria Lacaba - LP City, Phil.  (1 Submission)   Internet/HTML   VB 6.0   Unknown Difficulty   Wed 23rd January 2008   Mon 8th February 2021

Sending Mail using Microsoft Outlook

API Declarations


'Below are the modifications:
'1. Includes Multiple Email Address Validation and Entry.
'2. Validates multiple "." before @ sign and multiple Extension after @ sign
'3. Validates Domain name

'How to work:
'IniFile must contain the List of Domain Name and Extensions
'GetMessage is a user defined function that retrieves the contents of the Ini file. It uses GetPrivateProfileString API Function.


'Private Sub cmdMail_Click()
'Dim arrDomain() As String
'Dim arrExt() As String
'Dim cMail As New clsMail

'arrDomain() = Split(GetMessage("Mail", "Domain Name", App.Path & "\Ini files\Mail.ini"), ",")
'arrExt() = Split(GetMessage("Mail", "Domain Extension", App.Path & "\Ini 'files\Mail.ini"), ",")
'
' With cMail
' .DomainList = Join(arrDomain, ",")
' .MailExtension = Join(arrExt, "")
' .SendTo = "[email protected];[email protected]"
' .BCCTo = "[email protected]"
' .CCTo = "[email protected]"
' .AttachmentList = "c:\YServer.txt,c:\CKINFO.txt"
' .MailSubject = "Sample"
' .MailBody = "Body"
' .SendMail
' End With
'
'End Sub



Private strDomain$, _
strDomainExt$, _
strToList$, _
strCCTo$, _
strBCCTo$, _
strAList$, _
ArrofRec() As String, _
ArrofAtt() As String, _
strSubject$, _
strBody$, _
EMsg$


Rate Sending Mail using Microsoft Outlook (1(1 Vote))
Sending Mail using Microsoft Outlook.bas

Sending Mail using Microsoft Outlook Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters