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 | Display Modes |
#1
|
|||
|
|||
How do I change email address of sender when I mail out of word?
When I mail out of Word to a mail recepient one of the email addresses on my ISP list of email addresses appears next to my name and is read by the recepient. I want another email address on my ISP list to appear next to my name when mailing documents out of Word. How can I make this switch?
|
#2
|
|||
|
|||
How do I change email address of sender when I mail out of word?
This was posted recently
Quote I did some investigating and discovered a .NET method (framework 1.1) that bypasses Outlook altogether, as long as you can know the address of your SMTP server. Takes one reference and two lines of code. Sweet. 'First add a reference to System.Web System.Web.Mail.SmtpMail.SmtpServer = "SMTP Server Name" System.Web.Mail.SmtpMail.Send(from:="SteveLang@tra sh.net", ", subject:="Test", messagetext:="This be the body.") Steve "Steve Lang" wrote in message ... hi Brian, Creating a VB application or - even better - customizing Word to do this (notwithstanding the possible caveat noted below) is relatively simple. Create a reference to the Outlook object model and add some code of this natu Set myOutlook = CreateObject("Outlook.Application") Set myNameSpace = myOutlook.GetNamespace("MAPI") Set myItem = myOutlook.CreateItem(olMailItem) With myItem .To = strTo 'this would be your judge e-mail address .Subject = strDocName 'the name of the file to attach .Body = strMsg 'whatever you want it to be .Attachments.Add strDocPath & strDocName 'the full name and path to the document .Send End With Set myOutlook = Nothing Set myNameSpace = Nothing Set myItem = Nothing The watching aspect can be handled with a timer control and a directory reference in VB or you could have the e-mail automatically be sent when the document is closed. Then when the Outlook warning appears, you would just need to click "Yes" when you are closing the file. ***CAVEAT*** AFAIK, each time an outside application touches Outlook to generate an e-mail, the user needs to authenticate that action to be a valid one. This was put into effect to reduce the ability of worms and viruses to propagate themselves silently through a user's address book. I don't believe this can be worked around. HTH and have a great day! Steve -- Stephen Lang Legislative Counsel Bureau Carson City, NV GMT+8 slang at lcb dot state dot nv dot us "BSimpson" bsimpson[(at)]ch13cleve[(DOT)]com wrote in message ... I'm looking for a solution to a kinda odd Word document-handling problem. I work in a lawfirm that generates large amounts of documents that are filed to 1 of 3 different judges for further handling by their staff. Any given document will go to 1 judge *only* - based upon which court the case is filed in. The generation of the documents is NOT the issue. The problem is, I have to email them to the appropriate judge with only ONE document attached to each email. When dealing with only a couple of documents, this isn't a problem, but I generate dozens at a time, and doing the "right-click, send-to, mail recipient, type the address or select it from the address book, Enter" routine gets to be verrrrrrry tedious and is a tremendous waste of time. If it'd help, I *can* move the individual documents to separate folders, 1 for each judge. The solution could be one of several different ideas: 1. A stand-alone program that would "watch" the specific folder/s for documents being moved into them, and would then automatically send each document attached to an individual email (remember: 1-at-a-time), and preferably move the document files to a "storage" folder after processing, or 2. An Outlook 2000 add-in that'd do the same thing, or 3. A Word 2000 macro (or add-in??) that'd do the same thing. The first two methods would, I'm guessing, be faster, as Word would not even need to be running, whereas the 3rd method would (I'm guessing again) entail Word stepping through the folder/s containing the to-be-mailed items one at a time, emulating the "file, send to, mail recipient, get address from the Outlook address book - or maybe from an embedded Word merge field?, and hit Enter" routine. There's are constraints that issue upon any method of doing this: 1. The document *must* be an attachment - not inline text, 2. The subject line of the message *must* be the filename of the attached document, and 3. There can only be 1 document attached to each message I've looked at the examples on the MSVP site, and nothing there will do what I need, sad to say. Any assistance would be GREATLY appreciated. Brian. Unquote -- Please post any further questions or followup to the newsgroups for the benefit of others who may be interested. Unsolicited questions forwarded directly to me will only be answered on a paid consulting basis. Hope this helps Doug Robbins - Word MVP "Sam4X5" wrote in message ... When I mail out of Word to a mail recepient one of the email addresses on my ISP list of email addresses appears next to my name and is read by the recepient. I want another email address on my ISP list to appear next to my name when mailing documents out of Word. How can I make this switch? |
Thread Tools | |
Display Modes | |
|
|