Friday, March 4, 2011

Configuring Bugzilla to use Gmail for Mail Delivery

The mail delivery method for your Bugzilla installation can be configured to send mails out using Gmail

Install Perl module for Gmail

$ sudo /usr/bin/perl -MCPAN -e 'install "Email::Send::Gmail"'


Once this module has been installed, logout from Bugzilla and login with your administrator password.

You should see "Gmail" as one of the drop down options in the "mail_delivery_method" in the Email administration page for Bugzilla.

Set the following parameters.

smtpserver : smtp.gmail.com
mailfrom : username@gmail.com
smtp_username : username@gmail.com
smtp_password : password


Save these changes.

Changes to Mailer.pm

$ sudo gedit /var/www/bugzilla/Bugzilla/Mailer.pm

Change the following line
    if ($method eq "SMTP") {
to
    if (($method eq "SMTP") || ($method eq "Gmail")) {


Now your emails from Bugzilla are configured to be delivered via the Gmail account that you setup.

12 comments:

  1. When i file a new bug with this setting i get the following error

    Software error:

    Email::Send::Gmail: error authenticating username myusername@my_google_domain.com at /usr/share/perl5/Email/Send.pm line 252

    For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.

    ReplyDelete
  2. Make sure that you install "sendmail" and then edit the "Mailer.pm" as per the above instructions.
    Also, use an already created genuine account with gmail for setup in bugzilla email settings mentioned above.

    ReplyDelete
  3. Before any email marketing campaign is sent out entirely it is highly recommended that companies test their mailers. This not only allows marketers to identify any problem areas, it can also help them establish which subject lines, content or even colour schemes will be more likely to yield the desired results.

    email testing

    ReplyDelete
  4. Works very well, thank you.
    Don't forget to specify valid gmail address (the same as used for SMTP auth) at "mailfrom"

    ReplyDelete
  5. Hey! I liked your article! it was something new! And now I would surely follow your advice! I think your blog is really informative and creative!
    more info:- Gmail Help

    ReplyDelete
  6. Tried the settings as suggested.. But it dint work. Any firewall settings needs to be changed for this??

    ReplyDelete
  7. On my first try, google gave me a notification of an unauthorized device access, I OK'd it,
    but it still refuses to send
    I keep getting this error

    Email::Send::Gmail: error authenticating username xyz@gmail.com at /usr/share/perl5/Email/Send.pm line 252
    For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.

    any idea.. would be greatly appreciated.

    ReplyDelete
  8. mailer.pm location could not find please tell me ????

    ReplyDelete
  9. Select Enable and remember to save your settings usually a button on the bottom of any editing screen. The final way to sign in to multiple Gmail accounts, called Multiple Sign-in, is a newer feature of Gmail. gmail support services

    ReplyDelete
  10. mail::Send::Gmail: error connecting to server smtp.gmail.com at lib/Email/Send.pm line 256
    I am getting this error.

    ReplyDelete
  11. Mail Warm stands out as a powerful tool to ensure that your messages not only reach your audience but also resonate with them. So, warm up those inboxes and watch yourWarm up inbox

    ReplyDelete