Reply to Calling a Function inside the SendMail

Your name:

Reply:


Posted by Syl on 04/11/06 18:41

Hi Group - I have a function to send an email to a client after they
have successfully submitted a form on my site. I have a 2nd function
that prints their input to the browser as a confirmation.

I'd like to be able to include that print function inside my mail
message like this :

function sendToClient($email) {
$subject = 'Confirmation';
-----> $message = printConfirm($lang); <----
$headers = 'MIME-Version: 1.0' . "\r\n";
<snip>, etc
mail($to, $subject, $message, $headers);
}

This way I don't have to duplicate the output. The confirmation will
get printed to the browser AND the exact same content will be emailed.

When I executer this the email is blank.

Any expert ideas out there ?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация