BullGuard Antivirus Sale - 60% Off with openElement !
Forum openElement Homepage
Forum Home Forum Home >

openElement

> Error Reports
  New Posts New Posts RSS Feed - ?Known problem with AOL email??
  FAQ FAQ  Forum Search   Register Register  Login Login

?Known problem with AOL email??

 Post Reply Post Reply Page  <12345>
Author
Message
Dmit OE View Drop Down
Admin Group
Admin Group
Avatar

Joined: 31 Mai 2012
Status: Online
Points: 4902
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: 17 Jan 2016 at 22:11
I wrote you half-way two days ago but forgot to finish and send.

1) The difference may be caused by message headers. openElement uses well-known php-mailer script to send messages, which (correctly) creates headers that ar edifferent from what your Frontpage site could have generated. AOL may have problems with it for some reason.

2) Try a simple test script to send mails, if your hosting supports PHP mail() function without need to send via SMTP. Create in the Notepad a file "testmail.php" with the code like below and see if one or two messages arrive.:

TEST MAIL START<br>
<?php
error_reporting(E_ALL);
echo 'PHP start<br>';
$message = "Test message to AOL";
$r = mail('YOUR_AOL_ADDRESS', 'Test Mail AOL', $message);
echo "Mail result: ".(($r===false)?'Erreur':$r)." <br>";

echo "Another message with some headers:<br>";
    $headers = 'From: YOUR_FATCOW_SENDER_ADDRESS' . "\r\n" .
               'Reply-To: ' . "\r\n" .
               'X-Mailer: PHP/' . phpversion();   
    $r = mail('YOUR_AOL_ADDRESS', 'Test AOL Mail 2 (headers)', $message, $headers);
    echo "Mail2 result: ".(($r===false)?'Erreur':$r)." <br>";
}
echo 'PHP end<br>';
?>
TEST MAIL END<br>


Back to Top
dthomas View Drop Down
Newbie
Newbie


Joined: 17 Sep 2015
Location: US
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote dthomas Quote  Post ReplyReply Direct Link To This Post Posted: 23 Jan 2016 at 17:57
Thank you Dmit OE.

I will try and let you know.

I noticed that emails sent from  FatCow hosting my domain atulocal1342.org have headers, however the From: in the header of the received msg is the sending email address. This was noticed when i sent the email msg to a gmail account that forwarded it to the aol acct. The recipient when forwarding the msg to me noticed the to; email adrs was her adrs/ the to: email adrs. 

I do not know if this is the phpmailer or fatcow.  fatcow is not very responsive helping to resolve this issue. I provided header info and ip address to postmaster at aol and am waiting for reply.

Just some observations and info. Somehow i think the solution will be so simple...

Many thanks....

DThomas
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group
Avatar

Joined: 31 Mai 2012
Status: Online
Points: 4902
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: 23 Jan 2016 at 18:33
I don't understand. The "From" header IS the sending email address (fatcow mailbox in your case), so it is correct.
Back to Top
dthomas View Drop Down
Newbie
Newbie


Joined: 17 Sep 2015
Location: US
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote dthomas Quote  Post ReplyReply Direct Link To This Post Posted: 26 Jan 2016 at 03:25
I added reqd info and used provided code. inserted it in the header code block area.
rcvd 500 error when loading. ask  fatcow to check svr logs.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

ALSO, i remain confused about the From: email adrs. Ideally i want it to be the value of a form text field as noted when configuring the Email Form element - after i get it to work with aol.

Consider, when any other user in browsing the website and completes the Contact form there is no association with any fatcow email address that i am aware of. The user is not logged into fatcow neither am i when testing. I will ask fatcow spt what if any is the default From: email adrs.

Thx.
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group
Avatar

Joined: 31 Mai 2012
Status: Online
Points: 4902
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: 26 Jan 2016 at 17:23
It wasn't to be put into an OE page. If you want to do so, put the code into a Code Block type HTML (!) positoin StartDocument(!), and add the folloing line at the end:

 <?php exit(); ?>

