Sending email from list


I want to send email to the recipient list,
so far, what I have done is,

mail.AddRecipient trim(“”)
mail.AddRecipient trim(“”)

What I need is just send the multi-email from the listbox which is populated from a file or database.

any help ?


And what else have you done? Have you tried to send the mail? Where is the rest of your code? Platform? Version of Xojo?

If you have a listbox of email addresses, loop over the lines and do those AddRecipient commands for each line… There’s the rough idea, so, like Beatrix said, show us what you’ve tried and we’re more than willing to help you :slight_smile:

You know, there’s a number of great resources for beginners.

First, if you’re an absolute beginner to programming, there’s the textbook. It teaches you to program as well as use Xojo at the same time. Great two-in-one system.

There’s also a manual that comes with Xojo that teaches you the ins and outs of using the IDE, the language, and the features within. You can find that in the Documentation folder next to your installation of Xojo. There’s also an online reference

Lastly, when you’re ready to learn from examples, there’s a folder full of example projects next to your Xojo install called “Example Projects” It helps when you don’t intend to reinvent the wheel. Do not copy and paste code from example projects, that won’t help you at all.