tag:blogger.com,1999:blog-6254648781068875224.post8442035497883225311..comments2022-12-21T05:18:27.651+02:00Comments on Nir Levy - Eureka: Drupal SMTP Authentication with PEAR::MailNir Levyhttp://www.blogger.com/profile/17944603158086334915noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-6254648781068875224.post-2964135105100194362020-02-18T12:09:43.537+02:002020-02-18T12:09:43.537+02:00Hey Nir Levy, really great thoughts on this topic...Hey Nir Levy, really great thoughts on this topic, I recently blogged about this as well <a href="https://mail-setup.com/how-to-setup/smtp-in-maling" rel="nofollow">Drupal 8 SMTP Mail</a>Jack Leachhttps://www.blogger.com/profile/00675570405853177981noreply@blogger.comtag:blogger.com,1999:blog-6254648781068875224.post-17831932245143093122009-10-05T20:48:49.186+02:002009-10-05T20:48:49.186+02:00This worked great for me, until I had an email goi...This worked great for me, until I had an email going out with the following header, and the SMTP server refused to do it:<br /><br />From: Foo-books.com <info@foo-books.com><br /><br />It was Drupal, not me, that had set up the address that way. Turned out that you need to have quotation marks around the name part of the address to make it go through.<br /><br />You can't post PHP code here, so <a href="http://drupal.org/node/171245#comment-2117264" rel="nofollow">my fix for this</a> is over at drupal.org.Danhttps://www.blogger.com/profile/18262847396797196114noreply@blogger.comtag:blogger.com,1999:blog-6254648781068875224.post-49085606878050544832009-04-08T17:40:00.000+03:002009-04-08T17:40:00.000+03:00By the way, for Drupal 6, all I had to do was adju...By the way, for Drupal 6, all I had to do was adjust the smtpmail.inc such that it looks like:<BR/><BR/>function drupal_mail_wrapper($message) { <BR/>...<BR/>}<BR/><BR/>and in this function, I replaced all instances of $to with $message['to'], $from with $message['from'], $body with $message['body'], etc.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6254648781068875224.post-44903904287198467582009-04-07T19:03:00.000+03:002009-04-07T19:03:00.000+03:00Thank you so much! This worked very nicely for me...Thank you so much! This worked very nicely for me. It seemed much easier than getting phpmailer installed.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6254648781068875224.post-2077748205919048292008-12-06T22:58:00.000+02:002008-12-06T22:58:00.000+02:00hey amy,which version of Drupal are you using? ple...hey amy,<BR/>which version of Drupal are you using? please post the relevant part of your mail.inc file.<BR/>my code was written for drupal 5.x.<BR/>/NLNir Levyhttps://www.blogger.com/profile/17944603158086334915noreply@blogger.comtag:blogger.com,1999:blog-6254648781068875224.post-55204979653185489302008-12-05T17:45:00.000+02:002008-12-05T17:45:00.000+02:00Hi NirI hope you can help me. I have Pear install...Hi Nir<BR/><BR/>I hope you can help me. <BR/><BR/>I have Pear installed on my Windows > Wamp server. I have tested the Pear > Mail and it works.<BR/><BR/>I now want to use it with Drupal. I have followed your instructions however I get the following errors <BR/>warning: <BR/><BR/>Missing argument 2 for drupal_mail_wrapper(), called in C:\wamp\www\gallery\httpdocs\includes\mail.inc on line 177 and defined in C:\wamp\www\gallery\httpdocs\includes\smtpmail\smtpmail.inc on line 7.<BR/><BR/>Missing argument 3, 4, 5, 6<BR/><BR/>This makes sense because mail.inc is sending only a $message variable to the drupal_mail_wrapper function whilst drupal_mail_wrapper requires ($mailkey, $to, $subject, $body, $from, $headers).<BR/><BR/>Perhaps I have a different version of Drupal to the one you were using, I am not sure. <BR/><BR/>I am at a loss as to what to do because I tried using the SMTP_Auth module with PHPMailer to send my emails but my include path was incorrect and I don't know how to correct it.<BR/><BR/>Perhaps you will be able to help me sort this out.<BR/><BR/>Thanks in advance<BR/>AmyUnknownhttps://www.blogger.com/profile/04461368534697604029noreply@blogger.comtag:blogger.com,1999:blog-6254648781068875224.post-73603356585804106892008-03-25T22:35:00.000+02:002008-03-25T22:35:00.000+02:00I forgot to mention that the above solution was te...I forgot to mention that the above solution was tested with Drupal 5.2 and 5.3. <BR/><BR/>I also forgot to mention that there is a drupal project <A HREF="http://drupal.org/node/35189" REL="nofollow" TITLE="SMTP Authentication">SMTP Authentication Module</A> that uses <A HREF="http://phpmailer.sourceforge.net" REL="nofollow" TITLE="http://phpmailer.sourceforge.net">phpmailer</A>Nir Levyhttps://www.blogger.com/profile/17944603158086334915noreply@blogger.comtag:blogger.com,1999:blog-6254648781068875224.post-24312621986633170362008-03-25T22:22:00.000+02:002008-03-25T22:22:00.000+02:00try to find it in your drupal folder under sites/d...try to find it in your drupal folder under sites/default/settings.php.Nir Levyhttps://www.blogger.com/profile/17944603158086334915noreply@blogger.comtag:blogger.com,1999:blog-6254648781068875224.post-88921307799324103732008-03-25T15:38:00.000+02:002008-03-25T15:38:00.000+02:00Thanks for the info. Actually I'm quite a php-nit...Thanks for the info. Actually I'm quite a php-nitwit and simply can't find the file settings.php. Should it be somewhere in my drupal folder or is it somewhere in the server root or whatever? Is it possible that I simply can't access it?<BR/><BR/>Thanks,<BR/><BR/>wouterAnonymousnoreply@blogger.com