This topic is locked

add/edit email notification based on field entry

3/9/2007 3:09:27 PM
ASPRunnerPro General questions
M
mfred author

I want to use the email notification event feature but I want it to be sent to an email entered into an email field in the add or edit form. If this is possible, what would be entered in "Email=".

J
Jane 3/13/2007

Hi,
use something like this:

email = dict("EmailField")



where EmailField is your actual field name where email is stored.

M
mfred author 5/7/2007

This just is not working. As long as the recipient in the email field has the same domain as listed in the user login settings, this works. But I get the following message when the email recipient is an email with a domain other than what is used for the user login settings. It is not an issue with a specific mail host. I have tried 3 different mail hosts and the exact same things occur.
The message that I get:
ASP error happened
Technical information

Error number -2147220977

Error description The server rejected one or more recipient addresses. The server response was: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

URL /clients/aim/servicecalls/ServiceCalls_edit.asp

SQL query select [Status], [DateofCall], [TimeofCall], [CallID], [DeviceLocation], [Caller], [CallerEmail], [IntakePerson], [Issue], [ServiceCallPlacedTo], [ServiceContact], [TimePlaced], [DateServiceCompleted], [TimeServiceCompleted], [ResolutionComments] From [ServiceCalls] where ([ServiceCalls].[CallID]=9)

Additional info Event: RetVal = BeforeEdit(dict, sWhere)

Sergey Kornilov admin 5/7/2007

This error means SMTP server is not configured properly and emails are in fact rejected.
Show this error message to your ISP.