Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
sending multiple recipients email using smtp on PHP
Dwi Hyuga
Nov 23 2016 4:01 AM
247
Reply
I am really need your help,
I am trying sending multiple recipients email using smtp email on php, can you help me please? check my code out
if
(
$_SERVER
[
"REQUEST_METHOD"
] ==
"GET"
):
$to
=
"
[email protected]
,
[email protected]
"
;
$cc
=
"
[email protected]
"
;
$from
=
"
[email protected]
"
;
$subject
=
"Daftar PR Karet"
;
$body
= "
Berikut data PR karet pada tanggal
$now
:
$y
Note : pesan ini digenerate oleh computer.
Terima Kasih,
";
$SMTPMail
=
new
SMTPClient (
$SmtpServer
,
$SmtpPort
,
$SmtpUser
,
$SmtpPass
,
$from
,
$to
,
$cc
,
$subject
,
$body
);
$SMTPChat
=
$SMTPMail
->SendMail();
endif
;
but it wouldn't send, it'll send if I remove the secondary $to email, instead...
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
make a loop on string ("")
How to display First name and Last name?