Concerning From: there's a way to use addresses provided by visitors, but 1) technically it's the server that sends the message, not the user him/herself; 2) the reason to put a fixed address is to please the recipient mailbox (AOL for example) as they will just destroy messages with ceretains From addresses without warning.
Back to Top
dthomas View Drop Down
Newbie
Newbie


Joined: 17 Sep 2015
Location: US
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote dthomas Quote  Post ReplyReply Direct Link To This Post Posted: 26 Jan 2016 at 23:55
Dmit OE,

Thx very much.

I did  put the code in a code block at the beginning of the OE page. I didn't explain well.

Fatcow modified code (see below)  the first send mail attempt without headers was successfully received by the AOL recipient. No indication as to what happened with the second send mail with headers.

I continue to wait for error log/trace info from my request from FatCow.

I will place the php exit code as instructed and let you know.  Post fatcow response: apparently not necessary now.

I understand why it may not be ideal to place variable email addrs in the header as you explained. I will discuss the real need/desire of this with my client. I expect since the user is able to provide a email adrs in the form and pass it on as part of the msg it will be fine with a fixed adrs in the header.

Just revd fatcow response: stated syntax error line 31 which points to the page code as follows:

Line 31 seems to be the first of provided code as i used it.

TEST MAIL START<br>

<?php

error_reporting(E_ALL);

echo 'PHP start<br>';

$message = "Test message to AOL wo headers";

$r = mail('local1342@aol.com', 'Test Mail AOL no header', $message);

echo "Mail result: ".(($r===false)?'Error':$r)." <br>";

 

echo "Another message to AOL with headers:<br>";

    $headers = 'From: daniel.546@gmail.com' . "\r\n" .

               'Reply-To: ' . "\r\n" .

               'X-Mailer: PHP/' . phpversion();  

    $r = mail('local1342@aol.com', 'Test AOL Mail 2 (headers)', $message, $headers);

    echo "Mail2 result: ".(($r===false)?'Error':$r)." <br>";

}

echo 'PHP end<br>';

?>

TEST MAIL END<br>


Does not make sense to me but i reran the page an it indicated no error. need to wait until tomorrow to see if AOL recipient got one or both ok.


Print of page output related to code:

TEST MAIL START
PHP start
Mail result: 1
Another message to AOL with headers:
Mail2 result: 1
PHP end
TEST MAIL END

Many thanks...  (will report results tomorrow)

DThomas
Back to Top
dthomas View Drop Down
Newbie
Newbie


Joined: 17 Sep 2015
Location: US
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote dthomas Quote  Post ReplyReply Direct Link To This Post Posted: 26 Jan 2016 at 23:59
Regading the hosting site default email adrs.

fatcow states there is no default email address for the site/URL but did point out that and email adrs could be put in the code.

thx
Back to Top
dthomas View Drop Down
Newbie
Newbie


Joined: 17 Sep 2015
Location: US
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote dthomas Quote  Post ReplyReply Direct Link To This Post Posted: 27 Jan 2016 at 00:04
I studied the code used (modified by fatcow) and it appears they added echo to the beginning of the TEST... lines. Seem to make sense.

thx
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group
Avatar

Joined: 31 Mai 2012
Status: Online
Points: 4902
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: 27 Jan 2016 at 11:12
I still think you've put it to the wrong place or to the wrong type of Code Block (PHP for example). TEST lines should not be preceded by echo as they are not inside <?php ... ?> blocks, they are plain HTML, which is the reason why the Code Block type should NOT be PHP. Could you please go into your Code Block and verify it's "Position" and "Type"?
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group
Avatar

Joined: 31 Mai 2012
Status: Online
Points: 4902
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: 27 Jan 2016 at 11:15
P.S. If mesage without headers is received by AOL and message with headers is not, it confirms my idea that AOL filters message by headers in its own way. In the worst case, you can just use Send Form element instead of Send Mail and process the user data yourself, sending them like this test script does, without headers that are blocked.You can find examples on the Web. (Data are written into $_POST, ex. $_POST['email'] is what the user entered into the field having "Name attribute" property set to "email" in OE.
Back to Top
 Post Reply Post Reply Page  <12345>
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 10.11
Copyright ©2001-2012 Web Wiz Ltd.

This page was generated in 0,031 seconds.