www.webdeveloper.com
Results 1 to 2 of 2

Thread: Help with SmtpMail.Send

  1. #1
    Join Date
    Mar 2006
    Posts
    56

    Help with SmtpMail.Send

    Hello:

    I need to send two seperate message one to the the client, who is actually CC and another message that is sent to their broker, but with limited information. Its basically a confirmation message (registration application online) that the client fills out.

    I have this so far...

    Code:
    If strBrokerEmail = "" Then
                Dim Mail As New MailMessage
                'Mail.To = "MemberApplication@pwr.net"
                Mail.To = "roberta@pwr.net"
                'Mail.Cc = home_email.Text & ";" & strBrokerEmail
                Mail.Cc = home_email.Text
                Mail.From = """PWAOR Membership"" <MemberApplication@pwr.net>"
                Mail.Subject = "New Member Application - " & member_first_name.Text & " " & member_middle_initial.Text & " " & member_last_name.Text
                Mail.BodyFormat = MailFormat.Html
                Mail.Body = "info.........................."
    
    The top portion only sends it to the client and membership if the client doesnt choose to cc their broker 
    
    else
               Dim Mail As New MailMessage
                'Mail.To = "MemberApplication@pwr.net"
                Mail.To = "roberta@pwr.net"
                'Mail.Cc = home_email.Text & ";" & strBrokerEmail
                Mail.Cc = home_email.Text
                Mail.From = """PWAOR Membership"" <MemberApplication@pwr.net>"
                Mail.Subject = "New Member Application - " & member_first_name.Text & " " & member_middle_initial.Text & " " & member_last_name.Text
                Mail.BodyFormat = MailFormat.Html
                Mail.Body = "info.........................."
    
    Now how or what do I add so it also sends to their broker, but a different Mail.Body information?
    Sorta confused, I tried creating a new instance of MailMessage using a different variable name, but when I tested it the "Broker E-mail" recieves a "False", but the client and membership receives it.

    Thank for all the help!

  2. #2
    Join Date
    Mar 2006
    Posts
    56
    Hi all:



    Figured it out, this person had a similar issue...



    http://www.dmxzone.com/forum/topic.asp?topic_id=18492



    Thank you,

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles