Email With Corresponding Addresses And Names In Body AND Subject Using Gmail

Dec 18, 2008

I use gmail, and have an excel sheet with hundreds of rows. I need to send each recepient an e-mail using their e-mail address (row D), and their name in the body and subject (row A). The rest of the body of the email will all be the same.

View 6 Replies


ADVERTISEMENT

Email Hyperlink Adding Body / Subject Text?

May 10, 2013

I have an email hyperlink setup on my excel sheet and I would like to automatically (not manually) add a sentence that is another cell (that changes from time to time) to the subject line or the body of the email.

View 1 Replies View Related

Take Contents Of Cells And Use Them To Compose An Email: Address, Subject, And Body

Feb 26, 2008

I need to take contents of cells (which are results of formulas and references to other cells) and use the contents to compose an email.

Here are some cells to illustrate. NOTE: the information in brackets is the formula that's contained in the cell, while the text is the result of the formula.

B3 = This is the link used to compose an email.
C19 = abc@domain.com (an email address)
C22 = Login expired on node citrix08. [=concatenate("Login expired on node ",C7,".")]
C25 = Dear Company A, [=concatenate("Dear ",C6,",")]
C27 = The login for citrix08 has expired. [=concatenate("The login for ",C7," has expired.")
C29 = Contact us within 15 days to continue. [=concatenate("Contact us within ",C9," days ...]
C31 = Ticket 444 has been created to track the issue. [=concatenate("Ticket ",C10," has...]
C33 = Lots of other text
D33 = More text
E33 = More text

C48 = Sincerely,

B3 (Named "SEND MAIL") contains the formula used to compose the email from the cells above, however, I cannot add all the cells to the formula without an error. At some point, there is too much data (contained in the referenced cells) and B3 returns #VALUE error.

=HYPERLINK("mailto:" & C19 &"?subject=" & C22 & "&body=" & C25 & "%0D%0A" & "%0D%0A" & C27 & "%0D%0A" & "%0D%0A" & "%0D%0A", "SEND MAIL")

The above formula works now, because it doesn't contain all of the body (of email) I need.

When I click on B3, it properly launches the email client, puts in an address, subject, and two lines of text in the body.

My workaround to this problem is to manually highlight cells C29 through E48, select copy, then go to the partially formed email and paste the rest of the body.

Is there a way to include all the body into an email? I think this can be accomplished with a VBA code, but have no idea how to do it.

I dont want to send the mail, just compose it using cells that have calculated what is needed in the body. I can then read the email, confirm it's content, and click send in the email client manually.

Does anyone have any suggestions? Is there a better (but simple) approach?

I know this could be done via javascript on an html page, but I dont know how to code this at all.
I do know excell quite well and have many cells to calculate what is needed in the body of the email, but, alas,
still can't compose the ENTIRE email from the formula in B3.

View 9 Replies View Related

Generating Multiple Email With Message Body / Subject And Emails Automatically

May 9, 2013

My task here is to generate email automatically. When i enter x to run the sub findvalue macro.

Any cells on the column D that has the value of 10 should generate email with the message body, subject and email address automatically.

Example if there are 3 task that are 10 days to deadline, 3 email will be generated after entering "x"

I have edited the Sendmail sub to locate the email's body, subject line and email from the excel.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Target = "x" Then
If Not Intersect(Target, Target.Worksheet.Range("G2")) Is Nothing Then
Call Findvalue
End If
End If
End Sub

Code:
Sub Findvalue()
Dim Rng1 As Range
Dim foundemail As Range
Dim a As Variant
Set Rng1 = Range("D2:D10")
For Each a In Rng1
If a.Value = 10 Then

Set foundemail = Sheets("Email").Range("A:A").Find(What:=Cells(Target.Row, 1), _

[Code] .......

View 4 Replies View Related

Sending Mail With Range As Body Using GMAIL

Mar 28, 2014

Normally i am able to send mail using gmail with example text by typing in body field. But I want to send Range(A8:D17) as message body.

First I defined body1 as variable range, then i set body1 as value of my required range in body of message i used variable 'body1' but it is giving error "run-time error '13' , Type mismached "

[Code] .....

Where I need to change in ordger to send mail using range as body .

View 1 Replies View Related

Get Email Addresses From List Of Names

Aug 22, 2007

I have a list of 200 first and last names...column A is first name, column B is last name.

I want to find their e-mail addresses easily...

My company has a website that is a searchable directory. Each person has a profile which contains the person's e-mail address in its own table.

The directory is set up such that when you search for a persons name, you get the following URL:
www.website.com/searchabc123etc=john+doe

I am looking for an easy way to do 2 things:
1) combine the first and last name from separate columns into one single column such that it appears as john+doe (include the "+" sign)

2) take the "john+doe" cell value and paste it to the end of the URL

3) run a web query using the updated URL which imports 1 specific table from the person's profile, namely, their e-mail address.

I can successfully run a web query for 1 person manually. However, I am looking for a way to do this more efficiently for a list of 200 names.

View 9 Replies View Related

Excel 2007 :: Converting Names To Add Email Addresses

Apr 7, 2012

I have 450 names for which I would like to create email addresses. For example:

Name: John Doe
Required email address: John.Doe@boston.gov.tr

Is there a way to convert all 450 names in one go so I can then upload to MS Outlook and then send emails to these people? I am using MS Excel 2003 & 2007.

View 3 Replies View Related

Mailto Link In Excel With Subject And Body

Aug 10, 2009

I am trying to send out an e-mail from excel with all kinds of combined info. Here is what I have so far, which works to send out an e-mail to a certain address with a compiled subject. No luck with inserting the BODY of the e-mail yet from a certain cell.

=HYPERLINK(CONCATENATE("mailto:",E32,"?subject=",F32))

Also, How do I make the text in each of these cells read "send e-mail" rather than the whole jumbled mess that is currently in there from the combination of the cells?

View 6 Replies View Related

Copying Subject And Body Text Of .msg Files To Excel

Nov 17, 2009

I receive around 40 emails per day, all in the following format:

Subject: "Team x.x - date"
Body text: "x files sent"

where x represents a number.

What I'm hoping to be able to do is drop all these emails into a folder (in .msg format), and use excel to look through them and extract the team number from the subject, and the number of files sent from the body text for each message.

Unfortunately, while I class myself as reasonably competent with excel vba, working with emails or .msg files is new to me, so I genuinely haven't a clue how to do this, or if it's even possible.

View 7 Replies View Related

Generating Mail Message In Macro With A Specified Subject And Body

Aug 3, 2006

I have a form which is going to be used as an aid to staff, I have created Macro's that when clicked enter information in to fields in the worksheet, I would also like the macro to generate an email with a specified Subject and body filled out. At the moment all I have achieved is to generate an email through File - Send to - Mail recipient.

I have also tried to have an email created through Outlook using MAPI, but once again have been unable to create an email with or without a subject and message body. Below is how far I have got in creating an email using MAPI.

This is part of Macro to insert information Application.CutCopyMode = False

Selection.Copy
Sheets("Sheet1").Select
Range("E12").Select
ActiveSheet.Paste
Call SendAMessage
End Sub......................

View 2 Replies View Related

Search Outlook Email Folder For Particular Subject Then Return Date Email Received

Nov 7, 2013

I would like to search an outlook folder for a variable in the subject line and return the date when that email was received. Here is the code i have so far...

Code:
Sub Get_pos()

Set olApp = CreateObject("Outlook.Application")

Dim olNs As Outlook.Namespace
Dim Fldr As Outlook.MAPIFolder
Dim olMail As Variant

Set olApp = New Outlook.Application

[Code] ........

View 2 Replies View Related

Excel 2010 :: VBA Loop Code To Automatically Email Range Of Cells And Email Addresses

Sep 16, 2013

I am using Excel 2010. I have been given a task at work that can save my team a lot of time if I can solve the problem. Every month, we have a spreadsheet with about 5000 rows that we have to email. In each row, there is a range that we have to email to a specific email. For example, I would have to copy and paste Range A2-R2 in the body of the email, and then email it to whatever email is in cell S2. I would then continue this for the next 5000 lines, making it a possibility that i will be sending 5000 emails manually.

I have been trying to come up with a solution through VBA that would automatically send these emails. My goal is to automatically send the Range A2-R2 to outlook email, then cell S2 into the "To" email address box, and then automatically send it. So far, i have successfully been able to send one row, but cannot figure out how to loop it for the remainder of the rows.

A couple other key points are that I have column headings as well (Range A1-R1). If possible, I want to be able to include the column headings in the email body as well. Example - first email would be range A1-R2. second email would be range A1-R1 and A3-R3, and so forth. The body of the email would also contain a standard script, such as "Please review the information below."

The goal here is to save everyone from having to send 5000+ manual emails. This would be a big boost for my team.

Code:

Sub Email()
Dim rng As Range
Dim OutApp As Object

[Code].....

View 5 Replies View Related

Specifying Subject Line In An Email With Xl Att

Apr 21, 2006

I am using the following code to automatically send an attachment to a specific email with a specific subject line.

ActiveWorkbook.SendMail Recipients:="johndoe@yahoo.com", Subject:="General subject"
ActiveWorkbook.Close SaveChanges:=False

Is there a way to reference a specific field in the active workbook as the subject line?

View 4 Replies View Related

Send An Email To Multiple Email Addresses

Oct 13, 2009

I am using the following code and it works great the only problem is that when I have more then one email address in the same cell it will not send the email. Even if I seperate it with a semicolon. It work fine if I have just one email address in the email field. How can I get it to send the same info to different email addresses.

View 4 Replies View Related

Value Of A Cell For Email Subject Line

Nov 28, 2008

I would like to select File/Send to/Main Recipient (As Attachment) within my Excel Spreadsheet. Within the email, I would like the subject line to be automatically filled in with an entered value of a cell block from within the spreadsheet.

For Example, If cell block A1 had Thursday entered in the cell. Then once I chose send to/Mail Recipient, The subject line would read Thursday.

View 4 Replies View Related

VBA Which Adds Text To Subject Of Email

Jul 22, 2014

I currently have the below in my VBA which adds the text to the subject of an email:

Application.Text(today - 1, "MM-DD-YY")

today = Int(Now()) is part of the macro. How do i format this to display workdays only.

For instance if today is 07/21 (monday) i need this to display 07/18 vs 07/20.

In excel that function would be =WORKDAY(A1,-1) where A1 is =Today(), just not sure how to translate this to VBA.

View 5 Replies View Related

Send Email Using Cell Contents In Subject

Mar 10, 2009

I have tried a number of things, but have not been able to figure it out. It may not be available with this particular code, but I am not sure what limitations this code has. Does anyone know how to include the contents of a particular cell in the subject line? Currently the subject line says "Notification." What I am looking for is for the subject to say "Notification - John Doe" where John Doe would be the contents of cell D13.

View 2 Replies View Related

Paste Row To Email Body

May 3, 2009

I currently have a workbook that I track various projects with and periodically I will need to get updates for them. What I want to do is to select the row of the projects I need updates for, copy them and then paste them into the body of an Outlook 2003 email.

View 10 Replies View Related

Add A Hyperlink To Email Body

Jul 14, 2008

I have a file that sends an email when it's saved using the macro.
It pastes the the file name and file location into the body of the email.
I'd like it to be a hyperlink.

Sub Save()

Sheets("Datasheet").Select
Range("AW6").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

ActiveWindow.ScrollColumn = 1

Dim strDate As String
Dim strSave As String

strDate = Worksheets("Datasheet").Range("ay6").Value..........................

View 9 Replies View Related

Table Not Showing In Email Body

Jun 20, 2014

Please see attached workbook

At the moment when the workbook is opened the first time in the day emails are auto sent for any overdue items (all good)

1) there is a column with lead times in each sheet that should send a warning email when the lead time number of days
is reached( this sends the email but does not populate the table)?

Question how can i amend the code to either make the lead time populate the summary sheet or remove the lead time option

2) Also i have copied the template sheet over to add more shhets but the email table dont populate.

How should i be copying new sheets over?

1018823(1).xlsm

View 4 Replies View Related

Adding Range To Email Body?

Aug 13, 2014

I'm trying to add a range to this email code that will then paste the information into the body of this email however instead of getting the data I need i'm getting "-1" in the body instead.

I've tried defining the range below and adding that line to the main code but it doesn't work, the code will run but i get "-1" in the body.

View 13 Replies View Related

Sending Email With A Picture In Body

Mar 21, 2014

I have a process metric that I need to send via email.

I would like to automate this.

I am looking for the following

1. upon clicking send mail button the smart art used on the excel should be mailed.
2. the smart art should be pasted as Image on the body of the email.
3. The body should contain a text message like " dear receiver," <line break> " Please find the below process health for this week" <line break> "Regards," <line break> "Sender"
4. The size of the image on the email body should be height 3 inches and width should be 5 inches.

I have attached the spreadsheet for reference.

View 10 Replies View Related

Insert Image In The Body Of Email?

Feb 2, 2012

insert image in the body of the email.

Sub Mailer()
'Sheets("BB Email Data").Select
pathname = Range("A1").Value 'defines attachment
Dim objol As New Outlook.Application
Dim objmail As MailItem
Set objol = New Outlook.Application
Set objmail = objol.CreateItem(olMailItem)

[code].....

View 1 Replies View Related

Sending Email Via VBA - Add Hyperlink In The Body

Aug 14, 2012

I am using the below code to send a email by VBA in Excel but I am trying to add a hyperlink in the body of the email.

I would like to use '"Click Here" to go to Google - I only want to show "Click Here" in the email not the full web address

Sub SendEmailData()
Dim iMsg As Object
Dim iConf As Object
Dim cell As Range
'Dim strbody As String
' Dim Flds As Variant

[Code] ........

View 9 Replies View Related

Email Spreadsheet With Subject Line Filled Out From Cell Contents

Dec 1, 2011

Is there anyway this can be done using a button in the spreadsheet?

For Example.

I send numerous almost identical forms to a colleague and to eliminate subject line typo's (Reference numbers) i would like the Subject line to match a cell in the document itself.

I have experience in working with Excel, but none on using code/macros

View 2 Replies View Related

Excel 2010 :: Send Workbook In Email With Subject And Message?

Nov 29, 2012

I did this 10 years ago so I admit I am rusty at this but here are what I had in my notes that worked with Excel XP. I am currently using Excel 2010

With ThisWorkbook
.HasRoutingSlip = True
With .RoutingSlip

[Code]....

The last line will send the workbook but I need a Subject and Message to go with it.

View 9 Replies View Related

Copy Paste From Email Body To Excel

Jan 18, 2013

I have an email with body in tabular form. I need to copy this into excel in the as is condition.

When I do it manually, I see that the table nicely fits in different cells and looks good, but when I use a macro , I see that everything gets copied to a single cell.

View 6 Replies View Related

Copy Range To Email Body Using Clipboard?

Jan 30, 2014

I've wrote a function that allows me to insert a certain range to the body of an email. This email is composed in the code, too.So far I am able to build the emails body as plain text. how to retain the cell format also (colors, font size, border styles, ...)

View 14 Replies View Related

Putting A Clickable Link In The Body Of Email Sent

Nov 18, 2008

I've managed to get the following macro working except for one small thing - the link to the folder where the spreadsheet (that will be attached to the email) resides (which I got to work fine in a macro to send out tasks) just ends up as plain text and is not clickable

Make this link clickable in the email so that when the recipient receives the email they can just click on the link and go straight to the relevant folder please? (I've highlighted the line with what I would like to work as a link in red)

View 2 Replies View Related

Email Macro In 2007 With Variable Name In Body

Nov 4, 2009

I am searching for a macro where I can use in a command button to:

1. Launch Outlook
2. Insert variable name from the excel file within the body of the Email.
ex. ...Your new cost is: "NewCost"

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved