EzDevInfo.com

email interview questions

Top email frequently asked interview questions

Validate email address in JavaScript?

How can an email address be validated in JavaScript?


Source: (StackOverflow)

What is the maximum length of a valid email address?

What is the maximum length of a valid email address? Is it defined by any standard?


Source: (StackOverflow)

Advertisements

What is the email subject length limit?

How many characters are allowed to be in the subject line of Internet email? I had a scan of The RFC for email but could not see specifically how long it was allowed to be. I have a colleague that wants to programmatically validate for it.

If there is no formal limit, what is a good length in practice to suggest? Cheers,


Source: (StackOverflow)

How can I send emails from my Android application?

I am writing an application for Android. How can I send an email from it?


Source: (StackOverflow)

Can I set subject/content of email with using mailto:?

Is it possible to set the subject/content of email when I use mailto:?


Source: (StackOverflow)

How to get the Android device's primary e-mail address

How do you get the Android's primary e-mail address (or a list of e-mail addresses)?

It's my understanding that on OS 2.0+ there's support for multiple e-mail addresses, but below 2.0 you can only have one e-mail address per device.


Source: (StackOverflow)

How can I send mail from an iPhone application

I want to send an email from my iPhone application. I have heard that the iOS SDK doesn't have an email API. I don't want to use the following code because it will exit my application:

NSString *url = [NSString stringWithString: @"mailto:foo@example.com?cc=bar@example.com&subject=Greetings%20from%20Cupertino!&body=Wish%20you%20were%20here!"];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];

So how can I send an email from my app?


Source: (StackOverflow)

What characters are allowed in email address?

I'm not asking about full email validation.

I just want to know what are allowed characters in user-name and server parts of email address. This may be oversimplified, maybe email adresses can take other forms, but I don't care. I'm asking about only this simple form: user-name@server (e.g. wild.wezyr@best-server-ever.com) and allowed characters in both parts.


Source: (StackOverflow)

Sending email in .NET through Gmail

Instead of relying on my host to send email, I was thinking of sending the messages though my Gmail account. The emails are personalized emails to the bands I play on my show. Is it possible to do?


Source: (StackOverflow)

How can I send an email by Java application using GMail, Yahoo, or Hotmail?

Is it possible to send an email from my Java application using a GMail account? I have configured my company mail server with Java app to send email, but that's not going to cut it when I distribute the application. Answers with any of using Hotmail, Yahoo or GMail are acceptable.


Source: (StackOverflow)

Check that an email address is valid on iOS [duplicate]

Possible Duplicate:
Best practices for validating email address in Objective-C on iOS 2.0?

I am developing an iPhone application where I need the user to give his email address at login.

What is the best way to check if an email address is a valid email address?


Source: (StackOverflow)

MailTo with HTML body

My problem goes something like this:

A client receives an email sent by Exchange Server. In the mail he has a formatted body with HTML with a couple of links that have

rel='nofollow' href='mailto:etc...'

My question is: can i insert HTML formatted body in the mailto: part of the href?

something like

<a rel='nofollow' href='mailto:me@me.com?subject=Me&body=<b>ME</b>'>Mail me</a>?


Source: (StackOverflow)

How to send email attachments with Python

I am having problems understanding how to email an attachment using Python. I have successfully emailed simple messages with the smtplib. Could someone please explain how to send an attachment in an email. I know there are other posts online but as a Python beginner I find them hard to understand.


Source: (StackOverflow)

Creating email templates with Django

I want to send HTML-emails, using Django templates like this:

<html>
<body>
hello <strong>{{username}}</strong>
your account activated.
<img src="mysite.com/logo.gif" />
</body>

I can't find anything about send_mail, and django-mailer only sends HTML templates, without dynamic data.

How do I use Django's template engine to generate e-mails?


Source: (StackOverflow)

PHP mail form doesn't complete sending e-mail

<?php
    $name = $_POST['name'];
    $email = $_POST['email'];
    $message = $_POST['message'];
    $from = 'From: yoursite.com'; 
    $to = 'contact@yoursite.com'; 
    $subject = 'Customer Inquiry';
    $body = "From: $name\n E-Mail: $email\n Message:\n $message";

    if ($_POST['submit']) {
        if (mail ($to, $subject, $body, $from)) { 
            echo '<p>Your message has been sent!</p>';
        } else { 
            echo '<p>Something went wrong, go back and try again!</p>'; 
        }
    }
?>

I've tried creating a simple mail form. The form itself is on my index.html page, but submits to a separate thank you for your submission page thankyou.php where the above php code is embedded. The code submits perfectly, but never sends an email.. please help...


Source: (StackOverflow)