473,721 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to send mail in php and check whether ir rebound or not

hi

i am building aan application which will send mail to user when he
registers on my site and i am checking whther the email id is working
properly or not by sending his email and then cheking whether the email
was rebound or not.

i know something about how to send email in php using mail function but
not everything about sending email.

i don't know anything about how can i check whether the email rebound
or not. also tell me about sending email using php what considerations
should be kept in mind when sending email.

pls help me

thxs for your help in advance.

Jul 17 '05 #1
6 4734
I noticed that Message-ID:
<11************ **********@z14g 2000cwz.googleg roups.com> from vishal
contained the following:
i am building aan application which will send mail to user when he
registers on my site and i am checking whther the email id is working
properly or not by sending his email and then cheking whether the email
was rebound or not.


Invalid addresses won't always bounce. me@privacy.net for instance will
simply drop into a bit bucket.

The only way you can check if an email address is valid, and, more
importantly being read, is to elicit a response from a real person.
This can be in the form of a unique link in the email which matches a
database entry. When the user responds, a flag in the database is set
to validated.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2
*** vishal escribió/wrote (19 Mar 2005 00:03:45 -0800):
i don't know anything about how can i check whether the email rebound
or not. also tell me about sending email using php what considerations
should be kept in mind when sending email.


First of all, mail() will return FALSE if mail is not accepted by the mail
server or sendmail executable. If accepted, you can only know whether it
was returned checking the "return-path" e-mail address. Under Linux/Unix
you can normally specify it in mail():

mail($to, $subject, $body, "From: $from", "-f$returnpath");

You can use IMAP or POP3 functions to check this mailbox or configure it to
deliver mail to a program, but I suppose in your case it's enough with
checking it manually.

I hope this helps.

--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ No envíes tu dudas a mi correo, publícalas en el grupo
-+ Do not send me your questions, post them to the group
--
Jul 17 '05 #3
Following on from vishal's message. . .
hi

i am building aan application which will send mail to user when he
registers on my site and i am checking whther the email id is working
properly or not by sending his email and then cheking whether the email
was rebound or not.


What are you /really/ trying to test?

All a rebound test tells you is that if in future you send mail to that
address it probably won't bounce back. But what good is that when
/presumably/ you want to ensure there is a real person or intelligent
agent on the other end?

The usual way to handle this is to send an email with some key to
completing the registration process. (Unique,random for each attempt).
Or just email them their userid+(system generated) password.
Or just email them their password and give them the user id on the web
page.

If you're trying to do some input validation (where A supplies an email
for B which is supposed to be valid but may have syntax mistakes) then
look up the many scripts.
In short - Bad idea.
--
PETER FOX Not the same since the bottom fell out of the bucket business
pe******@eminen t.demon.co.uk.n ot.this.bit.no. html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.dem on.co.uk>
Jul 17 '05 #4
"vishal" <vi************ @yahoo.co.in> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
hi

i am building aan application which will send mail to user when he
registers on my site and i am checking whther the email id is working
properly or not by sending his email and then cheking whether the email
was rebound or not.

i know something about how to send email in php using mail function but
not everything about sending email.

i don't know anything about how can i check whether the email rebound
or not. also tell me about sending email using php what considerations
should be kept in mind when sending email.

pls help me

thxs for your help in advance.


I have in the past used HTML e-mail to check whether a message is actually
read or not. What you do is put something like <img
src="http://www.mysite.com/webbug.php?id=3 2434" height="1" width="1"> in the
message somewhere. When the mail program opens it, the PHP script would be
triggered.

Not a technique that works reliably though.
Jul 17 '05 #5
Chung Leong (ch***********@ hotmail.com) wrote:
: "vishal" <vi************ @yahoo.co.in> wrote in message
: news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
: > hi
: >
: > i am building aan application which will send mail to user when he
: > registers on my site and i am checking whther the email id is working
: > properly or not by sending his email and then cheking whether the email
: > was rebound or not.
: >
: > i know something about how to send email in php using mail function but
: > not everything about sending email.
: >
: > i don't know anything about how can i check whether the email rebound
: > or not. also tell me about sending email using php what considerations
: > should be kept in mind when sending email.
: >
: > pls help me
: >
: > thxs for your help in advance.

