Connecting Tech Pros Worldwide Forums | Help | Site Map

How to create email system

Newbie
 
Join Date: Mar 2008
Posts: 26
#1: Mar 20 '08
Hi,
I ve been working on a project. In that i wanted to send users an email about their account information and the new products that will get launched.
In our college while showing the project we wont be getting a net connection to show the messages have already been sent or not.
We have been adviced to use a smtp server to send mails.
But i could not understang how to actually do it.
Is it possible to send mails without hosting the project on net.
What can be the solutiom plz let us know.
Looking forward for your help.

ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#2: Mar 20 '08

re: How to create email system


Querstion is if it is possible to install an SMTP server on your own system. That way you don't need your ISP's server. See this acrticle about using your own SMTP server.

Ronald
Newbie
 
Join Date: Mar 2008
Posts: 26
#3: Mar 20 '08

re: How to create email system


Thanks for your response.
I read the article. I had a doubt that after i install PostCast on my system then i would be able to view the mesages in my outlook. The email addresses that are stored in the database doesnt exist in real world. So will it work then also.
We were even told to use phpmailer for it.
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#4: Mar 20 '08

re: How to create email system


As I understood from your post, you do not have access to a SMTP server, hence my reply.

But when you do, then it is a lot easier to use phpMailer and use an existing SMTP server.

Ronald
Newbie
 
Join Date: Mar 2008
Posts: 26
#5: Mar 20 '08

re: How to create email system


I dont have an smtp server. I can install it from the link you gave. I have downloaded phpmailer.
But i dont know actually how to proceed with creating this sytem.
Can you plz guide me step by step. Im totallly lost.
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#6: Mar 20 '08

re: How to create email system


If you don't have any clue, start with learning PHP.
If you know PHP, phpMailer is widely used and has some excellent tutorials like THIS ONE .

It contains all documentation and sample code for setting up and using the package.

Ronald
Newbie
 
Join Date: Mar 2008
Posts: 26
#7: Mar 20 '08

re: How to create email system


I went through the article and tried the code
But it gave me the following error.

Warning: require_once(C:/xampp/htdocs/lib/MailClass.inc) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\skill_search\test.php on line 7

Fatal error: require_once() [function.require]: Failed opening required 'C:/xampp/htdocs/lib/MailClass.inc' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\skill_search\test.php on line 7

I saved the files as was written in it.
Can u plz help me with this.
Can you suggest some good tutorial or video in which everything is given in detailed.
Thanku
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#8: Mar 20 '08

re: How to create email system


This is a good tutorial including all documentation you need! How can you expect even more detail than in that tutorial?

But it, of course, assumes that you know something about PHP and its mail() function. When you don't, take a PHP class first.

The error message simply means that you do not have the file test.php in the expected directory. Making this file by yourself is part of the tutorial.

Ronald
Reply