Link to home
Start Free TrialLog in
Avatar of SimonPrice33
SimonPrice33

asked on

MailMessage with Voting Options

Hi,

I have been asked to develop a series of web forms, and have also been asked for an enhancement by way of using voting options.

Can anyone advise how best to mod my code allow voting options as m.votingoptions is not a member of mailmessage
Dim m As MailMessage = New MailMessage
        Dim from As String = "simon.price@mydomain.com"
        Dim recipient As String = "simon.price@mydomain.com"
        Dim sbjt As String = "Test Voting"
        Dim client As SmtpClient = New SmtpClient("contef02")


        m.From = New MailAddress(from)
        m.To.Add(New MailAddress(recipient))

        m.Subject = (sbjt)
        m.Body = mailBoxMessageTxt.Text

        m.IsBodyHtml = True
        client.Send(m)

Open in new window

Avatar of lenordiste
lenordiste
Flag of France image

this just cannot be done in the email you are going to send. What can be done is to provide a few URLs in your messageBody where each URL is a voting option pointing to a webform which will handle the voting logic. For instance:

http://www.mysite.com/votingPage.aspx?uid=xxxxxxx&option=1
http://www.mysite.com/votingPage.aspx?uid=xxxxxxx&option=2
http://www.mysite.com/votingPage.aspx?uid=xxxxxxx&option=3

make sure that you encrypt the user Id properly to prevent people from easily changing it and thus attempting to vote for other persons.
ASKER CERTIFIED SOLUTION
Avatar of Hairbrush
Hairbrush
Flag of Jersey image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SimonPrice33
SimonPrice33

ASKER

I thought this would be the case.....

User requirements changed at the last hour...