Trying to use swiftmailer for a client.
Hi,
No matter how much I try contact support, I can't seem to get a correct awnser.
A website I have created for a client has a contact form on the contact page which when filled in, needs to be sent to my clients email address.
http://prosecco-road.com/Contact.html
My client is hosted with zoho. (
amandam@prosecco-road.com)
The above screenshot is where the customer fills out his email, name and message:
http://prosecco-road.com/Contact.html
I have configured the mailer using another email address not with zoho and it works.
However using the settings i want to use for ZOHO MAIL (bearing in mind
amandam@prosecco-road.com is used on zoho mail as im using it RIGHT NOW on zoho mail) doesn't work with the following error:
I am using the following smtp settings:
<?php
/*----------------------------------------------------------------------------*\
|* Email settings for sending all emails from your website forms. *|
\*============================================================================*/
// Choose here whether to use php mail() function or your SMTP server (recommended) to send the email.
// Use 'smtp' for better reliability, or use 'phpmail' for quick + easy setup with lower reliability.
$emailMethod = 'smtp'; // REQUIRED value. Options: 'smtp' , 'phpmail'
// Outgoing Server Settings - replace values on the right of the = sign with your own.
// These 3 settings are only required if you choose 'smtp' for emailMethod above.
$outgoingServerAddress = 'smtp.zoho.com'; // Consult your hosting provider.
$outgoingServerPort = '465'; // Options: '587' , '25' - Consult your hosting provider.
$outgoingServerSecurity = 'ssl'; // Options: 'ssl' , 'tls' , null - Consult your hosting provider.
// Sending Account Settings - replace these details with an email account held on the SMTP server entered above.
// These 2 settings are only required if you choose 'smtp' for emailMethod above.
$sendingAccountUsername = '
amandam@prosecco-road.com';
$sendingAccountPassword = '***************'; (this is the generated password)
// Recipient (To:) Details - Change this to the email details of who will receive all the emails from the website.
$recipientEmail = '
amandam@prosecco-road.com'; // REQUIRED value.
$recipientName = 'Amanda - Prosecco-Road'; // REQUIRED value.
// Email details - Change these to suit your website needs
$emailSubject = 'A message from Prosecco-Road'; // REQUIRED value. Subject of the email that the recipient will see
$websiteName = 'Prosecco-Road'; // REQUIRED value. This is used when a name or email is not collected from the website form
$timeZone = 'Europe/London'; // OPTIONAL, but some servers require this to be set.
// See a list of all supported timezones at:
http://php.net/manual/en/timezones.php
/*----------------------------------------------------------------------------*\
|* You do not need to edit anything below this line, the rest is automatic. *|
\*============================================================================*/
include('lib/mail_sender.php');
?>