I have a web page…when that page loads, i want an HTML page to be sent via email to their email address. but I don’t want it to be an attachment, I need it to be part of the body.
Fortunately, you cannot spam people who's email address you don't seem to have.
Did you believe that a scripting language is able to catch anybody's addy? Or are you talking about a member system which you want to loose all members within a very short time?
thanks for the reply, sorry, I should have given more details...
i will have their email address...here is exactly what will be happening...
a person registers at my site. then they get a thank you page. when that thank you page loads, i want an html page to be emailed to them. that html page is a confirmation page that also gives them login information, etc.and it has to be in the body of the email, it can't be an attachment.
but, the email MUST be sent based on the loading of the thankyou page. It can't be sent based on clicking the submit button. it's hard to explain...
I understand.but I don't want it to be an attachment, I need it to be part of the body.[/QUOTE]You might have a problem with that part. Many users cannot or do not want to (a part of them because they set their mailprogram to html-mails=no) receive mails in html format. How would you like to deal with these people?
@AdamGundryAug 03.2004 — #The most effective way to do this is to use MIME (Multipurpose Internet Mail Extensions) - you can send both HTML and text versions of a message in a single email, and the recipient's mail program should choose the correct one automatically.
Check out [url=http://www.zend.com/zend/spotlight/sendmimeemailpart1.php]this tutorial[/url] (quite long) for more details. You may wish to skip ahead to [url=http://www.zend.com/codex.php?id=103&single=1]this class[/url].