Hello Sir,
I am testing your code and I have a problem with url link. When I received the mail, url link are broken. All url are cut.
e.g :
Hello Mrs. or Mr. TEST,
In order to confirm your subscription request, please click on the following link :
nameofmywebsite.com/confirmation.ph
...
d6dd58ee78cbda98
I use this code where
MSG_CONF_NEWSLETTER1 is a constant. It depends of the Language used.
$cle_abonnement is a varchar(32).
$charset='UTF-8';
// Message
$messageabonnement = $messageintro."\r\n" ;
$messageabonnement .= MSG_CONF_NEWSLETTER1 ."\r\n";
$adresse_confirmation_abonnement=$site_source_complet.'/confirmation.php?Langue='.$Langue.'&key='.$cle_abonnement ;
$messageabonnement .= $adresse_confirmation_abonnement."\r\n";
$messageabonnement .= "\r\n";
$messageabonnement .= "\n";
$messageabonnement .= '---------------------------------------'."\r\n";
....
$email_message=new email_message_class;
$email_message->default_charset=$charset;
$email_message->SetEncodedEmailHeader("To",$to_address,$to_name);
$email_message->SetEncodedEmailHeader("From",$from_address,$from_name);
$email_message->SetEncodedEmailHeader("Reply-To",$reply_address,$reply_name);
//$email_message->SetEncodedEmailHeader("Cc",'adresseemail','nom');
if(defined("PHP_OS")
&& strcmp(substr(PHP_OS,0,3),"WIN"))
$email_message->SetHeader("Return-Path",$error_delivery_address);
$email_message->SetEncodedEmailHeader("Errors-To",$error_delivery_address,$error_delivery_name);
$email_message->SetEncodedHeader("Subject",$subject);
$email_message->AddQuotedPrintableTextPart($email_message->WrapText($messageabonnement));
$error=$email_message->Send();
The result should be
In order to confirm your subscription request, please click on the following link :
nameofmywebsite.com/confirmation.ph
...
....
Thank you for your answer and sorry for my poor english.
Philippe