【发布时间】:2025-12-27 00:20:14
【问题描述】:
我正在使用 swiftmailer 从我的网站发送电子邮件。我正在尝试获取要发送的 html 电子邮件,但我想将 php 变量传递给电子邮件。
这可能吗?如果可以,我哪里错了?
->setBody(
'<html>' .
' <head></head>' .
' <body>' .
' Welcome to my site. To complete registration, please click activate below' .
' <a href="http://www.mysite.com/activate.php?=c' rawurlencode ($code)' ">activate ' .
' </body>' .
'</html>',
'text/html'
);
【问题讨论】:
标签: php html swiftmailer