Jump to content

Emails (Again) Don't Send


alblua

Recommended Posts

Hello all once again,

I'm quite stumped on this issue, so, I go for everyone's help.

Emails, once again, will not send.

I am 100% sure this is a coding issue. I have a different script on the website that sends an email for validating the account running off phpMailer, sends instantly.

Hosting

Email Server

Presumably, that leaves coding left.

Since I would rather not mess around with the code anymore, is there anyway possible to remove the function and write this one in:

// $email will represent the receiver's email address
// Password is hidden
// $title (if possible) should be the title of the email
// $message (if possible) should be the template set

// Use SMTP
$mail->IsSMTP();
$mail->Host = 'smtp.zoho.com';
$mail->SMTPAuth = true;
$mail->Username = 'contact@airtranvirtual.net';
$mail->Password = '----';
$mail->SMTPSecure = 'ssl';
$mail->Port = 465;

$mail->From = 'contact@airtranvirtual.net';
$mail->FromName = 'AirTran Virtual';
$mail->AddAddress($email);

$mail->IsHTML(true);
$mail->Subject = $title;
$mail->Body = $message;
$mail->WordWrap = 50;

if(!$mail->Send()) {
 // Whatever works best
}

Link to comment
Share on other sites

Our SMTP isn't managed by Google, and I'm not about to go messing around by screwing up my script in the website for validation (which works perfectly find) and the Zoho SMTP before it starts blurting at me with errors.

Do you think I can take a second try at pulling it all out and inserting my own? What powers the emails anyway in phpVMS?

Link to comment
Share on other sites

  • Moderators

Its php mailer standard in php,

We farmed out the mail function to google rather than hosting smtp from the server as its prone to errors and vulnerable to constant attacks.

Just make sure your not black listed as that will get your mail rejected also.

You can check on http://mxtoolbox.com/blacklists.aspx

This could be causing your problem,

550-Please turn on SMTP Authentication in your mail client.

Link to comment
Share on other sites

http://mxtoolbox.com/domain/zoho.com/?source=findmonitors

Seems all right.

I don't manage my SMTP server, so is there anyway to be able to remove the Google restriction? I'm not sure if it's possible to have one single email go Google whilst the others are powered by Zoho.

Maybe by stating it's Zoho Mail may fix a lot. :P

Link to comment
Share on other sites

  • 1 month later...

Mine keeps doing the same thing but it's intermittent. I thought I had found an answer but then the problem happened again. I have since set up a separate airline email, then I exported the pilot table from PHPMyAdmin, I converted it to a vcard and uploaded it to "Mailbird" which is my email client, now I just use that. Not ideal but at least it's more reliable.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...