/*This code allows us to redirect to a different page once the Email has been sent.*/
/*-- The send method uses the default SMTP parameters as set in the app server configuration file.
This send method makes a connection to the SMTP server, sends the mail and then disconnects.
The result are returned as a number corresponding to the possible values.
The list of ValidSent, InvalidSent and Invalid addresses are returned in the email object itself
----*/
Local integer &resp = &eMail.Send();
Local boolean &done;
Evaluate &resp
When %ObEmail_Delivered
/* every thing ok */
/* Get the Message Set Number, message number Or just get the formatted messages from &email.ErrorDescription, &email.ErrorDetails;*/
&done = False;
Break;
End-Evaluate;
/* Email Success Notification*/
MessageBox(0, "Email Success", 0, 0, "Message not found");
End-If;
/* Email Success Notification*/
No comments:
Post a Comment