Creating a form that sends an email to inputted emails

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: Creating a form that sends an email to inputted emails

Post by seandisanti » Mon Nov 19, 2012 10:21 am

It's simple, and you don't need 10 inputs. just have one and have them separate with a semicolon or whatever. Explode out the string to get an array of recipients and proceed with mail().

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: Creating a form that sends an email to inputted emails

Post by seandisanti » Mon Nov 19, 2012 1:16 pm

no worries man. Explode creates an array from a delimited string. http://php.net/explode and mail http://php.net/mail lets you create and send mail. Also, any time you see or hear a function you're not familiar with, check out php.net/function where function is the name of the function. You'll typically see example usage, and user submitted comments at the bottom that can help understand errors or things to watch out for.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests