Email Sending Problem

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
dh1340
User
Posts: 58

Email Sending Problem

Post by dh1340 »

Hi,
basic is:
1 table
only for User registration.

So the email to the user is send perfectly with my own text ...

but I need to send the same email to the Recipient defined in the email settings....

he is getting only an email with :

Record status changed as follows:
Table: table
Key value: 31

Action: Eingefügt

Senseless

Server events doesnt work so far:

// Email Sending event
function Email_Sending(&$Email, &$Args) {
//var_dump($Email); Uncomment this one if you want to see this Array info.
//var_dump($Args); Uncomment this one if you wan to see this array info.
//exit(); Uncomment this one if you want to stop and see the two above.
$Email->Subject .= "\n\r". "Neue Registrierung: ".$Args['rsnew']['name'];
$Email->Content = "<p>Guten Tag,<p/>Eine neue Registrierung zum Event am 20.3.2018 ist erfolgt</p><hr><p><br /></p>";
$Email->Content .= "<BR>\n Name: <b>".$Args["rsnew"]["name"]."</b>";
$Email->Content .= "<BR>\n Vorname: <b>".$Args["rsnew"]["vorname"]."</b>";
$Email->Content .= "<BR>\n Email: <b>".$Args["rsnew"]["email"]."</b>";
$Email->Content .= "<BR>\n Teilname: <b>".$Args["rsnew"]["teilname"]."</b>";
$Email->Content .= "<BR>\n Menu: <b>".$Args["rsnew"]["menu"]."</b>";
$Email->Content .= "<BR><BR>\n Bemerkung: <b>".$Args["rsnew"]["bemerkungen"]."</b>";
//$Email->Content .= "<BR><BR> erstellt von: <b>" . CurrentUserName()."</b>";


return TRUE;
}


THX


arbei
User
Posts: 9355

Post by arbei »


Record status changed as follows:
Table: table
Key value: 31

Action: Eingefügt

Senseless

The above email content is the Notification Email.

You can also add more recipient in Email_Sending Server Event of the "Registration Page".

For example:
$Email->Recipient .= "anotherEmailAddress@xxx.com";


Post Reply