Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
This is new to me, but I am trying to make the "send mail" function work on my flash page. Any help would be greatly appriciated, I have been working on this for 3 days now
Here is the info:
ERROR MESSAGE:
Warning: main(Mail.php): failed to open stream: No such file or directory in /u34/swaves/email tutorial/php/sendtofriend.php on line 4
Fatal error: main(): Failed opening required 'Mail.php' (include_path='.:/usr/local/php/include') in /u34/swaves/email tutorial/php/sendtofriend.php on line 4
$msg="Your friend <b>".$yname."</b> (".$yemail.") sent you this article!<br>";
$msg.="<br><br><a href=".$url."> Click here to view article</a>";
$msg.="<br><br>".$url;
$msg.="<br><br>Your friend's message:<br><br>".$message;
<?php
define("_MAIL_MSGBODY", "Message body is not set.");
define("_MAIL_FAILOPTPL", "Failed opening template file.");
define("_MAIL_FNAMENG", "From Name is not set.");
define("_MAIL_FEMAILNG", "From Email is not set.");
define("_MAIL_SENDMAILNG", "Could not send mail to %s.");
define("_MAIL_MAILGOOD", "Mail sent to %s.");
define("_MAIL_SENDPMNG", "Could not send private message to %s.");
define("_MAIL_PMGOOD", "Private message sent to %s.");
?>
CONFIG.PHP - personal data *** out
PHP Code:
<?php
#Change the value of the following variables according to your configuration
$smtphost = "smtp.****"; #SMTP Server name/IP
$smtpport = 25; #Change to your SMTP server port if not 25
$username = "***@****.com"; #SMTP UserName
$password = "****"; #SMTP Password
$fromName = "****"; #A default name value to indicate where the email is from
$fromEmail = "****"; #A default email value to indicate where the email is from
php files do *not* live in cgi-bin, traditionally, but in
the web-servers document root (or wherever your virtual host
has its document root). If the file is in the current working
directory and can't be found it may be an issue of case (real
file spelt mail.php, script looking for Mail.php?) ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.