Tag Archives: email

Tomcat email notification upon deployement

Questions: Wondering is there is a way to generate notification when an application is deployed on Tomcat 6. Right now we use Tomcat Manager web interface to deploy our applications. We have two tomcat instances working in a load balanced mode with Apache in front of them. Would highly appreciate if anyone can throw more… Read More »

NVARCHAR(?) for Email addresses in SQL Server

Questions: For Email addresses, how much space should I give the columns in SQL Server. I found this definition on Wikipedia: http://en.wikipedia.org/wiki/Email_address The format of email addresses is local-part@domain where the local-part may be up to 64 characters long and the domain name may have a maximum of 253 characters – but the maximum 256… Read More »

Getting email address from a cell in excel

Questions: How to get email id from a cell which contain more records? For e.g. Cell A1 has the following value: google rockstar@xyz.com www.google.com I want to copy rockstar@xyz.com from the cell A1 to B1. Answers: You should use RIGHT, LEFT and FIND functions. This works for me: =LEFT(RIGHT(A1,LEN(A1)-FIND(” “,A1,1)),FIND(” “,RIGHT(A1,LEN(A1)-FIND(” “,A1,1)),1)) I used the… Read More »

How can you get an Android user's email address?

Questions: I have android.permission.READ_OWNER_DATA but I can’t find any reliable code that would explain how can I read email address of device’s owner. How can I do this? Answers: Why you wanna do that? import android.accounts.Account; import android.accounts.AccountManager; import android.content.Context; /** * This class uses the AccountManager to get the primary email address of the… Read More »

How to send email from local wamp server using PHP?

Questions: I need to send email messages from my localhost. I am using wamp server and my site is loaded on my own server, please could you suggest how to send emails using my localhost and PHP? Answers: The mail() function usually doesn’t work by default for things like WAMP. You will need to add… Read More »

php send email with attachment

Questions: How to send the email with resume attachment , i take snippet from this place Click here In this site, snippet works fine, Even i got the mail, but attachment is not working, am getting attment as noname with 0kb size file, What is Issue in that snippet , Answers: function mail_attachment($to, $subject, $message,… Read More »