CodeIgniter Forums
How can I send emails using a single input text. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: How can I send emails using a single input text. (/thread-53409.html)



How can I send emails using a single input text. - El Forum - 07-23-2012

[eluser]rd13[/eluser]
How can I send an email to a multiple or more email address by using only a single input text? is that possible? someone help me pls.


How can I send emails using a single input text. - El Forum - 07-23-2012

[eluser]rwestergren[/eluser]
Email addresses just need to be separated by commas.

Code:
$single_text = 'User <[email protected]>, Another User <[email protected]>';

mail($single_text, 'subject', 'message');