how to set from field

I use FP 98 and want to send a form to email using action="_vti_bin/shtml.dll/test.htm"

How can I set the from field of the e-mail I receive.

Thanks,
Vincent
introwebAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MandakaCommented:
Introweb,


When the FP webbot that sends form results to an e-mail address, it is actually the server that does the mailing.  So as far as I know, there isn't a way to configure the "From" address that is listed in the e-mail being delivered to the configured address.

Perhaps there is a CGI script you can use to perform the same function that would allow the ability to configure the from address.  But I haven't ever really tried that, so I can't tell you if that exists or not.  My guess is that it would be rather difficult to change that regardless.  It would be the same thing as you changing the from address on your outgoing e-mail without getting your ISP involved.

That's probably not the answer your looking for, so what exactly are you trying to do?  Maybe there is another option.  The from addresses that I get responding from form pages are a little wierd, but I've configured my mail browser to filter those messages into special mail folders for easy retreval.

If that doesn't help, perhaps some more information on exactly what your trying to acomplish would help determine another route to get where your trying to get.


Chuck
0
zs6phdCommented:
If you can get your ISP / server administrator to install AspMail (http://15seconds.com/component/pg002037.htm) then you have a lot more flexibility.  The following code sample will give you an idea:

Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName   = "Joe’s Widgets Corp."
Mailer.FromAddress= "Joe@Widgets.com"
Mailer.RemoteHost = "mailhost.localisp.net"
Mailer.AddRecipient "John Smith", "jsmith@toolscorp.com"
Mailer.Subject    = "Great SMTP Product!"
Mailer.BodyText   = "Dear Stephen" & VbCrLf & "Your widgets order has been processed!"
if Mailer.SendMail then
  Response.Write "Mail sent..."
else
  Response.Write "Mail send failure. Error was " & Mailer.Response
end if


This approach allows you complete control over the process, and restricts it to exactly what you want to achieve.  The mail server need not be anywhere close to your web server!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.