Discussion Locked

visual basic and email

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
We have developed a system where by the customers get email everyday asking them to rate the services rendered to them, the mail message is only text based, we want to include our company logo on the mail that is going out (.gif file). we also want to give them radio buttons that they should use for the rating GOOD [] EXCELLENT [] POOR[] just dont cut is. the mail is send directly out of visual basic using mapi, any suggestions on how to achieve this

2 replies

by peyison

In order to do this you'll have to create an HTML email message. To include an image you'll use the tag. The problem you'll have though is with the radio buttons. Normally, when an HTML page has a form with radio buttons, text boxes, etc., theform is posted to another web page when the user presses "submit", and the data in the form is passed to the second page. I'm not even positive that email viewers will handle radio buttons ( tags), but if they do you need a way to capture the selected button. Simply responding to the email is not going to do it. The only thing I can think of is to have the email HTML form post to another web page on the Internet. The user will press a submit button instead of replying. The other issue is that your customers email software will have to be able to read HTML email. I'm probably out of room here - if you'd like, contact me at mike@peyison.com. Good luck.

by shanghai sam

I'm not sure what mail system you're using, but another approach is to use groupware to achieve the same result.

Exchange 5.5 permits its users to send stuff out with voting buttons. I expect that Lotus Notes can do something similar if that's the system you're on.

If you're using a POP system, then you're stuck with Visual Basic and MAPI. You can put a VB script into the HTML e-mail, with a link for each response. It could generate a MAILTO command that sends the user's response back automatically by clicking the link. If you're really fancy, you could then delete the message so they can't vote twice. I can't think of the code off hand right now, because my VB and HTML are pretty weak.

Good fortune,
Don

This discussion is closed to new replies.