Tectite form, trying to email HTML form as HTM attachment

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Tectite form, trying to email HTML form as HTM attachmen

Post by johnj » Wed Mar 20, 2013 1:31 am

In $mail->send,there is a parameter called body. It should contain the form which can be reused to sent as an attachment

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: Tectite form, trying to email HTML form as HTM attachmen

Post by seandisanti » Wed Mar 20, 2013 7:21 am

At the risk of over simplifying; if your goal is just to send the same email to a second recipient, why not just add a second recipient?

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: Tectite form, trying to email HTML form as HTM attachmen

Post by seandisanti » Wed Mar 20, 2013 8:02 am

Assuming that you only want the file to contain the information between the <html> and </html> tags, you should be able to parse the string prior to output using a regular expression. If you're not a fan of regular expressions, you could also use http://simplehtmldom.sourceforge.net/ to parse it.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 5 guests