2017-10-07 24 views

回答

0

你可以用郵件ID作爲字符串,

$to = $email.",".$secondEmail; 
$email_from = 'website.com'; 
$email_subject = "Register Details: " ; 
$email_body = "Sender Name: $from" 
0

您可以添加多個郵件With comma separated

$to = "[email protected], [email protected]"; 
$email_from = 'website.com'; 
$email_subject = "Register Details: " ; 
$email_body = "Sender Name: $from" ; 

對於可變只需把它放在"";

$email1="[email protected]"; 
$email2="[email protected]"; 
$to = "$email1 , $email2"; 
+0

如果然後變量的電子郵件地址?像$ EMAIL1 = 「[email protected]」,和$ EMAIL2 =「[email protected] 「 – rahul

+0

使用逗號作爲分隔兩個電子郵件變量@rahul的字符串 –

相關問題