Welcome Guest, Not a member yet? Register   Sign In
code igniter mail function does include special characters with mail msg
#1

[eluser]Unknown[/eluser]
hi plz tell me i ve this code.

$
Code:
data['msg']="Dear '".$_POST['uname']."', \r\n Thank you for creating a profile on www.abc.com. In order to verify your email address please click on the link  below: \r\n \r\n www.whatif.abc.com/index.php/profile/signup/confirmation/'".$key."' \r\n Once acitivated, the direct link to your profile would be as follows:\r\n http://abc.com/'".$_POST['uname']."' \r\n Regards, \r\n www.abc.com Team\r\n [email protected]";

*************************************************************
and this the mail that i receive in my outlook inbox

Dear 'zaraq',
Thank you for creating a profile on www.abc.com. In order to verify your email address please click on the link below:


www.whatif.abc.com/index.php/profile/signup/confirmation/'4e8192d5c24a
51e5fda5e9e010296aaa'

Once acitivated, the direct link to your profile would be as follows:
http://abc.com/'zaraq'
Regards,
www.abc Team
info@abc.com

Problem: please see the emphasized points in my mail.. when i recieve email links includes special sign like (''), also the confirmation link is also broken to half remaing half is out of the link so it does not work.
plz reply
#2

[eluser]umefarooq[/eluser]
it will show the signs like this you have put in your code these single quote check your code properly

try this one i have modified your code

Code:
$data['msg']= "Dear ".$_POST['uname'].", \r\n Thank you for creating a profile on www.abc.com. In order to verify your email address please click on the link  below: \r\n \r\n www.whatif.abc.com/index.php/profile/signup/confirmation/".$key." \r\n Once acitivated, the direct link to your profile would be as follows:\r\n http://abc.com/".$_POST['uname']." \r\n Regards, \r\n www.abc.com Team\r\n [email protected]";




Theme © iAndrew 2016 - Forum software by © MyBB