Managed to get it done but i need to insert a jpg file in the body of the email and display it...
is there a way to do it?
at the same time is it possible to forward an existing email and use these codes?
Quote:
quote:
Sub sendemail()
Dim olApp As Outlook.Application, olMail As Outlook.MailItem
Dim myRow As Range
For Each myRow In Range("A1:A2") 'Change the Values to the last number of the row
Set olApp = New Outlook.Application
Set olMail = olApp.CreateItem(olMailItem)
olMail.To = myRow.Value
olMail.Subject = "Job Positions Available in the month of June" 'place your subject here
olMail.HTMLBody = "" 'place your message here
olMail.Attachments.Add (".jpg")
olMail.Display
Next myRow
End Sub
|