Advertisement

08.04.2008 at 01:36PM PDT, ID: 23620387
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

Adding a recipient  recipient to the CC Line for e-mail  in VB

Asked by TAMSCODAN in Visual Basic Programming, SendMail Email Server, VB Script

I five checkboxes and i want to select the check boxes and be able to e-mail all the selected boxes. In my current configuration when I check a box i can only e-mail one even if i select more than one checkbox. How can i allow the other checkboxes to be added in the recipients box. Below is my code.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
Private Sub btn_SendMail_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_SendMail.Click
        Dim ma As New Mapi()
        Dim recipientAddress As String = "N-tron_Support@n-Tron.com"
        Dim subjectText As String = "Call Update"
        Dim bodyText As String = "Call Upate Data:" + Environment.NewLine + Environment.NewLine
        If chbx_Region1.Checked Then recipientAddress = "region1@n-tron.com"
        If chbx_Region2.Checked Then recipientAddress = "region2@n-tron.com"
        If chbx_Region3.Checked Then recipientAddress = "region3@n-tron.com"
        If chbx_Region4.Checked Then recipientAddress = "region4@n-tron.com"
        If chbx_Support.Checked Then recipientAddress = "n-tron_Support@n-tron.com"
        'defines the information in the body of the e-mail
        bodyText &= "Status: " & StatusComboBox.Text & Environment.NewLine
        bodyText &= "Company: " & Tbl_CompanyTextBox.Text & Environment.NewLine
        bodyText &= "First Name: " & Tbl_CustFirstNameTextBox.Text & Environment.NewLine
        bodyText &= "Last Name: " & Tbl_CustLastNameTextBox.Text & Environment.NewLine
        bodyText &= "Telephone Number: " & Tbl_TelephoneNumTextBox.Text & Environment.NewLine
        bodyText &= "Address: " & Tbl_AddressTextBox.Text & Environment.NewLine
        bodyText &= "Customer Notes: " & Customer_NotesTextBox.Text & Environment.NewLine
        bodyText &= "Model: " & ModelComboBox.Text & Environment.NewLine
        bodyText &= "Tech Notes: " & Tech_NotesTextBox.Text & Environment.NewLine
        bodyText &= "Tech First Name: " & Tech_First_NameTextBox.Text & Environment.NewLine
        bodyText &= "Tech Last Name: " & Tech_Last_NameTextBox.Text & Environment.NewLine
        bodyText &= "Tech Extension Number: " & Tech_ExtensionTextBox.Text & Environment.NewLine
        bodyText &= "Tech_Email: " & Tech_EmailTextBox.Text
 
 
        ma.AddRecip(recipientAddress, "", False)
        If (Not ma.Send(subjectText, bodyText)) Then _
            MessageBox.Show(Me, "MAPISendMail failed! " + ma.ErrorMessage(), "Send Mail", MessageBoxButtons.OK, MessageBoxIcon.Warning)
 
        ma.Reset()
        Me.Close()
    End Sub
[+][-]08.04.2008 at 02:12PM PDT, ID: 22156273

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Basic Programming, SendMail Email Server, VB Script
Sign Up Now!
Solution Provided By: omgang
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.04.2008 at 02:18PM PDT, ID: 22156346

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628