WebSite X5Help Center

 
David S.
David S.
User

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

Autore: David S.
Visite 2210, Followers 1, Condiviso 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?

Postato il
11 RISPOSTE - 1 UTILE - 1 CORRETTO
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

Leggi di più
Postato il da Paul M.
David S.
David S.
User
Autore

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. 

Leggi di più
Postato il da 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.

Leggi di più
Postato il da Paul M.
David S.
David S.
User
Autore

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

Leggi di più
Postato il da David S.
David S.
David S.
User
Autore

Disregard, selected wrong section

Leggi di più
Postato il da David S.
David S.
David S.
User
Autore

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

Leggi di più
Postato il da David S.
David S.
David S.
User
Autore

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

Leggi di più
Postato il da David S.
David S.
David S.
User
Autore

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

Leggi di più
Postato il da David S.
David S.
David S.
User
Autore

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

Leggi di più
Postato il da 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.

Leggi di più
Postato il da Paul M.
David S.
David S.
User
Autore

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

Leggi di più
Postato il da David S.