Does swift mailer allow you to receive/parse emails as well?

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
bitter_moon_1
Forum Newbie
Posts: 5
Joined: Wed Jun 06, 2007 4:47 am

Does swift mailer allow you to receive/parse emails as well?

Post by bitter_moon_1 »

i posted this on the ##php irc channel, and they suggested i use the imap package, which i googled, and found no easy answer.

Since I am such a big fan of swift, I was wondering whether there are any examples or tutorials ideally on how to do this. Basically we all know how easy it is to send email via swift. Is there a way to receive and parse an email?

For example: craigslist.org does this. When you post an ad, the email is anonymous (ex: anon-1@craigslist.org). The sender sends an email to this anonymous address, and the email gets forwarded to the poster's actual email address. This helps in keeping the posters' contact info private.

Is there an easy way to do this? Any tutorials available? And can swift help in any way?

Thanks!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I agree with the irc guys.... use the IMAP functions. There are more "advanced" ways to do it, but that involves Linux server/SMTP server administration (i.e. it's part of the smtp server configuration).
Post Reply