473,378 Members | 1,209 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

formmail

I am working on script that sends information from a form to an email
account. It worked fine on my campus account but when posting it to
the internet and adding the new site to the recipients folder, it does
not send me the email anymore. A friend suggested that I add || die
"Cannot send mail. $!"; after the open(MAIL, "|$mailprog") command to
get open(MAIL, "|$mailprog")|| die "Cannot send mail. $!"; which will
kill the script if it cannot open the mail command. After doing this,
I now get an error message saying script produced no output. Any ideas
as to how this can be resolved?
Jul 19 '05 #1
2 2486
I know when I changed hosts I had to escape the @ in my email address
or my scripts failed... that could be one issue.

Have you tried commenting out the mailig portion and adding a
break-code to see if the form is actually getting the information to
the script?

On 2 Feb 2004 14:22:27 -0800, la*****@wfu.edu (lokisapocalypse) wrote:
I am working on script that sends information from a form to an email
account. It worked fine on my campus account but when posting it to
the internet and adding the new site to the recipients folder, it does
not send me the email anymore. A friend suggested that I add || die
"Cannot send mail. $!"; after the open(MAIL, "|$mailprog") command to
get open(MAIL, "|$mailprog")|| die "Cannot send mail. $!"; which will
kill the script if it cannot open the mail command. After doing this,
I now get an error message saying script produced no output. Any ideas
as to how this can be resolved?


Jul 19 '05 #2
"lokisapocalypse" <la*****@wfu.edu> schrieb im Newsbeitrag
news:53**************************@posting.google.c om...
I am working on script that sends information from a form to an email
account. It worked fine on my campus account but when posting it to
the internet and adding the new site to the recipients folder, it does
not send me the email anymore. A friend suggested that I add || die
"Cannot send mail. $!"; after the open(MAIL, "|$mailprog") command to
get open(MAIL, "|$mailprog")|| die "Cannot send mail. $!"; which will
kill the script if it cannot open the mail command. After doing this,
I now get an error message saying script produced no output. Any ideas
as to how this can be resolved?


does your script send "Content-type:text/plain\n\n" or
"Content-type:text/html\n\n" first?
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mcp6453 | last post by:
I am trying to use Jack's FormMail script (http://www.dtheatre.com/scripts/formmail). Since I'm brand new at PHP and not very good at HTML, I have an easy question, which I will narrow down. When...
1
by: Kurt | last post by:
Hello, I have software that allows direct submission of tech support requests. The software connect directly to a formmail script. The problem is that if the user types a '=' or a '&' anywhere...
0
by: Craig | last post by:
I keep getting the error "Error: Bad/No Recipient" when submitting a form using formmail.pl Here is the part of the formmail.pl that you are supposed to alter to suit your needs using fake url...
4
by: Hmmm... | last post by:
I am setting up a web site for a friend. Her hosting service does not support Sendmail. It is an NT server. They recommend I use Smtp. I have been using something like formmail.pl when I have...
5
by: John Oliver | last post by:
I'd like the email produced by FormMail to show a specific From: address rather than postmaster@server.host.name Googling isn't helping me... not sure what to look for :-( -- * John Oliver ...
0
by: Aidan | last post by:
Hi PHP guru's, I've been working on creating a PHP formmail script. I have a working version, but I'd like to get feed back on what security holes I may have opened, and what I could do better....
2
by: Rico | last post by:
Hello, I'm using formmail.asp which is an emailing utility. Basically, the user fills out a request page, clicks "Submit" and the page posts to formmail.asp which emails the user information. ...
4
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 and have downloaded the free script formmail.php (version 4.1b). Wondered if anyone had experienced the same problem I'm having. I'm submitting a form to formmail.php, but...
3
by: Geoff Cox | last post by:
Hello, I am using the formmail.cgi script and wonder if it is possible to have the user enter their email address and then have the results sent to this address by formmail.cgi? If yes, how...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.