Code in one line
Hello,
I have created an email message:
Dim email As New System.Net.Mail.MailMessage
Is it possible to make the following code in one code line (here ***):
Dim emailCollection As New System.Net.Mail.MailAddressCollection
Dim emailAddress As Net.Mail.MailAddress
emailAddress = New Net.Mail.MailAddress("sd", "sd")
emailCollection.Add(emailAddress)
email.To = emailCollection ***
Thanks,
Miguel
.
Relevant Pages
- Re: Mail Merge HTML Format Word 2002 XP SP3
... of using mailmerge to create the personalised content of the email message, ... The body text format determines the standard used to display the text of the ... Text, Rich Text, and HTML. ... Dim olApp As Outlook.Application ... (microsoft.public.word.mailmerge.fields) - Re: Capturing in code the Rtf and Html of a merge document
... What I am trying to do is capture the body of the merge document ... necessary to create such an email message. ... Dim Source As Document, Maillist As Document, TempDoc As Document ... Set oItem = oOutlookApp.CreateItem ... (microsoft.public.word.vba.general) - Re: Capturing in code the Rtf and Html of a merge document
... necessary to create such an email message. ... Dim Source As Document, Maillist As Document, TempDoc As Document ... Set oItem = oOutlookApp.CreateItem ... (microsoft.public.word.vba.general) - Re: Capturing in code the Rtf and Html of a merge document
... necessary to create such an email message. ... Dim Source As Document, Maillist As Document, TempDoc As Document ... Set oItem = oOutlookApp.CreateItem ... Set DataRange = Maillist.Tables.Cell.Range ... (microsoft.public.word.vba.general) - Re: Complex e-mail merge with unique attachment
... If the text that you want to be included in the body of the email message is ... Dim Source As Document, Maillist As Document ... ' Open the catalog mailmerge document ... Some recipients were leery of opening an unexplained attachment so I needed to include a short message within the e-mails themselves by way of explanation. ... (microsoft.public.word.mailmerge.fields) |
|