简体   繁体   English

SMTP PHP邮件错误

[英]SMTP PHP Mail Error

I am including PHP variables in my smtp google mail. 我在我的smtp Google邮件中包含PHP变量。 However, everytime it causes an error: 但是,每次都会导致错误:

syntax error, unexpected T_string in line ___

For example, say the PHP variables are received via HTTP POST 例如,假设PHP变量是通过HTTP POST接收的

This is the section of the mail's code where the T_string, syntax error is coming: 这是邮件代码中T_string语法错误的部分:

<td class='w580' width='580'>
<p align='center' class='article-title' style='color: #de0303;'><singleline label='Title'>New Event For $clubName</singleline></p>
<div align='justify' class='article-content'>
<multiline label='Description'>
<p align="left">

    Club: $clubName <br>
    Event Name: $eventName <br>
            Description: $description <br>
        Location: $venue <br>
</multiline>
</div>

Credits to Mike W, the solution is to change the double quotes in the 归功于Mike W,解决方案是更改引号中的双引号

tag back to single quotes. 标记回单引号。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM