Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8614489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:07:58+00:00 2026-06-12T05:07:58+00:00

i get a string whith email adresses, seperated by a ; which look like

  • 0

i get a string whith email adresses, seperated by a “;” which look like this:

geve@krag.de;;;Tobias@nxs.de;Wissel@weg.de;Sand@nex.de;Claudia@bea.de;;

i want to send an appointment to these email adresses here a sample to one person:

Dim appointment As New EWS.Appointment(esb)
            appointment.Subject = "Einladung zu einem Termin"
            appointment.Body = txtThema.Text
            appointment.Start = Von
            appointment.End = Bis
            appointment.Location = "Raum 202 Kleinostheim"
            appointment.RequiredAttendees.Add("geve@krag.de")  // HERE ARE THE Attendees
            appointment.Save(EWS.SendInvitationsMode.SendToAllAndSaveCopy)

i need every email adresses exept the first, becuase he sends the mails.
how can i do that?

thanks in advance for your help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:07:59+00:00Added an answer on June 12, 2026 at 5:07 am

    Here’s how you would actually split the string into a string array:

    Dim emails As String() = emailString.Split({";"}, StringSplitOptions.RemoveEmptyEntries)
    

    There are other versions of the overloaded “Split” method, but that particular one lets you to pass in a StringSplitOptions value, allowing you to rule out blank entries right away.

    After you have the string array, you can loop through and omit the first one in a few different ways.

    We could use a For loop and skip the first entry entirely:

    ' Regular For loop approach
    Dim emails As String() = emailString.Split({";"}, StringSplitOptions.RemoveEmptyEntries)
    
    Dim appointment As New EWS.Appointment(esb)
    With appointment
        .Subject = "Einladung zu einem Termin"
        .Body = txtThema.Text
        .Start = Von
        .End = Bis
        .Location = "Raum 202 Kleinostheim"             
    End With
    
    ' start at i = 1 to skip index 0
    For i = 1 To emails.Length - 1
        appointment.RequiredAttendees.Add(emails(i))  ' HERE ARE THE Attendees
    Next
    
    appointment.Save(EWS.SendInvitationsMode.SendToAllAndSaveCopy)
    

    Or identify the sender’s email and use a For Each with an If to omit it:

    ' For Each approach
    ' set up string array and appointment object like above
    
    Dim sender As String = emails.FirstOrDefault()
    
    ' ignore all instances of the sender's address
    For Each address In emails
        If address.ToLower <> sender.ToLower Then
            appointment.RequiredAttendees.Add(emails(i))  ' HERE ARE THE Attendees
        End If
    Next
    
    appointment.Save(EWS.SendInvitationsMode.SendToAllAndSaveCopy)
    

    I’d say play around with it though, and use the approach that best suits you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get a string which contains a sentence in two lines : 'hello this
I would like to send a html string with a GET request like this
I can't get this to work.. I have an String which I want to
I need to get string array or list with ajax and Action, this is
I'm collecting all my user's email addresses for a mass mailing like this: def
I am writing an application which tests email addresses, for one part of this
im trying to embed an image when sending an email with MvCMailer like this:
I'm writing an Apache module and want to get a string with the Apache
When I send an object to NSLog, I get a string with three attributes.
My Java code must get string HH:MM from console and needs to operate with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.