mohamedazmi
Posts: 13
|
| Posted: 03/30/2011, 11:45 PM |
|
Can some one help me, anyone can post a simple step by step on how to send email using code charge PHP
|
 |
 |
francine
Posts: 6
|
| Posted: 03/31/2011, 1:35 AM |
|
step 1 :
you generate a record builder on a page
step 2 :
you select the formular, and on events after execute insert you add action "send email" and comptete the field
other solution you : on events after execute insert you add code
and type your custum code like this :
global $utilisateur;
ini_set("SMTP", "your smtp");
$to = $Component->user_login->GetText();
$subject = "Vos identifiants";
$message = "Bonjour " . $Component->user_prenom->GetText() . " " . $Component->user_nom->GetText() ."\r\n\n";
$message .= "--- Préinscription --- " ."\r\n\n";
$message .= "Votre compte vient d'être créé, il sera actif dès que vous aurez cliqué sur le lien suivant :\r\n\n";
$message .= "http://" . $_SERVER["SERVER_NAME"];
$message .= "/activer_compte_utilisateur.php?clef=" . $Component->user_clef_activation->GetText();
$message .= "&email=" . $Component->user_login->GetText() ."\r\n\n";
$message .= "Il vous suffira ensuite de vous connecter avec vos identifiant et mot de passe (ci-dessous) pour utiliser votre compte sur le site. \r\n";
$message .= "Gardez ce mail. Il vous sera utile si vous oubliez vos identifiant et mot de passe."."\r\n\n";
$message .= "Identifiant : " . $Component->user_login->GetText() . "\r\n";
$message .= "Mot de passe : " . $Component->user_pass->GetText() . "\r\n\n";
$message .= "Adresse du site : " . "http://" . $_SERVER["SERVER_NAME"] ."\r\n\n";
$message .= "cordialement.\r\n";
$from = "your adresse-email";
$charset = "Windows-1252";
$transferEncoding = "";
$additional_headers = "From: $from\nReply-To: $from\nContent-Type: text/plain; charset=$charset\nContent-Transfer-Encoding: $transferEncoding";
mail ($to, $subject, $message, $additional_headers, "-fyour-adresse-email");
ini_restore("SMTP");
|
 |
 |
damian
Posts: 838
|
| Posted: 03/31/2011, 1:37 AM |
|
here you go - i wrote a little tutorial for you...
http://docs.codecharge.com/studio40/html/QuickStart/Cre...Emails.html?toc
http://docs.codecharge.com/studio40/html/index.html?htt...Emails.html?toc
ok, ok, i didnt write it but its amazing what you find if you look... :)
try the task management tutorial and i reckon you will be amazed at how much you learn and how powerful this tool is.
http://docs.codecharge.com/studio40/html/index.html?htt...QuickStart.html
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
jjrjr2
Posts: 131
|
| Posted: 03/31/2011, 1:43 AM |
|
Hi
I never use the CCS built in mail function.
It really is limited in what U can do.
I use PHPMailer in all my CCS apps.
Very easy to use in CCS.
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
Real Web Development At: http://RealWebDevelopment.us |
 |
 |
mohamedazmi
Posts: 13
|
| Posted: 03/31/2011, 2:04 AM |
|
any example, pls attach file
TQ
|
 |
 |
laneoc
Posts: 154
|
| Posted: 03/31/2011, 6:33 PM |
|
I was pleased with this method:
http://ccselite.com/forums_topics_view.php?forum_topic_id=23&forum_id=2
_________________
Lane |
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 04/01/2011, 3:07 AM |
|
I used the mail php function and it works great.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
|