Sending Emails With PHPMailer using GoDaddy SMTP Settings

In this post I just want to show you how to send emails using PHPMailer with GoDaddy SMTP details.

Godaddy requires you to utilize their SMTP relay servers to send emails from third party clients. To prevent spam, GoDaddy allowing 250 SMTP relays per day. This lets you send 250 emails from your email address on a daily basis. If you want to send more than 250 emails a day , then you need to Purchase more SMTP relay depending on your needs.

GoDaddy uses email spoofing protection using DKIM email verification system, so if you want to use GoDaddy’s SMTP settings outside the domain for example localhost, SMTP settings does not work. To Make it work you need to set Local Domain ex: $mail->DKIM_domain = '192.168.1.119';.

Below is the complete example:

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

0 0 vote
Article Rating
Subscribe
Notify of
guest
17 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Shivakumar C Bellubbi
Shivakumar C Bellubbi
5 years ago

hello Arjun,
i facing issue sending mail from codeigniter mail from godaddy server.. can you plz help to solve this the error i getting is ” fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known

Filename: libraries/Email.php”

arjun
5 years ago

Can I get your email confirmations. Is your host is right?

Joseph Chua
Joseph Chua
5 years ago

Receive this error:

SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Joseph Chua
Joseph Chua
5 years ago

What email should I use for SMTP?

arjun
5 years ago
Reply to  Joseph Chua

Didn’t get you? Can you provide more information.

Niraj patel
Niraj patel
4 years ago

it is showing Connection refused (111).what i have to do in it.

arjun
4 years ago
Reply to  Niraj patel

is your SMTP credentials were correct, try to connect using different port

Shany Mathew
Shany Mathew
4 years ago

sent emails using emails,but that is not getting in sent items

arjun
4 years ago
Reply to  Shany Mathew

If you send emails using SMTP credentials, that emails will not appear in sent Itmes

Shany Mathew
Shany Mathew
4 years ago
Reply to  arjun

how can put emails in sent items?

chandra kanth
chandra kanth
4 years ago

how to config email in config folder in codeigniter using phpmailer

chandra kanth
chandra kanth
4 years ago

when i am using this type i am writing multiple times in program.how to config email in config folder in codeigniter using phpmailer and how to load this in program

radha
radha
3 years ago

Hi arjun,

I am struggling to send email from godaddy with zend 2 framework.Mails working from my local but from server showing “connection refuesed”. I tried gmail,office365 credentials.
Can you help me?

Thanks in advance!

Thanks,
Radha

Sobia Parveen
Sobia Parveen
3 years ago

i am not able to send email..its shows HTTP ERROR 500..page is not working

Sobia Parveen
Sobia Parveen
3 years ago

Mailer Error: Message body empty

Sobia Parveen
Sobia Parveen
3 years ago

thanku so much..its works 🙂

Jim Turner
Jim Turner
2 years ago

Hi Arjun,

Thanks for providing such a well commented code set. I’m writing php for a GoDaddy Linux/cPanel hosted website.

I’m a first timer for using PHPMailer. Mail() just didn’t get the job done correctly. I want to use GoDaddy PHP SMTP -> cPanel Email Account. What might be the correct adjustment to the code to get that to happen. I have the correct host, security, port, password, username, etc.

I think the main items that I don’t have are …
1) where my code can find the PHPMailer app (I tried “require ‘../PHPMailerAutoload.php’;” but does not seem to work.
2) DKIM_domain = (not sure that the IP address above is what I want.

Can you help??

DMCA.com Protection Status
17
0
Would love your thoughts, please comment.x
()
x