close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


email shows "on behalf of" need to alter php ini file

Thread began 9/04/2013 11:45 am by sam308940 | Last modified 9/06/2013 12:46 pm by Jason Byrnes | 5198 views | 9 replies |


email shows "on behalf of" need to alter php ini file


i have used universal email to send a "signup" email confirmation. when its sent the email arrives with the HOSTS email address on bealf of mine.. IE on behalf of

i also went through the checkout wizard of ecart, and that setup an email confirmation, and that email arrives showing the same issue, with the on behalf of

i contacted my host about this. (i have never experienced this at any other hosting company). the response i got back was this:
the fastest method is going to be a custom php.ini for this user with sendmail_from = defined with a suitable address

so my question is this, should i be alarmed by this? it seems odd to me because i have used your scripts on at least 6 different hosting platforms and never run into this.

and 2nd, anyone have any idea what line i need to add to the php ini file? or anyone know of another solution to fix this?

Sign in to reply to this post

Jason ByrnesWebAssist

You can set the sendmail_from using the following code at line 1 of any page you add Universal Email to.

<?php ini_set('sendmail_from'''); ?>
Sign in to reply to this post


well i tried the above and it didnt solve the issue. the emails come through exactly the same as before. i even renamed the page to test it and ensure there was no refresh issue.

any other idea?
is this an issue with my host that is bad? im a bit confused as to why i have this issue with them and never before on any other host.


Sign in to reply to this post

Jason ByrnesWebAssist

The may not allow the send mail setting to be changed through ini set.

if it's not working, you will need to do it in a php.ini file.

if you need help with that, you should contact the host.

different hosts have different setups. It is quite common to run into an issue with settings on one host but not on another.

Sign in to reply to this post


after chatting with tech support and a few tests, theres nothing that i can do to over-ride the sendmail_from. theres nothing they can do either. apparently the settings are on the server in a way that it cant be overriden.

so i went to the pear option. at first i got the file not found errors, but after playing around with pear path, i finally got rid of it, and now im getting this error: Fatal error: Class 'Net_SMTP' not found in /home/reblove/php/Mail/smtp.php on line 349

so i dug around in cpanel, and i found where where the pear installations are. i had it re-install both the MAIL, net_smtp and some other NET package too. i couldnt get the errorr to resolve.

any idea how to troubleshoot this one?

in the universal email option to send mail (not the pear option, just the regular mail option) is it possible to have it authenticate and send through the server? or does this method NOT use authentication at all?

Sign in to reply to this post

Jason ByrnesWebAssist

that error:
Fatal error: Class 'Net_SMTP' not found

indicates a problem with the Pear Installation. You will need to work with the host to correct the problem, it is a server problem, not a code issue.

The standard Mail function does not support authentication, only the Pear mail object supports authentication.

Sign in to reply to this post


ok the host accepted that it was an issue, and they resolved it.
so i no longer get the above error.
the form appears to submit, moving on to the confirmation page.

however, no email is sent.
i have the FROM as an email address of the domain on the server.
and the TO is my email address.

i searched the forum for others with this issue, but couldnt find anything giving me any clues. can you help me out, i need guidance on where to look to troubleshoot.

thanks again and again

Sign in to reply to this post

Jason ByrnesWebAssist

on the tank you page, add the following code near the bottom before the closing </body> tag:

<?php @session_start(); var_dump($_SESSION); ?>

this will write the session contents including whether sending the email was successful or not.

if the status is successful the problem is on the SMTP Server

Sign in to reply to this post



si im getting a failure message:

array(8) { ["waue_emailcomplete_1_Status"]=> string(7) "Failure" ["waue_emailcomplete_1_Index"]=> int(1) ["waue_emailcomplete_1_From"]=> string(36) " " ["waue_emailcomplete_1_To"]=> string(17) "" ["waue_emailcomplete_1_Subject"]=> string(24) " Community" ["waue_emailcomplete_1_Body"]=> string(154) "

Thank You For your Registration!" ["waue_emailcomplete_1_Header"]=> string(25) "; " ["waue_emailcomplete_1_Log"]=> string(108) "Sending To: Validation failed for: - Failure
" }

so i went through and changed a few things.
i changed the mail server from to the server ip.
(in my outlook account settings to connect it i have as the incoming and outgoing server. so im pretty sure thats right).
i also tried port 25 and port 587, as well as 465
all failures.

does the above help us narrow anything down?

Sign in to reply to this post

Jason ByrnesWebAssist

well, the from address:

is only the domain, it does not include the user account. The from address must be a full email address:

I'm betting that in the authentication settings, you also don't include the full email address. The authentication must be a full email address for the domain and include the password

The SMTP server is refusing the username and password you entered, so you should check with the HOST to determine what username and password should be used.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...