Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to send an email from Outlook which is already opened as draft
#1
Not Solved
Hi,

I want to send an email with attachment from outlook which is already opened as draft email with TO address & subject. Also want to Open and take a screenshot of the received Auto generated email in Inbox.

I have a code to send an email with attachment but i am not able to Open a received email, is there is any code for that.

Code:
Set OlAPP = CreateObject("Outlook.Application")
Set Olns = OlApp.GetNameSpace("MAPL")
Olns = Logon
Set ObjFolder = Olns.GetDefaultFolder(6)
ObjFolder.Display
Set msg = OlApp.CreateItem(OlMailItem)
Set Recpt = msg.Recipients.Add("vijayram143@gmail.com")
msg.Attachments.Add "FilePath"
msg.Send
OlAPP.Quit
Set OlApp = Nothing
Set Olns = Nothing
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Extracting Email Body from Outlook waseem.khan.91 0 1,891 03-04-2019, 02:53 PM
Last Post: waseem.khan.91
  Extracting Email Body from Outlook waseem.khan.91 0 1,033 03-01-2019, 02:51 PM
Last Post: waseem.khan.91
  Find the email using subject with the help of vb script Raheem Shaik 0 1,460 12-12-2018, 02:57 PM
Last Post: Raheem Shaik
  How to press the space bar with send keys method Hari Prasad 5 24,618 06-03-2016, 10:47 AM
Last Post: Vijayaragavan.thangam
  Cannot attach the text file to email arpan 2 3,265 07-19-2013, 12:13 AM
Last Post: arpan

Forum Jump:


Users browsing this thread: 2 Guest(s)