Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Editor: Error sending email when validating?

Quote Reply
Editor: Error sending email when validating?
Hi,

I've just got around to looking at the editor features of 1.13 and have come across a problem when validating links through an editors' login.

I get the following error after validating a record:

Unable to send addition email - Reason: No "To:" Address

The record has a 'Contact Email' address and validates OK, the form contents are exactly the same as the "Admin" validation form, the field name is the same - but it still complains that there is no 'To:' address.

When I validate records using the "Admin" control panel I don't get any errors.

Anyone come across this before and know how to solve it?

References:

admin.cgi - sub validate_records
&html_validate_email ($in, $db, { Category => $name, %{$links{$id}} });

maintain.cgi - sub validate_records
&Links::Admin_HTML::html_validate_email ($in, $db, { Category => $name, %{$links{$id}} });

Admin_HTML.pm - sub html_validate_email
$to = $link->{'Contact_Email'};


Any help appreciated - thanks!

All the best
Shaun

Last edited by:

qango: Nov 17, 2001, 3:17 PM
Quote Reply
Re: [qango] Editor: Error sending email when validating? In reply to
Check the column names versus the codes, qango...

If you have Contact Email (with no underscore), then the problem is that the email column is hardcoded in the script as Contact_Email.

Hope this helps.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Heckler] Editor: Error sending email when validating? In reply to
Eliot,

Thanks. I double-checked the field names in the .def files and on the validate form and everything was OK, so I took a fresh look at the files.

I finally tracked the problem down to a modification I've done to accommodate two validation tables; a regular table, and a fast-track payment based table.

The resulting addition email is different based on which validation process the link goes through, i.e.; fast-track or regular, and after modifying maintain.cgi to 'tag' the links as 'regular' it now works as expected.

All the best
Shaun
Quote Reply
Re: [qango] Editor: Error sending email when validating? In reply to
Great...glad you figured it out!
========================================
Buh Bye!

Cheers,
Me