Jump to content

[solved] Impossible to send email from Presta 1.5.0.13 hosted on EC2?


Recommended Posts

Hi,

 

I got a presta 1.5.0.13 currently installing on an Amazon EC2 server.

 

My next problem is:

Impossible to send an email during the installation process.

 

I tried using the php mail() function to send an email to [email protected]:

An error occurred:

 

Fatal error: Uncaught exception 'Exception' with message 'The sender parameter must either be a valid string email address or an instance of Swift_Address.' in /var/www/site2/tools/swift/Swift.php:345 Stack trace: #0 /var/www/site2/install/models/mail.php(82): Swift->send(Object(Swift_Message), 'tourist.leo@gma...', 'no-reply@ec2-54...') #1 /var/www/site2/install/controllers/http/database.php(141): InstallModelMail->send('Test message fr...', 'This is a test ...') #2 /var/www/site2/install/controllers/http/database.php(99): InstallControllerHttpDatabase->processSendMail() #3 /var/www/site2/install/classes/controllerHttp.php(167): InstallControllerHttpDatabase->process() #4 /var/www/site2/install/index.php(33): InstallControllerHttp::execute() #5 {main} thrown in /var/www/site2/tools/swift/Swift.php on line 345

 

I tried using the gmail SMTP servers

smtp.gmail.com

TLS

465

[email protected]

********

 

An error occurred:

 

Fatal error: Uncaught exception 'Exception' with message 'The sender parameter must either be a valid string email address or an instance of Swift_Address.' in /var/www/site2/tools/swift/Swift.php:345 Stack trace: #0 /var/www/site2/install/models/mail.php(82): Swift->send(Object(Swift_Message), 'tourist.leo@gma...', 'no-reply@ec2-54...') #1 /var/www/site2/install/controllers/http/database.php(141): InstallModelMail->send('Test message fr...', 'This is a test ...') #2 /var/www/site2/install/controllers/http/database.php(99): InstallControllerHttpDatabase->processSendMail() #3 /var/www/site2/install/classes/controllerHttp.php(167): InstallControllerHttpDatabase->process() #4 /var/www/site2/install/index.php(33): InstallControllerHttp::execute() #5 {main} thrown in /var/www/site2/tools/swift/Swift.php on line 345

 

I read that swift doesn't like gmail...

 

I tried:

http://www.prestasho...ail-validation/

 

That didn't solve my problem...

 

Any idea where I should look for correcting the issue?

Link to comment
Share on other sites

×
×
  • Create New...