ramm19 Posted June 18, 2007 Posted June 18, 2007 Hi, I need to send an Email to multiple addresses. This is what I need to do (not working): $to = '[email protected]' . ','; $to .= '[email protected]' . ','; $to .= '[email protected]' . ','; $to .= '[email protected]' . ','; $to .= '[email protected]'; tep_mail('david', $to, 'Test', $mail_body, 'what ever', '[email protected]'); I get a "Mail failure - malformed recipient address" error. please help! -David
germ Posted June 18, 2007 Posted June 18, 2007 tep_mail fields tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address); $to = '[email protected]' . ';'; $to .= '[email protected]' . ';'; $to .= '[email protected]' . ';'; $to .= '[email protected]' . ';'; $to .= '[email protected]'; tep_mail('david', $to, 'Test', $mail_body, 'what ever', '[email protected]'); I don't know if it supports multiple "to" addresses or not. I changed the "," to ";". You may have to send individually. Does that help? :unsure: Reply if you need more help, and I'll try to help. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted June 18, 2007 Posted June 18, 2007 Just a thought, but many don't want their email address spread around. It might be better to send individually for privacy sake. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.