Jump to content

User experience with PHP generated emails


NotionCommotion

Recommended Posts

Situation

  1. User sets up an account, assigns the account a unique account name, and enters his email.  Note that user email must be unique across all accounts.
  2. User then enter his contacts along with the contact's emails and assigns each contact a unique username.  Note that contact email must be unique for a given account.
  3. User then selects several (typically 10 or less) contacts and sends mass email.
  4. The email has a FROM email of usersName@mysite.com and a REPLY TO email of usersEmail@usersDomain.com.

Problem

  1. Instead of replying to the email, email recipient copies and pastes the email displayed in his email client and generates a new email to send to the user, but the email is not delivered as usersName@mysite.com doesn't exist.

 

Possible Solutions

  1. Make user educate recipients to reply to the email instead of copying and pasting the email.  Not really an option.
  2. Somehow spoof the email client to display the user's real FROM email.  Is this possible and still ensure that emails are not often blocked by spam filters?
  3. Make the FROM email usersName.accountName@mysite.com.  Somehow use PHP to catch them emails, and create a new email to send to the user.  Is this possible?  Would having an email such as realEmail@mysite.com no longer be possible?
Link to comment
Share on other sites

Handing out fake e-mail addresses is a bad idea. Either make it clear that the user isn't supposed to use the From address (e. g. the classical noreply@yourdomain.dom). Or use real addresses on your domain which accept and forward mails.

 

I would avoid the latter at all costs, because it makes you responsible for managing potentially sensitive data and preventing spam/malware. If there's no need for that, don't do it.

Edited by Jacques1
Link to comment
Share on other sites

The noreply@yourdomain.dom is not ideal as the email recipient should and could reply to the email using the reply-to email.  They just shouldn't reply to the from email.

 

I've always thought that when receiving such an email, a reply would go to the noreply email.  I've since tested it, and dropbox among others actually do as I wish to do and reply to the human sender, so maybe it is not so bad.

 

Thanks

Link to comment
Share on other sites

The noreply@yourdomain.dom is not ideal as the email recipient should and could reply to the email using the reply-to email.

That's exactly what the Reply-to header is for. When the user clicks reply the email client will use the reply-to address rather than the from address. Using noreply (or similar) as the from address should make it apparent that the user shouldn't try and use that address thus stopping them from copying it to a new message. There's really not much you can do about it if someone wants to be dumb/silly and do that though.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.