CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Event - PHP code for mail sending

Print topic Send  topic

Author Message
Roger
Posted: 05/01/2001, 6:54 AM

Hi, Anyone know how to suggest how it should be done.
I know I should use the PHP mail() function but I have no idea how to use it
in CC.

--

Rgds
Roger Tng


CodeCharge
Posted: 05/01/2001, 9:37 AM

Please look at the "Tell-A-Friend" example included with CodeCharge.
There is a "Before Insert" PHP event that sends emails, like this one:

$to_email = get_param("to_email");
$from_email = get_param("from_email");
$subject = "Web Page from " . get_param("from_name");
$body = "Hello " . get_param("to_name") . "!" . chr(13) .
chr(13) . get_param("from_name") .
" sent you this page from the CodeCharge Web Site." . chr(13) .
"http://www.codecharge.com" . chr(13) . chr(13) . "Comments from " .
get_param("from_name") . ":" . chr(13) . get_param("comments");

mail($to_email, $subject, $body,"From: $from_email\nReply-To:
$from_email\nX-Mailer: PHP/" . phpversion());



"Roger" <roger@web4sme.net> wrote in message
news:9cmf5r$5fs$1@mail.tankhill.com...
> Hi, Anyone know how to suggest how it should be done.
> I know I should use the PHP mail() function but I have no idea how to use
it
> in CC.
>
> --
>
> Rgds
> Roger Tng
>
>
>

Roger
Posted: 05/01/2001, 9:58 AM

Thanks. Got it working now.

--

Rgds
Roger Tng

"CodeCharge" <support@codecharge.com> wrote in message
news:9cmoor$nig$1@mail.tankhill.com...
> Please look at the "Tell-A-Friend" example included with CodeCharge.
> There is a "Before Insert" PHP event that sends emails, like this one:
>
> $to_email = get_param("to_email");
> $from_email = get_param("from_email");
> $subject = "Web Page from " . get_param("from_name");
> $body = "Hello " . get_param("to_name") . "!" . chr(13) .
> chr(13) . get_param("from_name") .
> " sent you this page from the CodeCharge Web Site." . chr(13) .
> "http://www.codecharge.com" . chr(13) . chr(13) . "Comments from " .
> get_param("from_name") . ":" . chr(13) . get_param("comments");
>
> mail($to_email, $subject, $body,"From: $from_email\nReply-To:
> $from_email\nX-Mailer: PHP/" . phpversion());
>
>
>
> "Roger" <roger@web4sme.net> wrote in message
>news:9cmf5r$5fs$1@mail.tankhill.com...
> > Hi, Anyone know how to suggest how it should be done.
> > I know I should use the PHP mail() function but I have no idea how to
use
> it
> > in CC.
> >
> > --
> >
> > Rgds
> > Roger Tng
> >
> >
> >
>
>

Paul WOlsink
Posted: 05/09/2001, 1:09 PM

Hi There

One question though.... I'm using this on my hosting site , but how does PHP
do the mailing? Does it use a SMTP daemon on the server? Does Sendmail or
other daemon be running on that particular server? I 've installed Tell-a
friend after generating it, made some HTML code changes and voila! , but I
still don't know how it works! I see no reference of a SMTP daemon.

regards
Paul

"CodeCharge" <support@codecharge.com> schreef in bericht
news:9cmoor$nig$1@mail.tankhill.com...
> Please look at the "Tell-A-Friend" example included with CodeCharge.
> There is a "Before Insert" PHP event that sends emails, like this one:
>
> $to_email = get_param("to_email");
> $from_email = get_param("from_email");
> $subject = "Web Page from " . get_param("from_name");
> $body = "Hello " . get_param("to_name") . "!" . chr(13) .
> chr(13) . get_param("from_name") .
> " sent you this page from the CodeCharge Web Site." . chr(13) .
> "http://www.codecharge.com" . chr(13) . chr(13) . "Comments from " .
> get_param("from_name") . ":" . chr(13) . get_param("comments");
>
> mail($to_email, $subject, $body,"From: $from_email\nReply-To:
> $from_email\nX-Mailer: PHP/" . phpversion());
>
>
>
> "Roger" <roger@web4sme.net> wrote in message
>news:9cmf5r$5fs$1@mail.tankhill.com...
> > Hi, Anyone know how to suggest how it should be done.
> > I know I should use the PHP mail() function but I have no idea how to
use
> it
> > in CC.
> >
> > --
> >
> > Rgds
> > Roger Tng
> >
> >
> >
>
>

Roger Rabbit
Posted: 05/19/2001, 6:35 PM

Did you ever get an answer to this Roger? If not email me and I'll be happy
to answer your question. It's not a CodeCharge question but rather a PHP
question so I'd rather not take up the groups bandwidth to respond. My
email is:

the_roger_rabbit@hotmail.com

Roger R.
"Roger" <roger@web4sme.net> wrote in message
news:9cmf5r$5fs$1@mail.tankhill.com...
> Hi, Anyone know how to suggest how it should be done.
> I know I should use the PHP mail() function but I have no idea how to use
it
> in CC.
>
> --
>
> Rgds
> Roger Tng
>
>
>

Roger
Posted: 05/20/2001, 3:01 AM

Hey Roger Rabbit.
Your answer was working. Thanks.
I have another problem today. See new post.
--
Rgds
Roger Tng

"Roger Rabbit" <rrabbit@bunnyville.com> wrote in message
news:9e7716$fr1$1@mail.tankhill.com...
> Did you ever get an answer to this Roger? If not email me and I'll be
happy
> to answer your question. It's not a CodeCharge question but rather a PHP
> question so I'd rather not take up the groups bandwidth to respond. My
> email is:
>
> the_roger_rabbit@hotmail.com
>
> Roger R.
> "Roger" <roger@web4sme.net> wrote in message
>news:9cmf5r$5fs$1@mail.tankhill.com...
> > Hi, Anyone know how to suggest how it should be done.
> > I know I should use the PHP mail() function but I have no idea how to
use
> it
> > in CC.
> >
> > --
> >
> > Rgds
> > Roger Tng
> >
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.