我想在Zend框架中制作电子邮件模板。
例如,
<html>
<body>
Dear {$username$},<br>
This is a invitation email sent by your {$friend$}.<br>
Regards,<br>
Admin
</body>
</html>
我想制作这个文件,在Zend框架中获取它,设置这些参数(用户名,朋友),然后发送电子邮件。
我该怎么做呢?Zend支持这一点吗?
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
string name;
cout<<"What would you like new html file to be named?"<<endl;
getline(cin,name);
cout<<"Creating New Html File...Moment."<<endl;
ofstream myfile (name)