View Full Version : Modifying the vbmail() function to include the -f parameter
Kier
Tue 4th Mar '03, 2:29pm
If your server requires that you send the '-f' parameter when sending email via PHP, alter this code in the vbmail function in functions.php mail($toemail, $subject, $message, $headers);to thismail($toemail, $subject, $message, $headers, "-f $webmasteremail");
darkjedi
Thu 17th Apr '03, 1:22pm
I'm using 2.2.9 and I've searched my admin/functions.php for this code and can not find it anywhere.
WHAT could I be doing wrong and we really need help since the server is set up to not allow email from the user "nobody"
Mark Wegener
Thu 17th Apr '03, 1:31pm
that is because the function vbmail is only included in version 2.3.0
poolking
Wed 23rd Apr '03, 7:18pm
where would I put -f parameter? because this line looks nothing like the one you posted.
function vbmail($toemail, $subject, $message, $from = '', $headers = '', $username = '',) {
global $bbtitle, $webmasteremail;
Freddie Bingham
Wed 23rd Apr '03, 7:33pm
mail($toemail, $subject, $message, trim($headers));
becomes
mail($toemail, $subject, $message, trim($headers), "-f $webmasteremail");
poolking
Wed 23rd Apr '03, 7:39pm
mail($toemail, $subject, $message, trim($headers));becomesmail($toemail, $subject, $message, trim($headers), "-f $webmasteremail" );
remove $username = '',) {
global $bbtitle, $webmasteremail; ?
Freddie Bingham
Wed 23rd Apr '03, 7:48pm
No, you need to look below that line for the line to modify. It should match exactly what I posted.
poolking
Wed 23rd Apr '03, 7:50pm
No, you need to look below that line for the line to modify. It should match exactly what I posted.
That doesn't work, still can't email through admin cp.
Steve Machol
Wed 23rd Apr '03, 8:13pm
What do you mean? Are any vB emails working?
poolking
Wed 23rd Apr '03, 8:20pm
What do you mean? Are any vB emails working?
Sorry, it works now. :o
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.