im use register
security->user registration page ->enable->send registration email
on php email setting:
SMPT Server : smtp.gmail.com
smMPT SERVer username : users@gmail.com
SMPT SERVER PASSWORD : ******
SENDER : usersend@gmail.com
receipt: receipt@gmail.com
Security : TLSAfter registration eror.SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshootingcan any help clue?
thanks
You need to set the port correctly. You may google “phpmailer gmail”.
Try port 587.
thanks for reply solved…im create email sending on functionfunction Email_Sending($email, &$args) {
//var_dump($email); var_dump($args); exit();
if (CurrentPageID() == “add”) { // Jika halaman Add
$Email->Recipient = $Args[“rsnew”][“yusuffkurniawan91@gmail.com”];
$Email->Subject = “ganti”;
$Email->Content .= "\nAdded by " . CurrentUserName();
}
return TRUE;
}and im tes but email not sent.
are there other settings for this?
thanks
With regard to: $Args[“rsnew”][“yusuffkurniawan91@gmail.com”];1) the variables are $email & $args, not $Email & $Args
2) uncomment the “var_dump” line and regenerate - you will then see the available properties/values of both
yes im try mr adam.thanks for help
1.
function Email_Sending($email, &$args) {
//var_dump($email, $args); exit();
//if (CurrentPageID() == “add”) {
/$email->Recipient = $args["rsnew"]["email"];
//$email->Subject = "ganti";
//$email->Content .= "\nAdded by " . CurrentUserName();
}
return TRUE;
}has not succeeded.
2.
function Email_Sending($email, &$args) {
var_dump($email, $args); exit();
}
debug does not issue the value of $ email or $ args.
can anyone help.
thanks
this issue has solved .but email
and format email:
Record status changed as follows:Table: requestnote
Key value: SPK/MK/GR/311219/999014
Action: Insertedhow change email or with custom file.I have tried changing and using replacecontent but the email has not changed. there’s something wrong with my code below.function Email_Sending($email, &$args) {
//var_dump($email, $args);
//exit();
if (CurrentPageID() == “add”) { // If Add page
//$email->Recipient = $args[“rsnew”][“email”]; // Change recipient to a field value in the new record
//$email->Subject = “My New Subject”; // Change subject
//$email->ReplaceContent(“<unpayment”, $sTable);
//$email->ReplaceContent(“no tagihan”, $sKey);
//$email->ReplaceContent(“tagihan”, $sAction);
//$email->ReplaceContent(“”, $sUserName);
//$email->Content .= "\nAdded by " . CurrentUserName(); // Append additional content
$email->Recipient = $Args[“rsnew”][“email”]; // Ganti penerima ke nilai field pada record baru
$email->Subject = “okk”; // Ganti subject Email
$email->ReplaceContent(“unpayment”, $sTable);
$email->ReplaceContent(“no tagihan”, $sKey);
$email->Content .= "\nAdded by " . CurrentUserName(); // Tambahkan isi Email lainnya
}
return TRUE;
}this code not work.
thanks for helping