Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 01-27-2005, 08:51 AM   #1 (permalink)
nvictor
Registered User
 
Join Date: Jan 2005
Posts: 9
nvictor is on a distinguished road
ecard delivery system.

Dear coders,
I'm making an ecard website, and I use php for scripting.
I'm completely new to php, but useful scripts helped me a lot.

Now I want to know how to basically send an e-mail with php.
I was reading a tutorial, and it is said that as my site is not online
I must install my own smtp server.

Can anyone help a bit?
thanks
nvictor is offline   Reply With Quote
Old 01-27-2005, 09:15 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,532
sde is on a distinguished road
PHP Code:
<?
mail
("joecool@example.com""My Subject""Line 1\nLine 2\nLine 3");
?>
you will find various other examples here: http://us2.php.net/manual/en/function.mail.php

the php manual is an excellent place of reference.
__________________
Mike
sde is offline   Reply With Quote
Old 01-27-2005, 05:12 PM   #3 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
What OS?

Not sure the mail() function will work if you don't have a local smtp server... or sendmail to handle it.

If you know of a SMTP sever you can use to send mail,then specify it in the php.ini. (I believe it's just SMTP = smtp.mydomain.com )

-r
idx is offline   Reply With Quote
Old 01-28-2005, 12:40 AM   #4 (permalink)
nvictor
Registered User
 
Join Date: Jan 2005
Posts: 9
nvictor is on a distinguished road
I have read the manual section on mail(). But it requires me to configure an smtp server.
nvictor is offline   Reply With Quote
Old 01-28-2005, 01:28 PM   #5 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
Again, what OS? It only requires a local smtp server if you don't have a remote one to use. Got a ISP? Use theirs.

-r
idx is offline   Reply With Quote
Old 01-29-2005, 01:47 AM   #6 (permalink)
nvictor
Registered User
 
Join Date: Jan 2005
Posts: 9
nvictor is on a distinguished road
Thanks for reply, I have installed Postcard Server and this is working.
nvictor is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking system configuration with JAVA callmefiero Java 3 08-26-2004 03:38 AM
Thread Message Board system Nitro PHP 2 11-18-2003 08:10 AM
Student hackers: we didn't defeat campus debit card system redhead Code Newbie News 0 07-15-2003 01:02 PM
Easy Template System randy PHP 0 05-27-2003 09:33 AM


All times are GMT -8. The time now is 08:28 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting