can you post the revelant portion of the complex-scripts-that... can send e-mail
Main Topics
Browse All TopicsHi!
Have a look at the code below :
----------------------
#!/usr/bin/perl
$mailp = "/usr/sbin/sendmail -t";
$from = 'dingdang@erakan.net';
$to = 'shukri@dbhd.com.my';
$subject = "Testing";
$msg =qq~Testing out the message!\nTesting Testing!~;
open(MAIL,"|$mailp") or die "Cannot open $mailp: $!";
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $subject\n\n";
print MAIL "$msg\n";
close (MAIL);
print "Sent to: $to via $mailp\n";
exit;
------------------
my ISP use the correct $mailp.
now, when i run the code from the command line (perl mail.cgi - assume that the code's filename is mail.cgi) and i don't receive any email!
i can use my hosting sendmail command since other complex-scripts-that-was-n
any idea whats wrong?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
.my is TLD for Malaysia.. a country between Singapore and Thailand :)
i'm working with my hosting provider atm. seems like more than their MTA issue rather than the script.
It is weird because if i call the script via web (with content header), the mail successfully send out immediately. if the script was called from console (telnet), it will only be sent out later, maybe two to three hours delay.
conform that the problem is related to user permission as when running directly from web with apache permission, the mail will go through, but if running from console, it will check for aliasdomain and since it don't have a permission to do that, the mail won't get sent.
i'll accept your answer.
thank you Adam314!
Business Accounts
Answer for Membership
by: mjcoynePosted on 2006-03-03 at 04:03:19ID: 16093395
You get no errors at all? Do you have access to sendmail logs you can check? Is the address "@dbhd.com.my" correct (I've never heard of a .my domain)?