Jump to content

auto sending email from web


nati

This topic is 8354 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Is there a way to auto send an email from FMP db after clicking "Submit" button from web page?

I've got everything working with CDML but can't figure out a way to auto send the email to someone after record has been submitted. I can do it manually so it works ok, just need to automate!

all help appreciated...

nati

[ June 26, 2001: Message edited by: nati ]

Link to comment
Share on other sites

Thanks, tho not sure I understand.

I have web site and it has fields that user fills out. When they are done they click "Submit" which populates the database. In the database I have an email script setup that then sends this information to the secretary. This all works fine but I have to manually send the email. Is there a way to automatatically send this email after the person clicks on the Submit?

Thanks,

nati

Link to comment
Share on other sites

In your form CDML add:

<input type="hidden" name="-mailto" value="Where You Want The Mail Sent">

<input type="hidden" name="-MailFrom" value="Return e-mail address">

<input type="hidden" name="-MailSub" value="Subject">

<input type="hidden" name="-MailHost" value="pop host">

<input type="hidden" name="-MailFormat" value="mail.txt">

The mail.txt file should be in the web folder, like a CDML page, but the contents will be the fields / format to be in the body of the e-mail, for instance:

[FMP-Field: Name] has just been added to the blah blah database. Home Phone: [FMP-Field: Home Phone], Work

Phone: [FMP-Field: Work Phone], E-Mail: [FMP-Field: E_Mail], Web Page: [FMP-Field: Personal Web Page]

Have Fun.

Link to comment
Share on other sites

This topic is 8354 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.