₦airaland Forum

Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,282,321 members, 5,004,246 topics. Date: Thursday, 27 June 2019 at 01:23 PM

Sending Email - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Sending Email (520 Views)

Mass Email Sending: Frustrations Of A Yahoo Wannabe / Sending Emails With Php / Sending Sms With Arduino And Sim 900 (2) (3) (4)

(1) (Reply) (Go Down)

Sending Email by walterjnr: 8:39pm On Apr 18
i am developing a project that has to do with email confirmation i.e sending email during registration. The problem is that it works on localhost but after hosting the site or project , it does not work again.

i used gmail server in sending the email which works well on localhost.


Also, my contact us form is not working also but in this one i used php mail() function not gmail.

please developers help.
Re: Sending Email by Echatbook: 9:00pm On Apr 18
are you getting any errors in the log?
Re: Sending Email by walterjnr: 9:34pm On Apr 18
Yes
Re: Sending Email by walterjnr: 9:35pm On Apr 18
That same code works well on localhost
Re: Sending Email by Echatbook: 10:25pm On Apr 18
Can you post the error you are getting
Re: Sending Email by Duchman67: 9:19am On Apr 19
Think your hosting company is blocking port 25. Check that port.

1 Like

Re: Sending Email by walterjnr: 9:20am On Apr 19
I was using port 25 and tls
Re: Sending Email by walterjnr: 9:21am On Apr 19
Will post the error
Re: Sending Email by Duchman67: 9:26am On Apr 19
walterjnr:
I was using port 25 and tls

Try the email with another port. Check out integration with mailgun,sendgrid etc

1 Like

Re: Sending Email by walterjnr: 10:57am On Apr 19
This is the error i got


2019-04-19 07:07:13 SMTP ERROR: Failed to connect to server: Network is unreachable (101) 2019-04-19 07:07:13 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Re: Sending Email by Damzed(f): 2:36pm On Apr 19
You are using a mail function that is disabled on your host server. You should use SMTP Function for sending email from your website and you can contact your host company to give you their preferred SMTP settings.
Re: Sending Email by makavele: 8:03pm On Apr 19
Try port 465 (SSL/TLS) . . .

While it is always recommended to use port 587 (STARTTLS); it seems port only 465 works

is happily loved by gmail
Re: Sending Email by darexkey(m): 8:01am On Apr 20
walterjnr:
i am developing a project that has to do with email confirmation i.e sending email during registration. The problem is that it works on localhost but after hosting the site or project , it does not work again.

i used gmail server in sending the email which works well on localhost.


Also, my contact us form is not working also but in this one i used php mail() function not gmail.

please developers help.

Contact me on whatsapp 07039359066. I have an alternative solution
Re: Sending Email by walterjnr: 5:57pm On Apr 20
makavele:
Try port 465 (SSL/TLS) . . .

While it is always recommended to use port 587 (STARTTLS); it seems port only 465 works

is happily loved by gmail



Have tried 465 and 995
Re: Sending Email by walterjnr: 5:59pm On Apr 20
Damzed:
You are using a mail function that is disabled on your host server. You should use SMTP Function for sending email from your website and you can contact your host company to give you their preferred SMTP settings.

Have informed them but they can't still help.

Have even copied them my mailing script
Re: Sending Email by makavele: 8:12pm On Apr 20
walterjnr:




Have tried 465 and 995

Use a third-party mail traffic analyzer like MailTrap and see if it delivers . .
Re: Sending Email by walterjnr: 12:50pm On Apr 21
makavele:


Use a third-party mail traffic analyzer like MailTrap and see if it delivers . .


Thanks Bro

Let me try that
Re: Sending Email by makavele: 3:58pm On Apr 21
walterjnr:


Thanks Bro

Let me try that

Yeah man , lemme know how it goes
Re: Sending Email by walterjnr: 6:33pm On Apr 22
makavele:


Yeah man , lemme know how it goes

have shut down on it.

even whogohost can'"t help
Re: Sending Email by makavele: 6:46pm On Apr 22
walterjnr:


have shut down on it.

even whogohost can'"t help

Then the fault is from you my friend.
You shut down a whole project just cos you had mail diagnostic issues? Says a lot about your programming fundamentals.
Re: Sending Email by walterjnr: 11:00am On Apr 24
makavele:


Then the fault is from you my friend.
You shut down a whole project just cos you had mail diagnostic issues? Says a lot about your programming fundamentals.


I mean i am not using phpmailer again i have already deployed php mail() and is working well for me.
Re: Sending Email by walterjnr: 12:49pm On Apr 25
makavele:


Then the fault is from you my friend.
You shut down a whole project just cos you had mail diagnostic issues? Says a lot about your programming fundamentals.


makavele please your whatapp number and face ook username . Thanks
Re: Sending Email by makavele: 5:18pm On Apr 25
walterjnr:



makavele please your whatapp number and face ook username . Thanks

I just followed you on NL. Check your NL email
and we'll be able to exchange private data back and forth. Thanks
Re: Sending Email by Derrils: 6:14pm On Jun 11
Hey, that interesting question. Email marketing is a very user-friendly and cost-effective form of marketing. It is used all around the world to a large extent which allows the business to communicate and get in touch directly with their customers. A quality email campaign can quickly generate both sales and brand awareness. In simple words, email marketing is a very lucid form of marketing and cost effective if done correctly. I use these consultants when I get complex email-related questions - https://balabanov.co/solutions/email-marketing/

(1) (Reply)

Help Me Plzzzzzzzzzzz Oracle Professional In D House / Get Help With Your Project Write-up! / Runinng A Local Program Online

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)

Nairaland - Copyright © 2005 - 2019 Oluwaseun Osewa. All rights reserved. See How To Advertise. 53
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.