@Mr. Radical:
If your server allows to open outgoing ports but has disabled mail functions (mail, sendmail, qmail, smpt) on the server, you can configure PHPMailer to use third party email accounts, like Gmail/TLS or external SMTP server of your ISP.
You can send emails to multiple recipients.
@barbara1712
Append the users into the BCC. And send the email to your own as primary recipient. This sends emails to multiple users at a time. But if your are doing a real mass mailing, consider looping and generate emails for each users.
In general concept and what I am aware of this feature in PHPMailer so far, you have to loop through the users to send the different messages in the body. You can check swiftmailer once this has more features than PHPMailer.
I want to do the same thing for my e-mail form. I discovered that some hosting providers limit the mail function by allowing the message to be send to one receiver only.
yes. I am also using the PHPMailer class. But what I want is it possible to send the mail to multiple users at the same time.
For e.g. I want to send the mail to 2 users and in the message body there names should be displayed.
then do I need to use the loop for this?
Though it is pretty straight forward if you write your own PHP script, but I would recommend you to go through PHPMailer class which is really good and easy to use. I am using this since years.