Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Dunno WTF I'm doing - Need help sending emails with PHP  (Read 715 times)

Draco18s

  • Bay Watcher
    • View Profile
Dunno WTF I'm doing - Need help sending emails with PHP
« on: May 20, 2014, 03:43:42 pm »

First off, I'm not a server guy in the slightest. As far as I've ever been concerned before, email runs on a combination of magic and fairy dust.

All I want to do is set up a box that I have next to me with a bugtracker software, throw it in the basement and go "yay" and then bash my face into the brickwall that is "getting people to use it."

Problem: bugtracker can't send email.

Nothing I've tried has generated an error that I can even go "hey, I got this error, what do I do?" at Google, there are no logs generated, no server warnings, nothing. Just a complete lack of emails being sent out (the most I have is Mantis telling me that there was a problem and to check the settings).

I know literally nothing about what I'm doing, half the options I'm given involve things that I know nothing about, and documentation is scattered, incomplete, or written for someone who actually knows WTF they're doing. In trying to research the problem I've been directed at at least three different tools, without any advice as to how to use them, and when it doesn't work I'm back to where I started: knowing jack and all about the problem.

All I want is a localhost email server that sends outgoing email to Verizon's smtp relay server (or Google's, I'm not picky) to a desired address so that when something on the bugtracker changes, it can notify everyone watching it. We do have our own company domain and email server, but installing the bugtracker there has had its own set of problems that are unresolvable,* and I can't use it as the outgoing mail server due to the dynamic IP address we're on in the office (we have to use Verizon's relay server to send email from our own domain anyway).

*1) it doesn't run PHP and 2) any bugtracker that uses ASPX won't work because of other settings in our server that we can't change without breaking two hosted sites we run for our clients. Basically, the server is held together with spit and bubblegum so when I was offered this unused machine I thought I'd have an easier time.
Logged

LordBucket

  • Bay Watcher
    • View Profile
Re: Dunno WTF I'm doing - Need help sending emails with PHP
« Reply #1 on: May 20, 2014, 07:08:33 pm »

Would you post a screenshot of Mantis' mail settings?

Also, http://www.mantisbt.org/forums/ might be a more suitable place to get help.

Draco18s

  • Bay Watcher
    • View Profile
Re: Dunno WTF I'm doing - Need help sending emails with PHP
« Reply #2 on: May 20, 2014, 07:17:00 pm »

Would you post a screenshot of Mantis' mail settings?

I'm not sure if it's a Mantis issue, a PHP issue, or something else.  I've made half a dozen threads in various places and poked specific people in some instances.

Anyway.

Mantis config (usernames and passwords obviously stripped):
Code: [Select]
$g_phpMailer_method      = PHPMAILER_METHOD_SMTP;
$g_smtp_host         = 'smtp.verizon.net';
$g_smtp_username = '******';
$g_smtp_password = '******';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
PHP config:
Code: [Select]
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.verizon.net
; http://php.net/smtp-port
smtp_port = 465

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = ****@****.com
I have a fake sendmail as well, config is likewise configured (not in front of the server atm to get a grab, but it's pretty much that same info)
And the result when testing the mail function inside Mantis:

(email blanked after testing using Firebug)
Logged