Jump to content
Server Maintenance This Week. ×

check error for send email


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

Recommended Posts

Hi,

Is there any way to check if I send to an incorrect email address.

My script look like this:

Set capture error (on)

Send mail()

Setfield gErrorNumber = Status(currentError)

where gErrorNumber is Global Number

The result of gErrorNumber is always zero even I did send to an invalid email address

Thanks in advance

HP

Link to comment
Share on other sites

How does Filemaker know that the address is invalid?

E-mail is more like a fast version of normal mail. You send a message then wait. Sometime later either the person will respond or the server will send back some kind of error message.

Filemaker maker is no longer in the picture at this point.

Now if you were using Filemaker for both incoming and outgoing e-mail, then you might be able to setup some kind of system where you parse the incoming messages and see if they are and error message from an e-mail server.

[ July 29, 2001: Message edited by: CaptKurt ]

Link to comment
Share on other sites

About the only thing you can do is validate the hell out of the field to make sure the entry is potentially correct.

Kurt is correct in that FMP is out of the picture once the send mail step is performed: if the message was correctly sent to the mail server then there is no error. There is no way of knowing if the mail server then finds the address is bad (this can take from seconds to days) so there is no way to trap for it.

About the only really robust way is to implement a verification scheme where people actually post you a message from the address, or you post one to them and they have to follow it up. This is pretty easy to do with Web Companion -- a lot of work but easy to do.

Link to comment
Share on other sites

Hi,

About this "hell out" validation. I've extracted a part of our more complex validation system on our email field.

It's a subscript called Check_Single_EmailSyntax:

Set Field [ gCheck_Email, "N_OK" ] -> this is used by the caller module

If [ Right( Trim( gEmail); 1) = "

Link to comment
Share on other sites

This topic is 8303 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.