473,406 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

MailServer in php

realin
254 100+
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 2279
TheServant
1,168 Expert 1GB
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 Expert 4TB
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 100+
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 100+
I have a question: how can you retrieve your mail from the mail server?
Apr 2 '08 #5
realin
254 100+
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 Expert 4TB
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 Expert 1GB
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
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...
3
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...
2
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...
1
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....
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.