delicjous
02-18-2015, 09:07 AM
Hello,
is it possible to do a PHP-Module form to send a invite-email.
Sender should be the registered User email-adress and he should type in a small text to descripe why he is inviting.
Recipients email could typed in form-text-field.
I mean something like this:
<?php
$recipient = "--- from a html form---"; //
$sender = ". vB5_User::get('email')";
$subject = ". vB5_User::get('username') invite xou to forum";
$mailtext = "---get from form---";
$answerto = ". vB5_User::get('email')";
mail( $recipien,
$subject,
$mailtext,
"From: $sender\nReply-To: $answerto");
echo "Mail was send correct!";
?>
But I need a HTML-Form too and that is not that easy in a PHP-Module... perhaps I could do a frame like terms and rules at the register site with a php-file anywhere at root!?
Do have anybody a better idea to reallize somthing like this in VB5 until the invitesystem is not a feature of vB5?
Thanks and Greetings
is it possible to do a PHP-Module form to send a invite-email.
Sender should be the registered User email-adress and he should type in a small text to descripe why he is inviting.
Recipients email could typed in form-text-field.
I mean something like this:
<?php
$recipient = "--- from a html form---"; //
$sender = ". vB5_User::get('email')";
$subject = ". vB5_User::get('username') invite xou to forum";
$mailtext = "---get from form---";
$answerto = ". vB5_User::get('email')";
mail( $recipien,
$subject,
$mailtext,
"From: $sender\nReply-To: $answerto");
echo "Mail was send correct!";
?>
But I need a HTML-Form too and that is not that easy in a PHP-Module... perhaps I could do a frame like terms and rules at the register site with a php-file anywhere at root!?
Do have anybody a better idea to reallize somthing like this in VB5 until the invitesystem is not a feature of vB5?
Thanks and Greetings