View Single Post
Old November 27th, 2009, 06:21 AM   #5 (permalink)
joeldaviddc
Junior Member
Verified Customer
 
Join Date: Nov 2006
Posts: 28
this was the problem:

the admin_email function sent the email like an anonymous user without headers, the send_ppemail function (used for notifications email) send the emails with the Administrator Email Address and complete headers.

i have edited pp-inc and in the admin email function i have added this code (copied from send_ppemail function) after this line : $email_from = "From: {$Globals['adminemail']}";

Code:
Content visible to verified customers only.

i

then i changed this line: mail( $useremail, $subject, $letter, $email_from );

with this line: mail( $useremail, $subject, $letter, $headers );


Now is was working fine, the emails are sent "from the administrator account" and gmail accept the deletion and approve emails
joeldaviddc is offline   Reply With Quote