Creating a custom webmail - What should i be aware of [INFRASTRUCTURE]? - php

I'm trying to create a custom webmail, for one of our products, that has thousand of users.
We would like to create the webmail by our own, and let the user sends it by his/hers personal email (One that they already have, and is created)
I know that HubSpot CRM has something like that, but i don't know what i should be aware of, or how i can do it.
I know there I's a lot with spam, reputation etc, but i need some guidance. Can anyone help me out?
It could be awesome to do it with SendGrid integrated.
Kind regards

You may start using a open source webmail client like Roundcube or Rainloop. You can customize the client and use any third party MTA, or just use your current MTA in your own server.
If you want something more advanced, you could pipe all emails from a domain to your custom application and handle everything internally.

Related

Can the Bolt "Simple Forms" extension be used to send data?

My Bolt site lists a lot of events. Can I use the Simple Forms extension to email a list of events to a visitor?
Yes you can, but I would advise against it - a better way would be to use a real mailinglist (mailchimp or campaignmonitor are great for mailinglists)
The problem is that you create an open relay for spambots with a simpleform that is used as a place to send anyone mail - it is meant to be used as a contact form where visitors can send messages to the site owner
If you still want to use it to send visitors a list of events - you can look at the "use_as" parameter for emailfields in the documentation.

How to create a Post by Email system?

Like Wordpress and Blogger have. For example, I send an email to something_blog_post#myblog.com and the email that I sent would be transformed in a post on my blog.
There are services like mailgun that make this fairly easy to do since they convert inbound email into API calls.
The alternative is to find a way to poll IMAP with PHP, then parse the messages. This is probably a whole lot harder.
There are several solutions to this problem:
Firstly, you can setup a system to poll an existing IMAP or POP3 system and return the result.
You can setup an email server which will call a script itself upon receiving an email.
You can use a third party provider (such as CloudMailin or MailGun).
I wrote a blog post a little while back outlining some of these options for Rails applications but they all apply directly to PHP too.

Email relaying with php | craigslist's anonymous email generator

I wanted to create (or at least learn/know how it is done) application(or configuration?) that does similar to what craigslist does when people choose to hide their email with the "anonymous" option when making posts. I suspect that it is done with what's called email relaying. I'd like to find out how it is done in process - from when user enter their email to receiving an email via an anonymous email address. I come from a "LAMP" background at an intermediate level so please bear with me and kindly explain.
Your responses/comments/suggestions/pointers are greatly appreciated.
Thank you
The easiest way to do this is to receive email with your php app. There are a wide range of ways to do this, collecting using cron, piping from an email server directly into your app or using a third party like CloudMailin.
I wrote a blog post explaining some of the methods you can use to receive incoming email using php here. The post discusses rails but the principals are the same for most languages and frameworks.

Ejabberd Packet Filtering

I am trying to build an online chat application on top of ejabberd, I am using extauth and everything was working fine till now. Now I am facing a problem in sending a message from A user who is not in B's roster (some sort of moderator or stuff), but ejabberd is blocking the message because both users are not connected, I have looked into shared roster feature of Ejabberd but it doesn't work with Extauth, I have also tried to filter packet (if packet is from moderator than simply forward it else do routine processing), but it wasn't successful (Don't know how to forward the packet and stop the execution of hooks).
Please help me how can I achieve this functionality.
Thanks
why not subscribe users to each other (by sending subscribe-subscribed sequence) - it may be temporary only. By subscribing users you will create entries in roster table, which will allow packet delivery. Also, depending on architecture of your chat app maybe try mod_muc?
good reference to all dataflows: http://xmpp.org/
Old forum though, adding the response to help and learn.
In order to bypass the hooks and forward the message , probably following steps might help
Add the hook for 'filter_packet' with more priority
In that do your validations
forward this by calling on 'run' on other hook which you are looking for
drop the package at that point( as other hook on which 'run' is called will take care)

Sending "alert/notification" to cell phone from website

I was wondering if there was a way for a website to send an alert/notification to a cell phone (smart phone, android, iphone... stuff like that) where the notification will ask the user a question and they have to answer the question and the response is sent back to the website and their answer is logged in the database.
I would also like to know if this notification could have checkboxes? I am needing this for a project and would like to know if there is anything out there like this.
If you need more description, please let me know.
Thanks in advance!
Short of building an application for each specific phone to handle this alert, not really.
What I would do if I were you... allow users to subscribe to these alerts. When you send them, send them a link to a mobile web page. Now, keep in mind that most people don't have a data plan, or even know what to do with it. It would be best to allow replies over SMS as well. Without more details about what you are doing, it is hard to give a better answer.
Google around for an SMS Gateway. There are nearly infinite options with various pricing... so you will need to find the one best for you. Alternatively, you can send messages to the SMTP address. For example, 0123456789#vtext.com will send a text message to a Verizon customer with the number of 0123456789. SMS is more reliable though.
C2DM will solve this problem, for newer Android devices.

Categories