News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How To Disable Email Sending ?

Started by SAFAD, July 30, 2009, 09:17:03 AM

Previous topic - Next topic

SAFAD

Hi AllMy Server Has Blocked Mail_Function For A MonthAnd My Visitors Saying That They Have A Lot White Pages <= Cuz Of Mail-functionHow Can I Disable It ? In EvryThingRegistration - PM EvrythingBest Regards
Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

SAFAD

I Think That I Might Need To Modify SMF Default Core
Is This Right ?
Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

SAFAD

Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

H

#3
Don't bump your post within 24 hours.

Probably the easiest thing to do is either:

a) Switch from mail() to SMTP in Server Settings

or

b) Disable mail such as notifications, member activation and send to friend so that SMF never tries to send e-mail

It would be far better just to use a host that doesn't disable e-mail functionality

/edit: spelling
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

SAFAD

i Did it But It Still Send
Even In Pm Sends !!!
Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

SAFAD

Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

H

#6
Quote from: SAFAD on August 01, 2009, 10:08:40 AM
o There Is No SMTP Option !
Sorry. In 2.0 this has moved to Admin area > Mail > Settings

Alternatively you can remove the mail sending code. This is untested but should do the trick. Open Sources / Subs-Post.php

Find:

foreach ($to_array as $to)
{
if (!mail(strtr($to, array("\r" => '', "\n" => '')), $subject, $message, $headers))
{
log_error(sprintf($txt['mail_send_unable'], $to));
$mail_result = false;
}

// Wait, wait, I'm still sending here!
@set_time_limit(300);
if (function_exists('apache_reset_timeout'))
apache_reset_timeout();
}


Replace with:

foreach ($to_array as $to)
{
//Do nothing
}
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

SAFAD

Can't I Use POP3 ?Or How To Use SMTP Of GMAIL Or HotmailThx
Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

SAFAD

I Tried
SMTP.gmail.com:456
But Didn't Work
There Is No White Pages But
No Mail Is In The Inbox
I Think It Needs SSL Encryption
But There Is No Option For That
Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

SAFAD

Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

H

Search the forum for information on gmail. You'll find out the settings needed to work with SSL
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

SAFAD

Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

Adish - (F.L.A.M.E.R)

Please feel free to hit the "Mark Topic Solved" button if the topic is solved. :)

Sarge

Hello SAFAD, have you managed to find the correct settings for Gmail?

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Advertisement: