email interview questions
Top email frequently asked interview questions
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 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)
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)
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)
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)
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)
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)
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)
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
$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)