Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with an online e-vite

Status
Not open for further replies.

jewel464g

Technical User
Jul 18, 2001
198
US
I'm trying to do a good deed here and have run straight into a wall. I'm building a website for a church free of charge, they have requested an online e-vite. Where people can fill out a web-based form
And the online form will send the message to the right of the form. Well I've done contact forms before and they all worked out great, but I think it's the length of the text that is causing my problem. Also I'm not sure how to do an html email.

This part of the code works.

<?php
$subject = "$your_name has invited you to Living Hope Church.";
$invite = "Do you ever get lost in a daydream, wishing your life was a bit more exciting or that you had an opportunity to have a real impact on the world? Do you wish you were an explorer like Indiana Jones, trading the safe and predictable for a thrilling adventure of discovery? Well, life doesn't have to be dull and boring. You can experience amazing adventures on a journey with Jesus Christ. When God begins to work in your life, He provides direction and meaning unlike anything you've ever encountered. As you begin to grow in your understanding of Christianity, you begin to pick up an assortment of useful "treasures" that can give your life new significance. Living Hope Church will help you find the treasures of faith, hope, and love, and explain how collecting them can make you a difference maker. ";
$comments=stripslashes("Dear: $send_name \r\n\r\n$invite \r\n\r\n$message \r\n\r\n$your_name");
mail($send_email, $subject, $comments);

?>


but when I try to add the rest of the verbage, it just quits working. No errors are displayed.

Thanks,
Jewel

When faced with a decision, always ask, 'Which would be the most fun?'
 
I would think the problem the quotes in the message....

you begin to pick up an assortment of useful "treasures" that can give your life new significance

Escape those and you shouldn't have a problem...

HTML Emails

Basically its the same as a regular mail, with a couple of additional headers. The message body is just the html code and whatever text you need
Code:
//additional email headers for html
$headers .= "MIME-Version: 1.0\r\n";
 $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

You may want to look into available email packages like phpmailer...



Bastien

Cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top