WebSite X5Help Center

 
David S.
David S.
User

When users email from my website, any attachments sent do not arrive in my email  en

Auteur : David S.
Visité 2223, Followers 1, Partagé 0  

When a user sends an email from the contact me page on my website and they choose to send an attachment, the attachment is not received by me. I receive the email sent, but there is never an attachment. What do I need to do?

Posté le
11 RéPONSES - 1 UTILES - 1 CORRECT
Paul M.
Paul M.
Moderator

Hello David,

Check with your webhost that it is permitted to send emails with attachments from your server using the PHP mail() function (as per the official help file):

http://help.websitex5.com/en/v12/evo/index.html?ins_form_campi.htm

Attachment File: a text field in which the visitor can specify a file to send as an attachment, using the  button to browse through the available files.

Contact your webspace provider to check that attached files are handled correctly.

Likewise, check with your email provider in case there are any limitations to receiving attachments, etc.

Kind regards,

Paul

Lire plus
Posté le de Paul M.
David S.
David S.
User
Auteur

I checked with my webhosting service/email. They found no issue on their end to not permit the attachments. They tested and determined it must be the software I am using. They did confirm that they permit emails with attachments. 

Lire plus
Posté le de David S.
Paul M.
Paul M.
Moderator

WebSite X5 has a built-in admin control panel which includes comprehensive email diagnostics and testing to cater for the variety of server configurations available.  Have you used this to send test emails (including attachments) using the various different scripts?

If not, please do so, as this is an essential step when troubleshooting:

http://help.websitex5.com/en/v12/evo/index.html?pannello_controllo.htm

It would also be a good idea to confirm whether or not your webhost sets a maximum size for attachments, and if so verify that this is not being exceeded.

Lire plus
Posté le de Paul M.
David S.
David S.
User
Auteur

Email Log with E-mail form script type: PHP Mailer

[2015-06-22 16:56:50] Cannot send email with internal script
[2015-06-22 16:56:50] Cannot send email with internal script
[2015-06-22 16:55:02] Cannot send email with internal script
[2015-06-22 16:55:02] Cannot send email with internal script
[2015-06-22 16:51:12] Cannot send email with internal script

Lire plus
Posté le de David S.
David S.
David S.
User
Auteur

Disregard, selected wrong section

Lire plus
Posté le de David S.
David S.
David S.
User
Auteur

Correct LOG, using the various options

[2016-06-18 14:03:54] Cannot send email with internal script
[2016-06-18 14:03:43] Cannot send email with internal script
[2016-06-18 14:03:17] Could not instantiate mail function.
[2016-06-18 14:00:25] Could not instantiate mail function.
[2016-06-18 14:00:15] Cannot send email with internal script
[2016-06-18 14:00:07] Cannot send email with internal script
[2016-06-18 13:59:58] Cannot send email with internal script
[2016-06-18 13:59:49] SMTP connect() failed.
[2016-06-18 13:59:32] Could not instantiate mail function.
[2016-06-18 13:56:57] Could not instantiate mail function.
[2016-06-18 13:40:05] Cannot send email with internal script
[2016-06-18 13:40:05] Cannot send email with internal script

Lire plus
Posté le de David S.
David S.
David S.
User
Auteur

OK, this time the attachment went through! Same one I had been trying before via the website, so the file size is ok. It did go through!!

Lire plus
Posté le de David S.
David S.
David S.
User
Auteur

So, if it tested and went through this way, why is it not working from my website?

Lire plus
Posté le de David S.
David S.
David S.
User
Auteur

OK, so I tried sending the same file again from the website. It sent the email without the attachment. 

Lire plus
Posté le de David S.
Paul M.
Paul M.
Moderator

Once you have found the correct script type using the test facility in the online control panel, then you need to change script type to suit in Step 4 > Advanced Settings > Data Management > Email

Please see the screenshot attached, and the relevant section from the help file entitled, "Options for sending e-mails and saving data on the server":

http://help.websitex5.com/en/v12/pro/index.html?gestione_dati.htm

Reupload your project to the server and clear your browser cache before retesting.

Lire plus
Posté le de Paul M.
David S.
David S.
User
Auteur

BAM! THank you Paul!!! I did not even think of the data mgmt setting! THANK YOU!!!

Lire plus
Posté le de David S.