TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dwi Hyuga
NA
116
21.7k
sending multiple recipients email using smtp on PHP
Nov 23 2016 4:01 AM
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...
Reply
Answers (
1
)
make a loop on string ("")
How to display First name and Last name?