doctorbill
asked on
php phpmailer
I have the following page (attached) which is working on my system. What I am trying to do is to set the page up so that when the page is opened it does not send immediately. I need to put into the body section some php recordset data from a query (again this is ready to go and I should just be able to enter this in the page) and then push a "send" button the send the completed page
The problem I am having is to put the send button on the page
mytest.php
The problem I am having is to put the send button on the page
mytest.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ooops - sorry - I see how it works. I will try with a database record
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks so much for your input - the page is working fine
Just one question - how can I set the data up so that I can use html formating and send this data through as html formated ?
I have attached my latest page constructed from your code
mytest-form-db.php
Just one question - how can I set the data up so that I can use html formating and send this data through as html formated ?
I have attached my latest page constructed from your code
mytest-form-db.php
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok - one last thing:
Sorry to be cheaky but the script is sending an attachment which is pre-defined in terms of location and name - you can see this in the script above
How can I add a file browser so that I can define my own file to send as an attachment. If I could do this then I don't need to be able to send as formatted html as I can preformat the file as a pdf using other scripts
Sorry to be cheaky but the script is sending an attachment which is pre-defined in terms of location and name - you can see this in the script above
How can I add a file browser so that I can define my own file to send as an attachment. If I could do this then I don't need to be able to send as formatted html as I can preformat the file as a pdf using other scripts
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Gave me a lot to work on
ASKER
$mail->Body = "This is the HTML message body <b>in bold!</b>";
If I get records for the variable "$text_from_db = "blah blah blah blah";" how will this be sent through