Jump to content

Recommended Posts

Posted

I opened a help desk ticket on this one, but they said that they could not help me and I should ask on the forums. So, here I am.

 

First off, all of the accounts mentioned here are hosted at TCH.

 

I have a site at domainA.com. On this site, I have been using LevelTen Formmail to process an online form and send the results to an email address. For our purposes, let's call that email address joe@domainA.com. Everything worked fine for months until...

 

Someone who legitimately has accesss to the server and control panel decided that it would be good to have the results of the form cc'ed to another email address at the domain. It is simple enough to do as my before and after examples will illustrate:

 

Before (worked)

>$formAction['default'] = array(
'recipient' => 'joe@domainA.com',
'recipient_cc' => '',
'recipient_bcc' => '',
'subject' => 'Quote Request',	
'redirect' => 'http://domainA.com/thankyou.html',
'email' => 'email',	
'realname' => '',	
'required' => '',
'format' => 'html',	
'sesrep_max_items' => '200',
);

 

After (screwed things up)

>$formAction['default'] = array(
'recipient' => 'joe@domainA.com',
'recipient_cc' => 'harry@domainA.com',
'recipient_bcc' => '',
'subject' => 'Quote Request',	
'redirect' => 'http://domainA.com/thankyou.html',
'email' => 'email',	
'realname' => '',	
'required' => '',
'format' => 'html',	
'sesrep_max_items' => '200',
);

 

Now, it seems that by having the script attempt to deliver to two email addresses from the host domain it has disabled all mail from the form going to accounts at domainA.com. I put the script back to its original form and now nothing will be sent to domainA.com. However, it will send mail to accounts that are not on domainA.com. To illustrate, this is how the script is currently setup and it is working fine but it is a bit of a kludge.

 

Current (works)

>$formAction['default'] = array(
'recipient' => 'paul@domainB.com',
'recipient_cc' => '',
'recipient_bcc' => '',
'subject' => 'Quote Request',	
'redirect' => 'http://domainA.com/thankyou.html',
'email' => 'email',	
'realname' => '',	
'required' => '',
'format' => 'html',	
'sesrep_max_items' => '200',
);

 

So, to sum up, the script works fine sending to addresses anywhere but on the host domain. The host domain is in the valid referres list, so that is not the problem.

 

Is it possible that the mail service on the server is somehow not allowing the delivery of items to the host domain?

 

Thanks

Posted

Have you checked their documentation on their site?

Check to see if $validReferrers has been changed.

 

If you have a local copy (on your computer) that you originally uploaded

ftp it back up.

 

Another way to send the form to multipule recipients

is to send the form to a non existent address

and use cpanel to forward it to valid accounts

use another forward to send it to more accounts.

Posted

Thanks for the reply Don.

 

Yes, I have been on their site and the the documentation is...lacking.

 

All of the valid referrers are OK. I uploaded a copy of the original working script from my PC and it still will not deliver to addresses on that domain whether they exist or not.

Posted

When you use the test form, what error messages do you get?

 

I just installed it and I had it send to another domain using the test form,

but had to add myotherdomain.ext to

$validReferrers = array('mydomain.biz','www.mydomain.biz', 'myotherdomain.net');

the last is where I sent the e-mail, note no www.

Posted

OK. I stripped everything down and started over. New copy of the script, new test form.

 

I can send to any address as long as it is not part of the host domain.

 

Can it be that something has gone awry with the mail service on the server? Can that be checked or restarted?

Posted

What about $validReferrers ?

You must list all domains and subdomains from which you are submitting the form, and any domains were e-mails are being sent, in the validReferrers array

Do you get any error messages?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...