
A port is just a port, and just because there is a standard one that is used by something, it doesn’t mean you always have to use the default port for doing that something. Enter sending out an e-mail message via SMTP when using a GoDaddy e-mail account. Although GoDaddy restricts incoming e-mail to ports 110 and 995 (SSL), outgoing SMTP ports (usually via its smtpout.secureserver.net server) are a little more open. This tutorial will teach you how to find out which ports are available for you to use in your e-mail sending application. First, login to GoDaddy’s site (http://www.godaddy.com) and click on the “Email” button on the main green menu bar. If you have any active e-mail accounts, they will be listed, and to the right of each entry you will find a green launch button. Clicking on this will open the Control Center. Once in the Control Center, you’ll see your e-mail addresses listed under the Email Plans folder. The addresses are laid out in a table, with the columns, Address, Size, Relays, Attributes, and Actions. In the Actions column you will see a Tools icon. Click on it to launch the Info Center. The Email Info Center is a one-page view of your e-mail address account settings. Under the fieldset entitled “Email Server Settings”, you will spot a label “Outgoing server (SMTP):”, giving you the server details to use, as well as a list of available and open ports. Score! So if you want to move away [...]

I’ve moved to the fantastic PHPMailer PHP class to handle all my e-mail send outs for my projects and have thus far been quite impressed by the ease-of-use and robustness of the class. Today’s code snippet will show you just how easy it is to add CC (“carbon copy” or “courtesy copy” depending in what era you were born!) e-mail addresses to a e-mail send out, thus saving computing time by pushing out a single mail send instead of a number of separate ones for each attached address (well technically, we’re just foisting all the work onto the SMTP server, but still, less work that the web server needs to do, i.e. a win for us!). In code: The code above will result in a mail being sent out to four addresses instead of just the main specified address. Nifty.

PHPMailer is a great little mail sending workhorse class for PHP, widely expanding on the regular PHP mail() function and particularly easy to make use of, making it a personal favourite of mine. Anyway, to check whether or not your mail send was successful when using PHPMailer, all you need to do is check the Boolean variable returned by the Send() function, and if false, check what the error message contained in ErrorInfo is. In practice: As simple as that! :)

Annoyingly, we ran into a problem the other day when all of a sudden our outgoing e-mail stream started to skip send-outs. On closer inspection of the e-mail account, hosted by GoDaddy, we found that the account now comes with what is termed a relay limit of 250. So what is a relay limit? Well basically GoDaddy refers to recipients of a mail as a relay, meaning that your relay limit is the number of recipients that can receive a mail from your e-mail account. This relay limit includes addresses specified in CC or BCC fields, so you can’t trick the system by doing something like stuffing one of those fields with a whole lot of extra e-mail addresses. The counter is reset after every 24 hour period, and should you exceed the 250 mark for the day, the SMTP connection will fail the authentication step during the send process – which was exactly what was happening in our system before we became aware of the issue. Exceed your limit enough times to get noticed, and you run the risk of being banned off the server completely! Anyway, most big providers implement this sort of a send limit, 1) so that they can better fight against their systems being used for spam (which costs them money in terms of over utilized resources) and 2) so that they can up-sell increased relay limits to those willing to pay. And now you know.
Craig Lotter is an established web developer and application programmer, with strong creative urges (which keep bursting out at the most inopportune moments) and a seemingly insatiable need to love all things animated. Living in the beautiful coastal town of Gordon's Bay in South Africa, he games, develops, takes in animated fare, trains under whichever martial arts dojo is closest at the time, and for the most part, simply enjoys life with his amazing wife and daughter.
Oh, and he draws ever now and then too.
This is a collection of things that he has managed to find the time to scribble down since 2007.
Looking for Something?
Jump to Category: