eggster34
asked on
Email information in a basic form via smtp with authentication
Hi, I have a basic form with
Name
Last Name
Company
Address
City
State
Zip Code
Phone
Email
and I'd like to send the information in this form via smtp through an outside server using smtp authentication to a fixed email address.
Is there a form that you have developed or use that you could share with me which I modify? I'm a beginner level PHP programmer.
Thanks!
Name
Last Name
Company
Address
City
State
Zip Code
Phone
and I'd like to send the information in this form via smtp through an outside server using smtp authentication to a fixed email address.
Is there a form that you have developed or use that you could share with me which I modify? I'm a beginner level PHP programmer.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
how can I pass the variables from my html form (it has to be html) into these mailing scripts?
make the form in php
<?php
if (isset($_POST['message'])) {
...
}
?>
<html>
...
<form method="post" action="">
...
<textarea name="message">
...
<?php
if (isset($_POST['message']))
...
}
?>
<html>
...
<form method="post" action="">
...
<textarea name="message">
...
ASKER
I can't, it has to be an html form because it is referenced by a flash file that I cannot change, it was programmed by an earlier developer. how can I achieve the same thing via html?
ASKER
PEAR did it for me, thanks a lot indeed.
ASKER
Works like a charm even in a restricted shared hosting environment. Thanks!
http://www.codewalkers.com/c/a/Email-Code/Smtp-Auth-Email-Script/