![]() |
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
|
|||
|
|||
![]()
Hi,
Is it okay to do this, assuming the addresses are valid, in my send routine? Or should there be some kind of loop to extract all recipients from the Item and add them again individually? Set olapp = CreateObject("Outlook.Application") Set olmail = olapp.CreateItem(olMailItem) With olMail olmail.To = Item.To olmail.CC = Item.CC olmail.Subject = Item.Subject olmail.body = Item.Body olmail.Send End With I am doing this to avoid sending the whole form/code which would create a message on the recipients' end about not being able to view in the reading pane. Thanks in advance |
#2
|
|||
|
|||
![]()
In article . com,
Djohnson wrote: Is it okay to do this, assuming the addresses are valid, in my send routine? Or should there be some kind of loop to extract all recipients from the Item and add them again individually? Set olapp = CreateObject("Outlook.Application") Set olmail = olapp.CreateItem(olMailItem) With olMail olmail.To = Item.To olmail.CC = Item.CC olmail.Subject = Item.Subject olmail.body = Item.Body olmail.Send End With I am doing this to avoid sending the whole form/code which would create a message on the recipients' end about not being able to view in the reading pane. Thanks in advance Have you not read any of the other messages to the other people asking about how to fill in the To: and cc: fields? The way to do this is to create recipient objects of type To and Type CC and add those recipient objects to the recipients collection object of the item. Go to www.outlookcode.com and find the code examples for adding recipients to messages. But, more importantly, you need to tell us what you are really trying to do. That codes looks like you are sending the second item to the same recipients as the first message. Is that what you really intend to do? -- Hollis Paul Mukilteo, WA USA |
#3
|
|||
|
|||
![]()
Have you not read any of the other messages to the other people asking
about how to fill in the To: and cc: fields? I have seen other ways of doing it, but I was asking if this way should work or not.... The way to do this is to create recipient objects of type To and Type CC and add those recipient objects to the recipients collection object of the item. Go to www.outlookcode.com and find the code examples for adding recipients to messages. But, more importantly, you need to tell us what you are really trying to do. That codes looks like you are sending the second item to the same recipients as the first message. Is that what you really intend to do? Yes as my last sentence said, when I do an Item.Send the message creates a "can't view in the reading pane" message on the receiving end. This way it doesn't, only security messages on the senders' end. As I said I am asking if this (my code or rationale) makes sense or are there flaws in it? Thank you very much for your assistance. |
#4
|
|||
|
|||
![]()
Have you not read any of the other messages to the other people asking
about how to fill in the To: and cc: fields? I would also like to add that I do find it difficult to find answers to the most basic questions. I can only find sample code for more complex routines. I am so sorry that I am a beginner and this is my first Outlook form. |
#5
|
|||
|
|||
![]()
In article .com,
Djohnson wrote: I am so sorry that I am a beginner and this is my first Outlook form. You need not be sorry for this. It is the classic problem of the "expert" not being able to verbalize what has been reduced to habit. I am gotten a good dose of it as I watched a senior support person flail about until he found a solution for why my SBS server was not able to send and receive email. I have a vague idea of what he did, but I certainly could not reproduce it. Have you not read any of the other messages to the other people asking about how to fill in the To: and cc: fields? I have seen other ways of doing it, but I was asking if this way should work or not.... You do not work with those fields in code. You enter stuff in those fields before you go into design mode. Once you have gone into design mode, then you do email addressing using the recipients collection object and the recipient objects, all according to the rules specified in the Outlook Object Model of the version you are working with. -- Hollis Paul Mukilteo, WA USA |
#6
|
|||
|
|||
![]()
In article .com,
Djohnson wrote: Yes as my last sentence said, when I do an Item.Send the message creates a "can't view in the reading pane" message on the receiving end. This way it doesn't, only security messages on the senders' end. The "can't view in the reading pane" is created because the message has code behind it, but the form is not published where the viewer's computer can access it. Is the receiver on the same Exchange server system as the sender? If yes, then the form should be published to the Organizational Forms Library so that the receiver can pull up the form. When I design a form, I publish the form with a new name, like SharePointTips_verXXX, in very small steps. I might wind up with 30 different named forms in the OrgFormsLib before I am done and I don't delete any until I am done. I can do this because I am also the Exchange Administrator of my domain (and the domain administrator, and the dba, and the bottlewasher.) But, in the real world in which those slots are filled by other people who get upset if they see an extra form in the OrgFormsLib, then you have to be tricky. I keep several pst files just to be able to move old form designs into the personal forms library of those pst files. In any case, you need to get the current test form to the recipient so that the form can be installed and viewed in the preview pane. -- Hollis Paul Mukilteo, WA USA |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Best way to get data from Item before send? | djohnson | Outlook - Using Forms | 4 | August 10th 06 02:46 PM |
Moving Outlook to another PC, and moving data files to another location | /mel/ | Outlook - General Queries | 3 | June 24th 06 03:39 PM |
How can I create a outlook appointment item from data in a e-mail? | StoltHD | Outlook and VBA | 6 | June 17th 06 08:00 AM |
How can I create a outlook appointment item from data in a e-mail? | Eric Legault [MVP - Outlook] | Outlook and VBA | 0 | June 15th 06 06:23 PM |
OL2003 - can you auto-fill a singel new contact form with online form data | TimR | Outlook - Using Contacts | 1 | February 15th 06 01:43 PM |