C
Carlo Goretti
Guest
Hey! Im trying to get out three email adresses comma separeted but i only get the first one..
Any ideas how to get the other two?
here is some of the email body:
<body lang="SV" link="#0563C1" vlink="#954F72" style="tab-interval:65.2pt">
<div>
<p>Carlo, mejl till <a href="mailto:test1@testsson.se">test1@testsson.se</a> , <a href="mailto:test2@testsson.se">test2@testsson.se</a> och
<a href="mailto:test3@testsson.se">test3@testsson.se</a> när uppgraderingen är klar.<o></o></p>
<p><o> </o></p>
<p><o> </o></p>
<p><o> </o></p>
</div>
</body>
</html>
Here is my C# Code:
for (int i = 0; i < lstChckBox.Count; i++)
{
if (lstChckBox.Checked == true)
{
//MessageBox.Show(appointments.Items.DisplayTo.ToString());
string HelText = appointments.Items.Body.ToString();
Clipboard.SetText(HelText);
int StartIndex = HelText.IndexOf("mailto:") + 7;
int LängdIndex = HelText.IndexOf(".se\"") - StartIndex + 3;
SubstringText = HelText.Substring(StartIndex, LängdIndex);
try
{
int StartIndexEmail2 = HelText.IndexOf(SubstringText);
int LängdIndexEmail2 = HelText.IndexOf(".se\"") - StartIndex + 3;
}
catch
{
}
Form1 form1 = new Form1();
//test2.EmailToTextGetSet = test3;
form1.EmailToTextGetSet = "test1";
Hide();
}
}
Continue reading...
Any ideas how to get the other two?
here is some of the email body:
<body lang="SV" link="#0563C1" vlink="#954F72" style="tab-interval:65.2pt">
<div>
<p>Carlo, mejl till <a href="mailto:test1@testsson.se">test1@testsson.se</a> , <a href="mailto:test2@testsson.se">test2@testsson.se</a> och
<a href="mailto:test3@testsson.se">test3@testsson.se</a> när uppgraderingen är klar.<o></o></p>
<p><o> </o></p>
<p><o> </o></p>
<p><o> </o></p>
</div>
</body>
</html>
Here is my C# Code:
for (int i = 0; i < lstChckBox.Count; i++)
{
if (lstChckBox.Checked == true)
{
//MessageBox.Show(appointments.Items.DisplayTo.ToString());
string HelText = appointments.Items.Body.ToString();
Clipboard.SetText(HelText);
int StartIndex = HelText.IndexOf("mailto:") + 7;
int LängdIndex = HelText.IndexOf(".se\"") - StartIndex + 3;
SubstringText = HelText.Substring(StartIndex, LängdIndex);
try
{
int StartIndexEmail2 = HelText.IndexOf(SubstringText);
int LängdIndexEmail2 = HelText.IndexOf(".se\"") - StartIndex + 3;
}
catch
{
}
Form1 form1 = new Form1();
//test2.EmailToTextGetSet = test3;
form1.EmailToTextGetSet = "test1";
Hide();
}
}
Continue reading...