VBScript Sendmail not selecting correct 'from' address

Status
Not open for further replies.

Roy Glixon

New Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
I have 2 MS-Microsoft Accounts and one internal account, which stores my public folders(PF). Inside the PF, I have a MS-Outlook system which includes a sendmail feature. When sending mail, the 'from' address is defaulted to the wrong MS-Microsoft account. I would like to default to the other one. Help on this topic was focused on VBA and not VBScript. I have played with 'default' account (mail icon in windows) and with any AD deifnitions with my name. None seem to affect the 'from' address. I would like for this to work with other users, so a hard-coded solution in my code doesn't make send.

roy

Roy Eliot Glixon
Ashton, Maryland
 
Thanks for asking.

snippits follow

Dim MyItem

Set MyItem = Application.CreateItem(0) ' creates native Mail form

MyItem.To = strTo ' passed argument

MyItem.To.ResolveAll

if (strCC <> "") then
MyItem.cc = strCC

MyItem.cc.ResolveAll
End if

MyItem.Subject = strDo & " Ticket: "&MakeTaskLine()


<stuff>


strBody = strBody & "</p></font></body></html>"

MyItem.HTMLBody = strBody


<stuff>


If strDo = "PRINT: " Then

MyItem.Printout

Else

MyItem.Display ' HelpDesk technician must hit send to finalize
End if

<user presses send when done>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
A VBscript stops running after updating form Outlook VBA and Custom Forms 1
B VBScript doesn't run on Recipient Email Outlook VBA and Custom Forms 2
M VbScript for Command Button on Contacts Custom Form Using Outlook 1
M Forward Appointment as BCC with VBScript Outlook VBA and Custom Forms 7
D Security patch seems to kill vbscript on Enterprise Level Outlook VBA and Custom Forms 4
R VBScript Commands Outlook VBA and Custom Forms 2
Mark White VBScript Move sent mail to non-default folder Outlook VBA and Custom Forms 5
Mark White VBScript Move sent mail to non-default folder Outlook VBA and Custom Forms 0
S my vbscript button1_click code works on appointment created but not on opening an existing apntmn Outlook VBA and Custom Forms 16
JorgeDario Template oft that contains VBScript Is not running Using Outlook 1
J Outlook 2010 VBScript editor does not run code at all Outlook VBA and Custom Forms 0
T Create new item in public folder using VBscript Outlook VBA and Custom Forms 1
B Recommended Outlook & VBScript Books? Outlook VBA and Custom Forms 3
Mary B VBscript: Need to copy every email to a folder & mark that copy as read Outlook VBA and Custom Forms 5
K VBScript Outlook, add attachment Outlook VBA and Custom Forms 1
S VBA Macro to VBScript Outlook VBA and Custom Forms 1
E VBScript to replace module? Using Outlook 3
F VBScript to add pre defined text Using Outlook 5
D Custom form and VBScript Using Outlook 5
F VBScript copy contacts and remove duplicates Using Outlook 1
R VBA Macro to VBScript in a form- Help Please! Using Outlook 10
H Accessing a control on a frame in Outlook with VBScript Outlook VBA and Custom Forms 1
Y Creating a Task with VBScript Outlook VBA and Custom Forms 14
N VBScript does not run in Outlook 2003 Outlook VBA and Custom Forms 4
M Saving emails using Visual Basic - Selecting folder with msoFileDialogFolderPicker Outlook VBA and Custom Forms 6
K Selecting a folder from an entry in a Listbox Outlook VBA and Custom Forms 1
N Selecting multiple calendar items Using Outlook 4
M Selecting folder with msoFileDialogFolderPicker Outlook VBA and Custom Forms 0
S Automatically selecting folders and deleting messages in Outlook VBA Outlook VBA and Custom Forms 7
S Creating Email - Selecting Pre-Defined Text Using Outlook 2
S Selecting "Mileage" field on "Detail" page Outlook VBA and Custom Forms 2
P Selecting specific calendar from Excel Outlook VBA and Custom Forms 5
RalphG101 No indication of attachment, when selecting file, send to outlook. Using Outlook 0
A Auto Insert of filename when selecting 'Remove Attachment' Using Outlook 1
230Grains iCloud COM Module Keeps de-selecting in Outlook 2013 Using Outlook 1
F Automatically close email after selecting mark unread Using Outlook 1
S categories are being cut off after selecting from category pop up form Using Outlook 3
S Outlook Custom form - selecting text in read page Using Outlook 0
V Selecting multiple folders Using Outlook 2
D Selecting shared calendar for appointment/meeting templates Using Outlook 2
B MS Office 2010: Word email merge not selecting default Outlook account Using Outlook 1
M Outllook vba - selecting a folder Using Outlook 1
C Selecting days in business notes BCM (Business Contact Manager) 0
A Pull mail without marking and processing, only by selecting it Using Outlook 1
S List Box - Selecting Multiple Items (Saving) Outlook VBA and Custom Forms 2

Similar threads

Back
Top