473,659 Members | 3,162 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MailServer in php

realin
254 Contributor
hi guys,

i just want to know that if there is a way to setup mailserver in php ?
I mean i want the script or application to send/receive mails, notify bounce or not received information..

If this application is not possible in pHp, then how can i do this ?

please tell me
thanks and regards
Realin !
Apr 1 '08 #1
7 2290
TheServant
1,168 Recognized Expert Top Contributor
hi guys,

i just want to know that if there is a way to setup mailserver in php ?
I mean i want the script or application to send/receive mails, notify bounce or not received information..

If this application is not possible in pHp, then how can i do this ?

please tell me
thanks and regards
Realin !
Sending is easy. just the php mail() function. The rest need a server type platform I believe. So I have no idea how to do that. How I understand mail works is when you send a mail (easy) it goes to a server (the host of the domain), which can treat everything accordingly. The server send it then to an amount of space which your computer downloads from, which is why you don't have to be online all the time to avoid losing emails. However the server must be online all the time so that it can let the sender know - Yes I have received your mail and I have sent it to the person who you sent it to, and they should get it next time they download.

Again, I have never done it, nor even thought about it, but it would be a lot easier to use your website host's server (most have a mail system anyway). Otherwise you need to get a server, and make sure it is always on and then you will need someone else, as that is way beyond me. Hope that helps.
Apr 1 '08 #2
Atli
5,058 Recognized Expert Expert
Hi.

Sending mail in PHP is easy. Just use the mail function, or even one of the free classes, such as PHPMailer or Swift.

Receiving mail is not something you *should* do with PHP. It may be technically possible, but it would probably require some hacking and setting up various cron jobs,possibly setting up and monitoring ports on your server and other such nasty stuff. All of which is heavily OS dependent and boring.

An easier solution... If you have access to your server, you can probably set it up as a mail server. Then, depending on your server type and configuration, your mail would most likely be put in a folder somewhere, where you could have your PHP read it.
Apr 2 '08 #3
realin
254 Contributor
Hi.

Sending mail in PHP is easy. Just use the mail function, or even one of the free classes, such as PHPMailer or Swift.

Receiving mail is not something you *should* do with PHP. It may be technically possible, but it would probably require some hacking and setting up various cron jobs,possibly setting up and monitoring ports on your server and other such nasty stuff. All of which is heavily OS dependent and boring.

An easier solution... If you have access to your server, you can probably set it up as a mail server. Then, depending on your server type and configuration, your mail would most likely be put in a folder somewhere, where you could have your PHP read it.

how do i setup mailserver? and how do i ask PHP to read from it ?
how does mailman do it ? its in python no ?
does mailman read it or what ? cause we dont have to setup anything for it ...
please help thanks :)
Apr 2 '08 #4
aktar
105 New Member
I have a question: how can you retrieve your mail from the mail server?
Apr 2 '08 #5
realin
254 Contributor
I have a question: how can you retrieve your mail from the mail server?
hiya,

well you can do that using a simple php class. .
here is quick link for the procedure which i followed, you will get lotsa result on google though

Phpit

regards
Realin !
Apr 3 '08 #6
ronverdonk
4,258 Recognized Expert Specialist
Thank you for the information. I guess that will help a lot of viewers who are not familiar with the mail concept.

Ronald
Apr 3 '08 #7
TheServant
1,168 Recognized Expert Top Contributor
Very Nice! I could actually use this in a very good way. Thanks realin!
Apr 3 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
73756
by: aa | last post by:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini in php.ini I have: SMTP = localhost SMTP_PORT = 25 SENDMAIL_FROM = NULL SENDMAIL_PATH = "H:\WINNT\system32\" (this is where sendmail.dll is sitting. H is the drive with w2k)
3
6096
by: mark.macumber | last post by:
This issue is really annoying me, I dont know why its happening. I did a PHP site for a client and it uses the php mail() function. The site is now live and works fine. It seems that whenever a user who is internal to the site as in, if they use the site from within the network that the site is served. The mail function fails with: Warning: mail() : Failed to connect to mailserver at "theServer" port 25, verify your "SMTP" and...
2
10815
by: nvduffer | last post by:
I am running IIS5 on my XP Pro home computer and am unable to send email through my ISP's mail server. In the PHP.INI are two lines: smtp = smtp.telus.net smtp_port = 25 I have opened port 25 on my own computer (do I need to though?) and I am able to telnet to the ISP's SMTP server. When I try to send an email from my PHP page I get the well-known error message:
1
1170
by: grace01 | last post by:
Hello, My php program can send mail on php 5. But some of other php programs cannot work on php 5, so I switch to php 4. Now my php program cannot send mail. I use remote smpt server to send mail. I got error: Warning: mail() : Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in htmlMimeMail.php on line 670. Actually I already configured to use remote smtp server...
5
3308
by: ratnamb | last post by:
Hi In PHP, when I am sending a mail following message is getting displayed. Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini Can please help me out. Thanks
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8531
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8628
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7359
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1978
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.