: I have in the past used HTML e-mail to check whether a message is actually
: read or not. What you do is put something like <img
: src="http://www.mysite.com/webbug.php?id=3 2434" height="1" width="1"> in the
: message somewhere. When the mail program opens it, the PHP script would be
: triggered.

: Not a technique that works reliably though.

and in fact is a spam trigger so that the mail may never be seen at all
because of it.
--

This space not for rent.
Jul 17 '05 #6
"vishal" <vi************ @yahoo.co.in> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
hi

i am building aan application which will send mail to user when he
registers on my site and i am checking whther the email id is working
properly or not by sending his email and then cheking whether the email
was rebound or not.

i know something about how to send email in php using mail function but
not everything about sending email.

i don't know anything about how can i check whether the email rebound
or not. also tell me about sending email using php what considerations
should be kept in mind when sending email.

pls help me

thxs for your help in advance.


If you wanted to know right then and there if it were accepted, you would
need to either:

1. Find a binary that will take your message and connect to the
destination's SMTP server, send the message, and exit. If it has output you
can access you could look for a error response from the SMTP server, looking
for a 500 (if I remember correctly) error code. Sendmail MIGHT have
something like this -- but I'm sure there is something out there.

2. Write #1 yourself. SMTP isn't that complicated, as long as you don't
need an attachment. If you were to need an attachment, there are plenty of
examples of mime encoding w/ PHP out there. Anyway, it could be done.

That's what I would do if I wanted to know if the email went through.

-Joe
Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4357
by: Dhruv | last post by:
1. I'm trying to get the notifications working on the scheduled jobs. I want to email me when the job fails. I created an operator (dmalhotr) and given me as the email address. Here is the error what I'm getting when I'm pressing the test button to email myself in properties dmalhotr operator (hope that makes sense). Error 22022: sqlserveragent error: the sqlserveragent mail session is not running; check the mail profile and/or the...
0
3703
by: David Burson | last post by:
Hi, I have a VB.NET windows app that needs to automatically send a simple text email when my users run a new version of the app for the first time. I thought this would be simple, but after days of reading posts and testing, I see it is not - unless I'm missing something? I'm not an email guru. All of my users will be running at least Windows 2000, most on XP sp2. Some of my users will have Outlook, many will be using Outlook...
6
11184
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I will include the code I originally used. I understand I should switch from CDONTS to CDO mail but after several sttempts I am finding a very hard time getting the new CDO mail to work properly. Any assistance with this would be greatly...
2
2547
by: Leszek | last post by:
Hello, I have created a simple code to send emails using the MailMessage class and the SmtpMail.Send() method: MailMessage mail = new MailMessage(); mail.From = echidna@somewhere.com; // hard-coded mail.To = platypus@somewhere.com; mail.Subject = "Test"; mail.Body = strMessage;
5
8795
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address with this code: MailMessage msgMail = new MailMessage(); msgMail.To = "test@address.com"; msgMail.From = "from@address.com"; msgMail.Subject = "Mail Example Subject";
3
2329
by: Max | last post by:
hi I used mailmessage object to send the mail, my smtp server don't require authentication, when i try to send the mail it shows error. following is the code to send mail. Dim mymail As New MailMessage Dim smtp As SmtpMail smtp.SmtpServer = "mailhost.gujarat.gov.in" mymail.To = "mahesh@cybersurfindia.com"
14
2291
by: Professor Yonce | last post by:
I have made form for E-Mail. I have entered code but the Import system does not work. It has squiggly line underneath it showing it is not communicating. It Will not build. Public Class Form3Bio1 System.Net.Mail.SmtpClient Imports System.Net.Mail ' This line before ' does not work. I have the rest of code to try if and when I am able to get System working. ' I XXX out certain entrys below just for this publication.
4
2483
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code m_Token = null in order to destroy the session token when the user logs out. However, I'm finding that setting class instance to null results in no header being sent back to the client, with the result that the client actually remains with an...
6
6893
by: Harshpandya | last post by:
Hi all, I am working on the form in which you fill out the whole PHP form and e mail that details to someone. It is working fine. But now i want to send the same form to be sent to different people and user should be able choose the check boxes to whom they want to send e mail to. I write some code simple If else conditions but i think i am making some mistakes. Because when i tried - it is not sending them e mails. Here is my code. I...
0
8736
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9373
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9074
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
8016
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
5992
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
4491
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...
1
3201
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2584
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2137
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.