• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

Send an email upon checkout

My checkout page sends a confirmation email for any purchase made via the website. However, I am adding functionality to this code so when users select to e-mail a gift card it will send the recipient an email and the purchaser will receive the confirmation email of the order. The confirmation email to the purchaser is working properly, but the recipient is not receiving the gift card via e-mail. I am hoping you can help me find out what is missing so recipients can receive the gift card in an email format. I've attached my code-behind page. To reference the code I created, please do a find on "sendGiftCardsViaEmail".
SecureCheckoutEx.aspx.cs
0
is_staff
Asked:
is_staff
  • 10
  • 8
  • 2
1 Solution
 
daveamourCommented:
Have you tried debugging this and stepping through it?
0
 
is_staffAuthor Commented:
yes
0
 
daveamourCommented:
And what happened?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
is_staffAuthor Commented:
i've tried placing several breakpoints but it doesnt seem to be hitting them.
0
 
Roopesh ReddyCommented:
Hi,

I see sendGiftCardsViaEmail() function sending mail only for the purchaser! I didn't see the code send for sending the Gift Card!

Instead of sending the Gift Card, send him the link to the gift card. Once he clicks on the link, you just display the gift card!

Hope it helps u...
0
 
is_staffAuthor Commented:
Are you sure? Lines 1932-2039 should be sending the gift card. There's even a string called MessagetoFriend.
0
 
Roopesh ReddyCommented:
Hi,

Oh k!

Also make sure, you are attaching the images -
fileName2 = fileName2 + "/Shop/myLogoConfirm.jpg";

Open in new window


paths are correct!

Hope it helps u...
0
 
is_staffAuthor Commented:
Any ideas why it wouldnt send?
0
 
Roopesh ReddyCommented:
Hi,

Is the image paths are correct?

Try debug and check whether the images are referenced correctly!

Also check this link - http://stackoverflow.com/questions/5293078/send-email-with-image-embedded-image-not-visible

Hope it helps u...
0
 
is_staffAuthor Commented:
Yes. The paths are correct.
0
 
Roopesh ReddyCommented:
Hi,

Did you checked the link?
0
 
is_staffAuthor Commented:
The image links? If so, then yes.
0
 
is_staffAuthor Commented:
Thanks! I'll check it out. i'm not so much worried about the images at this point. I'll send plain text if i have to. I just want the email to send upon checkout for the time being. Thank u
0
 
Roopesh ReddyCommented:
Hi,

Ok!

Hope it helps u...
0
 
is_staffAuthor Commented:
I'm going to need further assistance. My confirmation email is being sent just fine to the purchaser, why cant the recipient recieive the gift card e-mail? Theyre both set up the same way!
0
 
Roopesh ReddyCommented:
Hi,

You are using AlternateViews for sending the Gift Cards!!!

May that causing the problem!
0
 
is_staffAuthor Commented:
In the link u provided, there are 3 possible answers. Which one do you suggest I should replicate? Thank u! I think I'm getting on the right track now :)
0
 
Roopesh ReddyCommented:
Hi,

You can try the first one, since it helped in most of the cases!

Hope it helps u...
0
 
is_staffAuthor Commented:
Okay. I will give it a shot and let you know my progress. Thanks!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 10
  • 8
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now