close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Universal Email not sending email on Apache Server

Thread began 11/26/2009 5:25 am by peter206417 | Last modified 12/15/2009 12:46 pm by Jason Byrnes | 3714 views | 25 replies |

peter206417

Universal Email not sending email on Apache Server

I have a couple of clients using Service Providers running Apache servers. I have had no success using UE on these servers and have moved some of the willing clients over onto Windows Servers. I have no problems with UE on the Windows Server. I have created a basic form and have applied 'Mail for Linux'. I have tried all the options available for php. The form seems to work and is redirected to the correct page, however, I don't receive any emails.

Sign in to reply to this post

neilo

Have to admit I've had no trouble with Apache servers.

Have Universal Email on three of them, and have left the Email_Server field blank each time [$WAGLOBAL_Email_Server = "" ;]

This seems to do it for most people.

Also check that sent email isn't being filtered in to Junk/Spam folders.

Sign in to reply to this post

peter206417

Excuse my ignorance, but I can't find that code anywhere. I removed the Server Name and Port Number just for a test, but doesn't work.

Thanks for trying to assist.

Sign in to reply to this post

Office Guy-172461

I've had the same experience as neilo with Apache servers, just using the default server settings. Your host might have something different setup for shared hosting.

As far as finding the variable, you could try this:
185/

Sign in to reply to this post

peter206417

I have done the search but [$WAGLOBAL_Email_Server = "" ;] doesn't seem to exist.

I have requested the info from the host but they don't know what's going on, so they've told me to sort out it myself.

Sign in to reply to this post

Office Guy-172461

If they can't tell you the settings to use to send email through PHP it sounds like it's time for a new host.

Maybe you just got an ignorant tech. Sometimes the really cheap hosting companies will make it hard or impossible to use features in an effort to keep costs down or claim it's a security issue. You might want to try the support forums for the host and ask what the server settings are to send email using PHP.

Note that "$WAGLOBAL_Email_Server" is just the variable used by UE. Different apps use different variables but they have the same function of setting the server to use.

Sign in to reply to this post

neilo

Yes, - apologies Peter,

Saying '$WAGLOBAL_Email_Server = "" ;' wasn't a very useful way of helping.

Removing the Server Name and Port Number from the UE interface is what I should have said, and I see you have tried that.

If you have done that, and uploaded your pages and whole WA_Universal_Email folder to your server, sent a test mail, checked your email forwarding and the spam filtering and STILL not received the email, then only your hosts can really provide the correct details!

If my host was unable to provide this information, I would switch providers. Maybe when the WA Guys return on Monday, they may have something further to suggest.

Sorry to have confused.

Sign in to reply to this post

peter206417

Thanks !

I've had similar problems with other hosts, which ended in moving the site to another host.

Another thing, don't know if there is a problem in this code, but Dreamweaver keeps giving me a "? Server Markup", with the following code when UE is selected under server behaviours.

if (($_SERVER["REQUEST_METHOD"] == "POST") && (strpos($_SERVER["HTTP_REFERER"], $_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"])===0 || strpos($_SERVER["HTTP_REFERER"], $_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"])>0)) {
//WA Universal Email object="Mail for Linux"
//Send Loop Once Per Entry
$RecipientEmail = "peter@spinaxis.co.za";include("WA_Universal_Email/WAUE_enquiries_1.php");

I presume this is normal.

Sign in to reply to this post

neilo

Not sure if it's normal, but I get a '?' too - 'though my emails send ok.

For the record, the code for my UE server behaviour looks like this:


if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".($WAGLOBAL_Contact_Email_To) ."";include("WA_Universal_Email/WAUE_enquiries_1.php");

Sign in to reply to this post

peter206417

Ok, thanks.

I'm going try inserting your code and see what happens. I've run out of ideas. Service provider is now ignoring my calls.

Sign in to reply to this post
loading

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

Content

rating

Layout

rating

Ease of use

rating

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...