Problems in proccess.start("MailTo:")

ovanwijk

Member
Joined
May 29, 2007
Messages
6
Programming Experience
Beginner
As stated above i have some trouble whith this.
Not that it dont works but . . . . i want to be able to send a LOT of mails @ the same time under bcc.

My code

VB.NET:
Dim counter As Integer
        Dim Tstring As String = "ooo@geval.com"

        Do Until counter = 1000
            Tstring = Tstring + "," + "ooo@geval.com"
            counter += 1
        Loop

        Toevoegen.tools.StartDefaultMail("Test@gmail.com", Tstring)

Where the do loop should represent the amount of email addresses

VB.NET:
Public Sub StartDefaultMail(ByVal MailTo As String, Optional ByVal BCC As String = "")

        Try
            Process.Start("mailto:" & MailTo & "?bcc=" & BCC)

        Catch e As Exception
            MsgBox("Couldn't start default email application")

        End Try
    End Sub
(when i use e.message as exxeption then it gives the message: Acces denied)


And here the startdefaultmail

When i start the proccess with more as 150 email addresses it wont start.
Its possible to make my own mailclient ofcourse but its quite much since it should be able to send newsletters with pictures and such things (and it must be used by computer noobs) so i prefer giving them their own mail client.

But my problem is that i cant send that much mails @ the same time.
Is there any solution for this?

Greets
 
Last edited:
use the System.Net.Mail api instead, have the user design the message in your app and send it without using the default mail client
 
I tried that already but the problem is that they must type HTML code to make a nice e-mail. They want to be able to send email messages with pictures and such (i know how it works but for noobs its kinda hard).

Isnt it possible to add contacts to your default mail client and then send a whole contact group or something like that?

Greets
 
the problem is that they must type HTML code to make a nice e-mail.
They can use a RichTextBox, and you can use the ConvertToHTML function from the Converting RTF to HTML article. It won't allow images inserted in text, but these are much much easier to add as attachments anyway.
 
Back
Top