is there a way to find out if the email is valid?
Moderators: Chris Corbyn, General Moderators
is there a way to find out if the email is valid?
Hello,
is there a way to find out if the email address I just sent a message is valid that is 100% reliable?
When I use an email client and I send and email to an invalid address I get a reply saying that the email does not exits.
Is the answer having a process that read and specific email account and checking for this errors??
Thank you
is there a way to find out if the email address I just sent a message is valid that is 100% reliable?
When I use an email client and I send and email to an invalid address I get a reply saying that the email does not exits.
Is the answer having a process that read and specific email account and checking for this errors??
Thank you
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: is there a way to find out if the email is valid?
Yes, you can use $message->setReturnPath($address) if you need to specify a different place for bounces to go.yacahuma wrote:Is the answer having a process that read and specific email account and checking for this errors??
Re: is there a way to find out if the email is valid?
great,
Can I read a pop server from swift?
Can I read a pop server from swift?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: is there a way to find out if the email is valid?
Swift doesn't read emails, it only sends them. Take a look at the IMAP functions in the PHP manual:
http://php.net/imap
http://php.net/imap
Re: is there a way to find out if the email is valid?
I found this link
http://www.weberdev.com/get_example-4015.html
It is amazing how complicated it is.
Some one should develop an odbc interface to mail.
http://www.weberdev.com/get_example-4015.html
It is amazing how complicated it is.
Some one should develop an odbc interface to mail.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: is there a way to find out if the email is valid?
yacahuma wrote:Some one should develop an odbc interface to mail.
Re: is there a way to find out if the email is valid?
Could reading functionality be added to swift?
It will be nice to be able to do something like this:
$smtp = new Connection()
foreach ($smtp->GetMail()) as $message)
{
//message is an object with all the info
}
or
foreach($smtp->GetAllHeaders() as $headers)
{
}
It will be nice to be able to do something like this:
$smtp = new Connection()
foreach ($smtp->GetMail()) as $message)
{
//message is an object with all the info
}
or
foreach($smtp->GetAllHeaders() as $headers)
{
}
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: is there a way to find out if the email is valid?
It won't be added to Swift no. It's a bit like asking for FTP functionality to be added to a HTTP library
IMAP and SMTP are nothing like each other.
I do have plans to write a separate library for IMAP/POP but it's been on my TODO list for over a year now so as to whether it will ever happen I don't know
I do have plans to write a separate library for IMAP/POP but it's been on my TODO list for over a year now so as to whether it will ever happen I don't know
-
gmorehoudh
- Forum Commoner
- Posts: 50
- Joined: Tue Mar 04, 2008 1:49 pm
Re: is there a way to find out if the email is valid?
It'd be nice, because the included PHP IMAP functions are incomplete and glacially slow.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: is there a way to find out if the email is valid?
Yep, and the interface for them sucks. I'm planning on writing one in the same modular style as Swift. It'd be a far bigger library however since IMAP is a huge protocol.gmorehoudh wrote:It'd be nice, because the included PHP IMAP functions are incomplete and glacially slow.