We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

[SOLVED] Setting "From" email address | Forum

James Geddes
James Geddes Apr 16 '15
Hi everyone,


I have had to apply the sprintf bug fix (see Oxwall Docs) on my site. Unfortunately, this appears to mean that it is now sending out emails from the shared hosting default email address (jam1@79.justhost.com) rather than the one that I need all emails to come from (hq@example.com).


How do I force oxwall to send emails from a specific "from" email address while the sprintf bug fix is in place?

The Forum post is edited by James Geddes May 1 '15
ross Team
ross Apr 20 '15
James, why did you apply this fix? Do you get the same error? Have you checked first:
  1. whether phpmailer library is installed/enabled/configured on your server.
  2. whether php mail() function is installed/enabled/configured on your server.
James Geddes
James Geddes Apr 22 '15
Ross - yes I was receiving the 500 error. I went through the error with 2 justhost technical support representatives for nearly 2 hours and we found that the phpmailer library is installed/enabled/configured on my server and that php mail() function is installed/enabled/configured on my server. As per the oxwall docs, the only thing left to do is apply the fix.


How do I set the from email address now?

ross Team
ross Apr 22 '15

What software are you using? Can you please put the phpmailer.php file in the archive and attach it to your reply.

Also, what do you indicate as a site e-mail? this one: hq@example.com or this: jam1@79.justhost.com ? 


Can you please provide us the -emails that are being sent with the headers?

James Geddes
James Geddes Apr 22 '15
Emails are currently coming from the justhost default email address: jam1@79.justhost.com


We need emails to come from our address: hq@example.com (not actual address)


Please find the requested file attached.

Attachments:
  class.phpmailer.php (116Kb)
ross Team
ross Apr 22 '15
what do you indicate as a site e-mail In the admin panel/main settings section?

Can you please provide us the -emails that are being sent with the headers?

James Geddes
James Geddes Apr 22 '15
Here is one of the emails that was received from the site.
Attachments:
  email.txt (3Kb)
ross Team
ross Apr 22 '15
James, what is your software version? what do you indicate as a site e-mail In the admin panel/main settings section?
James Geddes
James Geddes Apr 22 '15
We are running "Platform version 1.7.3 (build 8710)"


Site email is set correctly - hq@example.com

James Geddes
James Geddes Apr 22 '15
Bump :)


Any thoughts?

dave Leader
dave Apr 22 '15
ross wont be in for about 3 hours yet so im sure he will reply when he gets in. :)
ross Team
ross Apr 22 '15
James, you need to enter the text along with the image, otherwise the form won't accept the image alone.
James Geddes
James Geddes Apr 23 '15
I'm not sure I follow Ross, what are you referring to?
ross Team
ross Apr 23 '15

James, sorry wrong topic, as to your issue.

I see from this line: Received: from gproxy6-pub.mail.unifiedlayer.com (gproxy6-pub.mail.unifiedlayer.com. [67.222.39.168])

        by mx.google.com with SMTP id t2si13525803pdh.156.2015.04.16.13.01.13


that you use SMTP. Seems like the issue either related to the mail servers. Please check this link how to change your e-mail address: https://www.siteground.com/.../catch_all_email.htm


Also we found that info: https://my.justhost.com/cgi/help/2367

In both cases you may contact your hosting provider to confirm this and fix. 

James Geddes
James Geddes Apr 23 '15
I already spoke to JustHost, they said it was a variable that is set in oxwall itself. Furthermore, I do not have those buttons available in my hosting account.


I have seen areas of the oxwall mailing script that might do this but I'm not sure what to change.

dave Leader
dave Apr 23 '15
It could be the -f attribute in the additional parameter


http://php.net/manual/en/function.mail.php

i do my contact forms like this... 
$to=$mail;

$subject = $_POST['subject'];

$headers = "MIME-Version: 1.0\n";

 $headers .= "Content-type: text/html; 

charset=iso-8859-1\n"; 

$headers .= "X-Priority: 3\n"; 

$headers .= "X-MSmail-Priority: Normal\n"; 

$headers .= "X-mailer: php/".phpversion()."\n";

$headers .= "From: $from_email\n";

$headers .= "Reply-To: $from_email\n"; 

$extraparam ="-f $mail";
$message = $mesleader.$message;


$mail_sent=mail($to,$subject,$message,$headers,$extraparam);


the -f is the sender envelope.  That might be whats missing. But your using SMTP i see mmmm 

The Forum post is edited by dave Apr 23 '15
James Geddes
James Geddes Apr 28 '15
Where is $from specified?
James Geddes
James Geddes Apr 28 '15
I've set $from in class.phpmailer.php and now i'm not receiving any emails. What is going wrong?
dave Leader
dave Apr 28 '15
my $from was specified by a user input field so it came from $_POST but i renamed it before the process. 
James Geddes
James Geddes Apr 28 '15
I'm not sure I follow Dave


How come it's not sending any emails now?

Pages: 1 2 »