# Cgi mailform (common issue)

**URL:** https://forum.kirupa.com/t/cgi-mailform-common-issue/18558
**Category:** Uncategorized
**Created:** [April 18, 2003, 12:49am UTC](https://forum.kirupa.com/t/cgi-mailform-common-issue/18558 "2003-04-18T00:49:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Eyeball](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@Eyeball](https://forum.kirupa.com/u/Eyeball)
#### Post date: [April 18, 2003, 12:49am UTC](https://forum.kirupa.com/t/cgi-mailform-common-issue/18558/1 "2003-04-18T00:49:31Z")

</div>

hi there  
i have set up mail form for my website so users can email right from my website and i am using perl mailform.pl for mail form , it seems that everything works fine except i don’t receive any mail  
any suggestions:

bellow is a code for my AS i thought maybe there is something to do with it .

userComments = new LoadVars();  
userComments.onLoad = function(success) {  
if (success) {  
gotoAndStop(“output”);  
} else {  
gotoAndStop(“error”);  
}  
};  
function sendComments() {  
var obj = userComments;  
obj.from = fromEmail.text;  
obj.name = fromName.text;  
obj.to = "mymail@msn.com";  
obj.subject = “comments”;  
obj.comments = comments.text;  
userComments.sendAndLoad(“[http://mysite.com/cgi-bin/formmail.pl](http://mysite.com/cgi-bin/formmail.pl)”, userComments, “POST”);  
gotoAndStop(“wait”);  
}

* * *

thank you very much

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 18, 2003, 3:51am UTC](https://forum.kirupa.com/t/cgi-mailform-common-issue/18558/2 "2003-04-18T03:51:31Z")

</div>

I can’t say if there are any bugs in your AS, but there may be a separate issue with the cgi script.

Most mail servers are setup so that either the sender or the recipient MUST be on a list of allowed domains. That list usually consists of the domains hosted by that ISP. This is done to prevent the use of the mail server as a relay for spam. Since the FROM address in your AS is a variable entered by the user you’ll need to make sure that the TO address is on the allowed list.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 18, 2003, 11:00pm UTC](https://forum.kirupa.com/t/cgi-mailform-common-issue/18558/3 "2003-04-18T23:00:16Z")

</div>

Hello,

I have a mail form.

[http://web.thinkcia.com/~calypso/MailForm.swf](http://web.thinkcia.com/~calypso/MailForm.swf)

I made it in flash. If you want the FLA just ask.

Cheers,

Billy
