Note that there are some explanatory texts on larger screens.

plurals
  1. POHaving troubles to send mails in 1and1 hosting
    primarykey
    data
    text
    <p>I have a 1and1 account, im trying to send emails with symfony2.3 and swift_mailer but it is impossible.</p> <p>I'm not having any error, i already check the symfony logs, but nothing.</p> <p>This is my implemtation(in a Action):</p> <pre><code>$message = \Swift_Message::newInstance() -&gt;setSubject('Hello Email') -&gt;setFrom('test@domain.com') -&gt;setTo('myuser@mydomain.com') -&gt;addCc('other@mydomain.com') -&gt;setBody( "test body" ) ; $mailer = $this-&gt;get('mailer'); $result = $mailer-&gt;send($message, $fails); //$fails receive a empty array //$result get value 1 </code></pre> <p>This is the configuration:</p> <pre><code>swiftmailer: transport: smtp #i also try mail and sendmail host: smtp.1and1.mx #i also try smtp.1and1.es, auth.smtp.1and1.fr username: someone@mydomain.net #the complete email someone@mydomain.net(this account is active, i'm able to login in webmail...) password: mypass spool: { type: memory } encryption: tls # i also try without this setting </code></pre> <p>Nothing work, even, i try with gmail configuration:</p> <pre><code>swiftmailer: transport: gmail host: smtp.gmail.com #with and without this parameter username: %mailer_user% #the complete email someone@gmail.com and without domain password: %mailer_password% #the gmail password </code></pre> <p>and same result.</p> <p>What im doing wrong? 1and1 support just send me this link:</p> <pre><code>http://faq.1and1.es/email/email/informacion_email/9.html </code></pre> <p><strong>Update:</strong></p> <p>If i remove { type: memory } in the configuration i got this error:</p> <pre><code>Fatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host smtp.1and1.es [Connection refused #111]... </code></pre> <p>Any help? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload