![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I am wanting to take an incoming email from 'someone' and then resend it
automatically. I am using a Outlook Rule to start the VBA program when the email comes in, and using the VBA program to copy the body and resend to a mobile number. I keep reading conflicting statements from my searches on the web and these fourms about being able to send without getting the Security prompt from OMG. Could some one please let me know if it is possible for me to do this using the native VBA in Outlook by changing my code without using a third-party or sendkeys program? Here is my code: Sub ForwardAsSMSTo12345(MyMail As MailItem) Dim strID As String Dim olNS As Outlook.NameSpace Dim msgIn As Outlook.MailItem Dim msgOut As Outlook.MailItem strID = MyMail.EntryID Set olNS = Application.GetNamespace("MAPI") Set msgIn = olNS.GetItemFromID(strID) Set msgOut = CreateItem(olMailItem) msgOut.BodyFormat = olFormatPlain msgOut.Subject = "From ML1500" msgOut.Body = msgIn.Body msgOut.To = " msgOut.Send Set msgIn = Nothing Set msgOut = Nothing Set olNS = Nothing End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook security prompt - having problem getting rid of it | Sue Mosher [MVP-Outlook] | Outlook - General Queries | 0 | June 4th 07 12:28 PM |
Outlook security prompt - having problem getting rid of it | Sue Mosher [MVP-Outlook] | Outlook - Installation | 0 | June 4th 07 12:28 PM |
Outlook security prompt - having problem getting rid of it | Sue Mosher [MVP-Outlook] | Outlook and VBA | 0 | June 4th 07 12:28 PM |
Send-Receive problem in Outlook 2003 | [email protected] | Outlook - General Queries | 1 | July 9th 06 06:42 PM |
Outlook 2003 Send problem | trasmus | Outlook - General Queries | 3 | January 17th 06 09:06 PM |