WebSite X5Help Center

 
John O.
John O.
User

Configuring mail fails  nl

Author: John O.
Visited 2120, Followers 1, Shared 0  

I can't sent mail from my website, even testmails from the admin page don't relay.

For PHP mail, my webprovider wants me to use this script:

<? php
require_once " mail.php " ;

$ to = " " ;
$ subject = "TEST MESSAGE " ;
$ body = "TEST MESSAGE BODY " . var_export ( $ SERVER , true) ;

$ host = " mail.talkactive.net " ;
$ port = 587 ;
$ username = ' *** ' ;
$ password = ' mail account password' ;

$ headers = array (' From' => $ username , 'To' => $ to , ' Subject ' => $ subject) ;
$ smtp = Mail :: factory ( ' smtp ' ,
array (
' host ' => $ host ,
' port ' => $ port ,
' auth ' = > true ,
' username ' => $ username ,
'password' => $ password) ) ;

$ mail = $ smtp -> send ( $ to , $ headers , $ body ) ;

if ( PEAR :: ISERROR ( $ email )) {
echo ( " ." $ mail -> getMessage (). " " . PHP_EOL ) ;
} Else {
echo ( "Message successfully late " . PHP_EOL ) ;
}
? >

with SSL :

< ? php

require_once " mail.php " ;

$ to = " " ;
$ subject = "TEST MESSAGE "
$ body = "TEST MESSAGE BODY " . var_export ( $ SERVER , true) ;

$ host = " ssl :/ / mail.talkactive.net " ;
$ port = 465 ;
$ username = ' *** ' ;
$ password = ' mail account password' ;

$ headers = array (' From' => $ username , 'To' => $ to , ' Subject ' => $ subject) ;
$ smtp = Mail :: factory ( ' smtp ' ,
array (
' host ' => $ host ,
' port ' => $ port ,
' auth ' = > true ,
' username ' => $ username ,
'password' => $ password) ) ;

$ mail = $ smtp -> send ( $ to , $ headers , $ body ) ;

if ( PEAR :: ISERROR ( $ email )) {
echo ( " ." $ mail -> getMessage (). " " . PHP_EOL ) ;
} Else {
echo ( "Message successfully late " . PHP_EOL ) ;
}

It requires to enter a valid emailadress and password. I don't know where to enter these in WebSiteX5, the advanced settings only allow me to enter a mailaddress.

Alternatively, I tried SMTP, which works fine with any test website, but from the website admin page I get only the response that "Connect failed" 

Posted on the
9 ANSWERS - 1 USEFUL - 1 CORRECT
Andre E
Andre E
Moderator

Try first a lower mail script from x5, that usualy does the trick.

Upload go to website, press ctrl-F5, and test again.

Read more
Posted on the from Andre E
John O.
John O.
User
Author

I've done that, tried all the scripts, none with result. I tested all configurations from the adminstration console, none succesfull  I've also tried several scripts on the website beside that, no luck so far.

Read more
Posted on the from John O.
Incomedia
Claudio D.
Incomedia

Hello John,

If you use the SMTP email script do you receive the emails?

In the smtp data you tested the values you received?

host = mail.talkactive.net
port = 587
username =  ***
password = mail account password

Unfortunately I cannot help you to modify the code used by the program since the support is only available for the functions of the program.

Many thanks!

Read more
Posted on the from Claudio D.
John O.
John O.
User
Author

2016-09-28 (1).png

Almost there...

From the admin screen it works fine. I use the settings as shown in the attachment.

However, from the contactform on the websit no luck. I use these settings:

Scripttype: Authenticated SMTP, Sent as POST, SMTP address: mail.talkactive.net; port 587; username: *** (I've also tried "jobots"); password as reuired, sender mail address: ***.

what do I miss?

Read more
Posted on the from John O.
John O.
John O.
User
Author

even more progress...

When filling out the contact form I get the confirmation message that the sender would receive, however, I don't get the message intended for me! I've checked my Inbox, as well as my spam box. I want the message to be sent to ***. But Ive also tried ***. I've checked the address, works fine when I sent a mail via Gmail.

Thanks so far!

Read more
Posted on the from John O.
Incomedia
Claudio D.
Incomedia

Hello John,

Do you mean if you use gmail you receive the confirmation and the email meant for you?

If only one arrives probably on the hosting email server they do not allow to send more emails together. Try to disable the confirmation email and check if then it works.

If so it works and you receive the email then you need to contact the hosting support why it is not possible to send 2 emails together.

Many thanks!

Read more
Posted on the from Claudio D.
John O.
John O.
User
Author

Hi Claudio,

Regardless what mailaddress I try, I only get the comfirmation mail. When I disable the conformation mail I get nothing. :(.

I've done some further testing and encountered something peculiar:

1. When I fill out the contactform on my website (on www.jobots.eu/contact.html), and I enter *** as e-mailaddress, everything works fine: I see the confirmation message as well as the message intended for me. Also, in the configuration tab for the contact page I can enter any mailaddress I like to receive my message on, works like a charm.

2. However, when I use any other e-mail address, only a confirmation message is sent to the sender, and I don't receive anything.

By the way, in the "advanced settings" section I entered *** as default e-mail address as sender.

Does this mean anything to you?

Thanks again

Read more
Posted on the from John O.
Incomedia
Claudio D.
Incomedia

Hello John,

From the description it seems to be a limit from the hosting on the email server. I would strongly reccomend to contact the hosting provider about the experienced issue since if one or both arrives then the script works and it doesn't depends anymore on the program but only on the mail server on the hosting and how this one is configured.

The hosting support will be able to tell you exactly why it is not working.

Many thanks!

Read more
Posted on the from Claudio D.
John O.
John O.
User
Author

Nailed it. It appears that my hosting provider only allows me to sent mail from registered mail accounts, to prevent spam. So the sender field should hold a known mailaddress, in my case ***. Mail from any other mailaddress is ignored.

So, what I needed to do is this: in the settings from the e-mail form, in the tab "Sent" (or whatever that is called on English, since I use the Dutch version), in the left hand section you need to UNCHECK the box for "Sender e-mail address". Now the default sender address is used. As a consequence, when I receive the mail from the website, I can't answer it by using simply "reply", I need to click on the mailaddress provided in the form. I can live with that.

Thanks for your guidance on this,

John

Read more
Posted on the from John O.