Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable Sending to different emails if condition meet #2888

Closed
JonthueM opened this issue Mar 28, 2023 Discussed in #2887 · 1 comment
Closed

Unable Sending to different emails if condition meet #2888

JonthueM opened this issue Mar 28, 2023 Discussed in #2887 · 1 comment

Comments

@JonthueM
Copy link

Discussed in #2887

Originally posted by JonthueM March 28, 2023
I notice that the address that is used for i.e. Fervent foodies is also used for The Conversation. I tried to clear it as you see below on Fervent foodies but php didn't like that lol!

foreach($_POST['growgroups'] as $growgroups)
		{
			
			if ($growgroups === 'Fervent Foodies')
			{
				$mail->Subject = "Interested in Grow Group Fervent Foodies";
				$mail->addAddress("[email protected]");
				$mail->send();
				$mail->addAddress("");
			} 
			if ($growgroups === 'The Conversation')
			{
				$mail->Subject = "Interested in Grow Group The Conversation";
				$mail->addAddress('[email protected]');
				$mail->send();
			}
			if ($growgroups === 'Wednesday Night Bible Study')
			{
				$mail->Subject = "Interested in Grow Group Wedensay Night Bible Study";
				$mail->addAddress('[email protected]');
				$mail->send();
			} 
			if ($growgroups === 'Its Not About Me')
			{
				$mail->Subject = "Interested in Grow Group It's Not About Me";
				$mail->addAddress('[email protected]');
				$mail->send();
			} 
			if ($growgroups === 'Young Couples Mentorship')
			{
				$mail->Subject = "Interested in Grow Group Young Couples Mentorship";
				$mail->addAddress('[email protected]');
				$mail->send();
			} 
			if ($growgroups === 'Whats Next')
			{
				$mail->Subject = "Interested in Grow Group Whats New";
				$mail->addAddress("[email protected]");
				$mail->send();
			}  
		}
```</div>
@Synchro
Copy link
Member

Synchro commented Mar 28, 2023

See answer in #2887

@Synchro Synchro closed this as completed Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants