i used this code to send email from vb6 form that connect with out look email account
'Dim olapp As New Outlook.Application 'Dim olMail As Outlook.MailItem 'Create a new mail object form the 'Outlook98 Application object 'Set olMail = olapp.CreateItem(olMailItem) 'Set the mail fields of the olMail object 'olMail.Subject = <subject goes in here> 'olMail.To = <the email address goes in here> 'olMail.Body = <the mail body does in here> 'Tell Outlook to send this message 'olMail.Send 'Be kind to your environment and clean 'up your unused objects 'Set olMail = Nothing 'Set olapp = Nothing '--end code block
my Question is how i can set more email reciver
' olMail.To = <the email address goes in here> ??
and how i can retrive picture from my data base and attachemnt to email ??
olMail.attatchemnt = <what i should write here>
Edited 3 Years Ago by pritaeas: Added markdown.