Jump to content

Recommended Posts

Hey guys, i'm nearly there with this project.

I have created a personal messaging system on my site.

I am creating email notifications to be sent to the users email address when they have been sent a message

 

I need logic on how to do this.

Would the send email notification script be in the confirmation page when a message is sent?

These are the tables in gn_users

Field Type Collation Attributes Null Default Extra Action
userID int(3)   No None AUTO_INCREMENT			
userEmail varchar(40) latin1_swedish_ci  No None			   
userPassword varchar(64) latin1_swedish_ci  No None			   
userSalt varchar(3) latin1_swedish_ci  No None			   
userFirstName varchar(20) latin1_swedish_ci  No None			   
userSurname varchar(20) latin1_swedish_ci  No None			   
userActive char(1) latin1_swedish_ci  Yes Y			   
userType char(1) latin1_swedish_ci  Yes U			   
userLastLogin date   Yes NULL			 
userGender char(1) latin1_swedish_ci  Yes NULL			   
userDOB date   Yes NULL			 
userTown varchar(20) latin1_swedish_ci  Yes NULL			   
userHobby varchar(1000) latin1_swedish_ci  Yes NULL			   
userLinks varchar(1000) latin1_swedish_ci  Yes NULL			   

 

 

 

These are the tables in gn_messages

 

Field Type Collation Attributes Null Default Extra Action
messageID int(3)   No None AUTO_INCREMENT			
messageTo int(3)   No None			 
messageFrom int(3)   No None			 
messageSubject varchar(500) latin1_swedish_ci  No None			   
messageBody varchar(9999) latin1_swedish_ci  No None			   
messageDate text latin1_swedish_ci  No None		    
messageRead enum('0','1') latin1_swedish_ci  No None			 
messageDeleted enum('0','1') latin1_swedish_ci  No None			 
sent_deleted varchar(3) latin1_swedish_ci  No None			   

 

 

any logic, solution or links welcome please!

Link to comment
https://forums.phpfreaks.com/topic/274255-php-email-notifications/
Share on other sites

Not entirely sure what you mean, could you please explain what you want a bit better (for example explain how the tables relate to what you want done)

 

Would the send email notification script be in the confirmation page when a message is sent?
Yes, that would work - depends on what you want
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.