This topic is locked

Simple email

4/10/2006 4:36:30 AM
PHPRunner General questions
F
frank author

Hello,

I have developed a small application with PHP-RUNNER. I want to test the function Simple EMail but could not get success.
I add your default action "send simple mail" to the list view --> on load and modified the strings to my local adresses. The function does not work at all but do not give any error.
I have used the below command in a single PHP-file and the e-mail was send correctly without errors, so I think PHP.INI is ok for that.
$email="support@company.com";

$message="Hello there";

$subject="Sample subject";

mail($email, $subject, $message);
What am I doing wrong?

Sergey Kornilov admin 4/10/2006

Frank,
emailing should work.

Please try to remove the following two lines from generated include\dbcommon.phpfile:

if($cFrom)

ini_set("sendmail_from",$cFrom);

F
frank author 4/10/2006

Hi Sergey,
thank's very much. It works, now!!! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=9004&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />