I am stuck into a problem from hours which has occurred due to @ symbol in message while sending an email. Does anyone know how to resolve this, It may save mine a lot of time. following is my code
$message .= '<p> '.$gift_card->field_from_name["und"][0]["value"].' has sent you a gift card </p>';
where $gift_card->field_from_name["und"][0]["value"]
returns email id ( which contains @ sign ) and when I remove this line from complete message it works properly
使用此代码-
$message .= "<p> '".$gift_card->field_from_name["und"][0]["value"]."' has sent you a gift card </p>";
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.