...

View Full Version : Help with SmtpMail.Send



binici
11-16-2006, 09:19 PM
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...


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!

binici
11-17-2006, 01:28 AM
Hi all:



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



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



Thank you,



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum