i am doing mail concepts. in this i want to send a dynamic attachments with email. actually user gets email with attachment. this attachment will be dynamic. how to create dynamic attachment for email.i tried this. but no use. anybody help.
i içeriği ile 'attachments.txt' dosyası var
User Name: <<name>>
Designid:<<designid>>
Designname:<<designname>>
Orderid:<<orderid>>
i gibi bu dosyayı güncellendi
$myfile = "attachments.txt";
$fh = fopen($myfile, 'w') or die("can't open file");
$stringData = str_replace("<<name>>", $fetuser[firstname], $fh);
//echo $fetuser[firstname];exit;
fwrite($fh, $stringData);
$stringData = str_replace("<<designid>>",$_SESSION[designid], $fh);
fwrite($fh, $stringData);
$stringData = str_replace("<<designname>>", $fetch_designname[designtype], $fh);
fwrite($fh, $stringData);
$stringData = str_replace("<<orderno>>", $ordno, $fh);
fwrite($fh, $stringData);
fclose($fh);
nihayet ben böyle posta eki eklenmiş $mail->AddAttachment("$myfile");
ama bu düzgün çalışmıyor. herkes yardımcı olur.